Skip to content

[airflow-ctl/v0-1-test] Fix airflowctl retry env-var tests failing on self-hosted runners (#73212) - #73223

Merged
shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-b6f61b5-airflow-ctl/v0-1-test
Sep 15, 2026
Merged

shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-b6f61b5-airflow-ctl/v0-1-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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]

… 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]>
@shahar1
shahar1 merged commit ed04be0 into airflow-ctl/v0-1-test Sep 15, 2026
2 checks passed
@shahar1
shahar1 deleted the backport-b6f61b5-airflow-ctl/v0-1-test branch September 15, 2026 20:06
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant