Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ci/jobs/keeper_stress_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions ci/jobs/scripts/workflow_hooks/filter_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_database_glue/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_storage_s3/test_sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading