Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk 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.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@potiuk
Copy link
Member Author

potiuk commented Dec 2, 2025

Before:

image

After:

image

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.
@potiuk potiuk force-pushed the fix-breeze-startup-info branch from 9b35e93 to 30eb022 Compare December 2, 2025 08:05
Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@potiuk potiuk merged commit 6c50b62 into apache:main Dec 2, 2025
119 checks passed
@potiuk potiuk deleted the fix-breeze-startup-info branch December 2, 2025 08:56
github-actions bot pushed a commit that referenced this pull request 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>
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

ephraimbuddy pushed a commit that referenced this pull request 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 pushed a commit that referenced this pull request Dec 2, 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>
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>
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Dec 3, 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.
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 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.
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.

2 participants