This is an automated email from the ASF dual-hosted git repository.
potiuk 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 2641e6e6c4 Fix passing of "github_repository" when running shell
command in breeze (#27390)
2641e6e6c4 is described below
commit 2641e6e6c4bd9dd095c24bf0dc110448c281e0d1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Oct 30 22:56:30 2022 +0100
Fix passing of "github_repository" when running shell command in breeze
(#27390)
When running "shell" commands for another repository, the
github_repository was not passed to the command that checks for
image availability and pulls the image if missing. This only
was a problem on CI when migrations were run with target to another
repository - migration jobs were waiting for "apache/airflow" tagged
image, and they shoudl wait for "other_repo/airflow".
This PR fixes it.
---
dev/breeze/src/airflow_breeze/commands/ci_image_commands.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
index ef070a3c97..09d8eca732 100644
--- a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
@@ -545,6 +545,7 @@ def rebuild_or_pull_ci_image_if_needed(command_params:
ShellParams | BuildCiPara
)
ci_image_params = BuildCiParams(
python=command_params.python,
+ github_repository=command_params.github_repository,
upgrade_to_newer_dependencies=False,
image_tag=command_params.image_tag,
platform=command_params.platform,