Repository navigation
[airflow-ctl/v0-1-test] Fix airflowctl retry env-var tests failing on self-hosted runners (#73212) - #73223
Merged
shahar1 merged 1 commit intoSep 15, 2026
Conversation
… self-hosted runners (#73212) The module-wide autouse fixture clears os.environ, so the retry tests handed a child interpreter an environment with nothing but AIRFLOW_HOME. A Python built with --enable-shared then cannot locate libpython unless LD_LIBRARY_PATH survives, which is exactly what actions/setup-python relies on outside /opt/hostedtoolcache. The tests only passed on GitHub-hosted runners because the hardcoded RPATH happened to resolve. Override the fixture for that class so the child inherits a real environment, and drop only the AIRFLOW_CLI_API_* knobs under test so a developer's shell cannot influence the result. (cherry picked from commit b6f61b5) Co-authored-by: Shahar Epstein <[email protected]>
1 task done
shahar1
marked this pull request as ready for review
September 15, 2026 19:52
shahar1
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
September 15, 2026 19:52
shahar1
approved these changes
Sep 15, 2026
shahar1
added a commit
that referenced
this pull request
Nov 19, 2026
… self-hosted runners (#73212) (#73223) The module-wide autouse fixture clears os.environ, so the retry tests handed a child interpreter an environment with nothing but AIRFLOW_HOME. A Python built with --enable-shared then cannot locate libpython unless LD_LIBRARY_PATH survives, which is exactly what actions/setup-python relies on outside /opt/hostedtoolcache. The tests only passed on GitHub-hosted runners because the hardcoded RPATH happened to resolve. Override the fixture for that class so the child inherits a real environment, and drop only the AIRFLOW_CLI_API_* knobs under test so a developer's shell cannot influence the result. (cherry picked from commit b6f61b5) Co-authored-by: Shahar Epstein <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The module-wide autouse fixture clears os.environ, so the retry tests
handed a child interpreter an environment with nothing but AIRFLOW_HOME.
A Python built with --enable-shared then cannot locate libpython unless
LD_LIBRARY_PATH survives, which is exactly what actions/setup-python
relies on outside /opt/hostedtoolcache. The tests only passed on
GitHub-hosted runners because the hardcoded RPATH happened to resolve.
Override the fixture for that class so the child inherits a real
environment, and drop only the AIRFLOW_CLI_API_* knobs under test so a
developer's shell cannot influence the result.
(cherry picked from commit b6f61b5)
Co-authored-by: Shahar Epstein [email protected]