This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8e3a9113290 Keep Breeze unit tests independent of the CI repository
(#75587)
8e3a9113290 is described below
commit 8e3a9113290583531731b0ac49f487abbb78dc9f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Oct 25 04:46:55 2026 +0100
Keep Breeze unit tests independent of the CI repository (#75587)
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.
Generated-by: Claude Opus 5
---
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."""