++ slice jobs allow failure

This commit is contained in:
Kochetkov S 2026-10-27 22:36:55 +03:00
parent 0fb5374e06
commit eeb27c6e29
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ def child_pipeline(contours: list[str], release: str, commit: str) -> str:
"stage": "slices",
"image": JOB_IMAGE,
"tags": ["build"],
"allow_failure": True,
"variables": {"GIT_DEPTH": "1"},
"script": [
"printf '%s' \"$SLICES_PUSHER_KEY\" | base64 -d > /tmp/slices-key.json",

View File

@ -88,5 +88,6 @@ def test_child_pipeline_has_one_job_per_contour():
doc = yaml.safe_load(ps.child_pipeline(["stand", "vad"], "3.9.68", "abcdef1234"))
jobs = {k: v for k, v in doc.items() if k != "stages"}
assert sorted(jobs) == ["slice stand", "slice vad"]
assert all(j["allow_failure"] for j in jobs.values())
assert "--contour vad --release 3.9.68 --commit abcdef1234" in jobs["slice vad"]["script"][1]
assert all(ord(ch) < 128 for ch in ps.child_pipeline(["stand"], "1.0.0", "a" * 40))