++ slice jobs allow failure
This commit is contained in:
parent
0fb5374e06
commit
eeb27c6e29
@ -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",
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user