Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Dec 2, 2025

We were using lru_cache to only print environment check output once,
but the method was called once with quiet = False and once without,
which made it double-print the output.

The check was done in both - commmands and "docker_utils.enter_shell"
and that was really unnecessary.

This PR changes it so that environment check is done only once at
the command entry, also the "executable bit" information that was
somewhat useless is now replaced with printing a detailed version
of Python used - which might help with diagnostics of some strange
issues in case the output is copy&pasted.
(cherry picked from commit 6c50b62)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Dec 2, 2025
…58926)

We were using lru_cache to only print environment check output once,
but the method was called once with quiet = False and once without,
which made it double-print the output.

The check was done in both - commmands and "docker_utils.enter_shell"
and that was really unnecessary.

This PR changes it so that environment check is done only once at
the command entry, also the "executable bit" information that was
somewhat useless is now replaced with printing a detailed version
of Python used - which might help with diagnostics of some strange
issues in case the output is copy&pasted.
(cherry picked from commit 6c50b62)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@ephraimbuddy ephraimbuddy merged commit 9d1e44e into v3-1-test Dec 2, 2025
111 of 118 checks passed
@ephraimbuddy ephraimbuddy deleted the backport-6c50b62-v3-1-test branch December 2, 2025 14:06
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.4 milestone Dec 2, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
…58926) (#58927)

We were using lru_cache to only print environment check output once,
but the method was called once with quiet = False and once without,
which made it double-print the output.

The check was done in both - commmands and "docker_utils.enter_shell"
and that was really unnecessary.

This PR changes it so that environment check is done only once at
the command entry, also the "executable bit" information that was
somewhat useless is now replaced with printing a detailed version
of Python used - which might help with diagnostics of some strange
issues in case the output is copy&pasted.
(cherry picked from commit 6c50b62)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants