This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-4-test by this push:
new 0500ec80138 [v3-4-test] Keep Breeze unit tests independent of the CI
repository (#75587) (#75591)
0500ec80138 is described below
commit 0500ec801384e7956567dded13a5add0a32f7fd7
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Oct 25 05:29:01 2026 +0000
[v3-4-test] Keep Breeze unit tests independent of the CI repository
(#75587) (#75591)
Breeze commands read --github-repository from GITHUB_REPOSITORY, so the
unit tests that rely on its apache/airflow default fail when CI runs in a
contributor's fork.
(cherry picked from commit 8e3a9113290583531731b0ac49f487abbb78dc9f)
Generated-by: Claude Opus 5
Co-authored-by: Jarek Potiuk <[email protected]>
---
dev/breeze/tests/conftest.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dev/breeze/tests/conftest.py b/dev/breeze/tests/conftest.py
index 94e7732049e..57d834359c6 100644
--- a/dev/breeze/tests/conftest.py
+++ b/dev/breeze/tests/conftest.py
@@ -68,6 +68,12 @@ def clear_clearable_cache():
clear_all_cached_functions()
[email protected](autouse=True)
+def unset_github_repository(monkeypatch):
+ # `--github-repository` reads this variable, which is a fork's name when
CI runs in a fork.
+ monkeypatch.delenv("GITHUB_REPOSITORY", raising=False)
+
+
@pytest.fixture
def make_worktree(tmp_path):
"""Create a linked git worktree whose ``.git`` file points at an existing
gitdir."""