diff --git a/ci/jobs/keeper_stress_job.py b/ci/jobs/keeper_stress_job.py index 7a689a3a85f11..549771a0e07dd 100644 --- a/ci/jobs/keeper_stress_job.py +++ b/ci/jobs/keeper_stress_job.py @@ -24,6 +24,7 @@ from praktika.utils import Shell, Utils from praktika._environment import _Environment +from ci.jobs.scripts.integration_tests_configs import IMAGES_ENV # ───────────────────────────────────────────────────────────────────────────── # Constants @@ -259,6 +260,12 @@ def build_pytest_env(ch_path, timeout_val): env[k] = ch_path env.setdefault("CLICKHOUSE_TESTS_BASE_CONFIG_DIR", f"{REPO_DIR}/programs/server") env["PATH"] = f"{str(Path(ch_path).resolve().parent)}:{env.get('PATH', '')}" + # Pin the integration images to this commit's multi-arch digest tags. + # Without them, cluster.py falls back to ':latest', which may hold a single arch. + for image_name, env_name in IMAGES_ENV.items(): + tag = Info().docker_tag(image_name) + if tag: + env[env_name] = tag env["KEEPER_METRICS_FILE"] = f"{TEMP_DIR}/keeper_metrics.jsonl" env["PYTHONPATH"] = f"{REPO_DIR}:{REPO_DIR}/tests/stress:{REPO_DIR}/ci" env["COMMIT_SHA"] = get_commit_sha(env) diff --git a/ci/jobs/scripts/workflow_hooks/filter_job.py b/ci/jobs/scripts/workflow_hooks/filter_job.py index ee896b9fc289a..cab2c226e22f2 100644 --- a/ci/jobs/scripts/workflow_hooks/filter_job.py +++ b/ci/jobs/scripts/workflow_hooks/filter_job.py @@ -82,6 +82,8 @@ def is_ci_excluded_by_tag(job_name, tag): # Must match ci.workflows.pull_request.KEEPER_STRESS_PR_NAME KEEPER_STRESS_PR_NAME = "Keeper Stress Tests (PR)" +# Provides CH_ARM_BIN_GH required by the Keeper stress job +KEEPER_STRESS_BUILD_NAME = "Build (arm_binary)" def _has_keeper_stress_changes(changed_files): @@ -452,6 +454,11 @@ def should_skip_job(job_name): ) for tag in ci_exclude_tags: if is_ci_excluded_by_tag(job_name, tag): + # The Keeper stress job is not affected by exclude tags, so keep its binary build + if job_name == KEEPER_STRESS_BUILD_NAME and _has_keeper_stress_changes( + changed_files + ): + continue return True, f"Skipped, job name includes excluded tag '{tag}'" # If only CI scripts changed (no product code), run a minimal set of tests diff --git a/tests/integration/test_database_glue/test.py b/tests/integration/test_database_glue/test.py index 97bf6e16e9d31..7e07dc1a2dd8c 100644 --- a/tests/integration/test_database_glue/test.py +++ b/tests/integration/test_database_glue/test.py @@ -380,7 +380,7 @@ def started_cluster(): name="sts.us-east-1.amazonaws.com", hostname="sts.us-east-1.amazonaws.com", image="altinityinfra/python-bottle", - tag="latest", + tag=os.environ.get("DOCKER_PYTHON_BOTTLE_TAG", "latest"), stay_alive=True, ) sts.stop_clickhouse(kill=True) diff --git a/tests/integration/test_storage_s3/test_sts.py b/tests/integration/test_storage_s3/test_sts.py index 16759ede4b521..7d4799c413c67 100644 --- a/tests/integration/test_storage_s3/test_sts.py +++ b/tests/integration/test_storage_s3/test_sts.py @@ -71,7 +71,7 @@ def started_cluster(): name="sts.amazonaws.com", hostname="sts.amazonaws.com", image="altinityinfra/python-bottle", - tag="latest", + tag=os.environ.get("DOCKER_PYTHON_BOTTLE_TAG", "latest"), stay_alive=True, ) sts.stop_clickhouse(kill=True)