Skip to content

Commit

Permalink
Add github-repository to testing-command (#30850)
Browse files Browse the repository at this point in the history
By having a girhub repository we allow to run CI tests for PRs
outside of airflow repo. This is useful to test some changes to
CI process. The github_repositry in testing command allows to
push and use images in a fork of Airlfow.

GitOrigin-RevId: 6e4de992ea8b91ed45bacc11d7f8ae8d36babf50
  • Loading branch information
potiuk authored and Cloud Composer Team committed Sep 19, 2024
1 parent eaa9ed9 commit 6e972e5
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 111 deletions.
3 changes: 3 additions & 0 deletions dev/breeze/src/airflow_breeze/commands/testing_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def run_tests_in_parallel(
)
@option_verbose
@option_dry_run
@option_github_repository
@click.argument("extra_pytest_args", nargs=-1, type=click.UNPROCESSED)
def command_for_tests(
python: str,
Expand All @@ -369,6 +370,7 @@ def command_for_tests(
upgrade_boto: bool,
collect_only: bool,
remove_arm_packages: bool,
github_repository: str,
):
docker_filesystem = get_filesystem_type("/var/lib/docker")
get_console().print(f"Docker filesystem: {docker_filesystem}")
Expand All @@ -386,6 +388,7 @@ def command_for_tests(
upgrade_boto=upgrade_boto,
collect_only=collect_only,
remove_arm_packages=remove_arm_packages,
github_repository=github_repository,
)
rebuild_or_pull_ci_image_if_needed(command_params=exec_shell_params)
cleanup_python_generated_files()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"--mysql-version",
"--mssql-version",
"--integration",
"--github-repository",
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions images/breeze/output-commands-hash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ stop:e5aa686b4e53707ced4039d8414d5cd6
testing:docker-compose-tests:b86c044b24138af0659a05ed6331576c
testing:helm-tests:936cf28fd84ce4ff5113795fdae9624b
testing:integration-tests:7865b62e9418ddb749511f8a801a49c2
testing:tests:d301440c82391f9c21c29e7a45efd3b9
testing:db7a6fc196906d4ead598d63b094c72f
testing:tests:9a8e3645ff5341788b5cd683b1c4bdcd
testing:c3afd3f1ed8d5c5fad09d289ef8edd63
Loading

0 comments on commit 6e972e5

Please sign in to comment.