mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
@@ -19,9 +19,12 @@ with open(".gitlab-ci.yml", encoding="utf-8") as gitlab_ci_yml:
|
|||||||
anchors = yaml.load(gitlab_ci_yml, Loader=yaml.Loader)
|
anchors = yaml.load(gitlab_ci_yml, Loader=yaml.Loader)
|
||||||
|
|
||||||
for tsan_job in "gcc:tsan", "clang:tsan":
|
for tsan_job in "gcc:tsan", "clang:tsan":
|
||||||
tsan_stress_test_job = anchors[f"system:{tsan_job}"]
|
for test_type in "unit", "system":
|
||||||
|
tsan_stress_test_job = anchors[f"{test_type}:{tsan_job}"]
|
||||||
tsan_stress_test_job["stage"] = "test"
|
tsan_stress_test_job["stage"] = "test"
|
||||||
tsan_stress_test_job["rules"] = [{"if": '$CI_PIPELINE_SOURCE == "parent_pipeline"'}]
|
tsan_stress_test_job["rules"] = [
|
||||||
|
{"if": '$CI_PIPELINE_SOURCE == "parent_pipeline"'}
|
||||||
|
]
|
||||||
tsan_stress_test_job["parallel"] = NUMBER_OF_TESTS_PER_TSAN_JOB
|
tsan_stress_test_job["parallel"] = NUMBER_OF_TESTS_PER_TSAN_JOB
|
||||||
tsan_stress_test_job["needs"] = [
|
tsan_stress_test_job["needs"] = [
|
||||||
{"pipeline": "$PARENT_PIPELINE_ID", "job": tsan_job}
|
{"pipeline": "$PARENT_PIPELINE_ID", "job": tsan_job}
|
||||||
@@ -30,7 +33,7 @@ for tsan_job in "gcc:tsan", "clang:tsan":
|
|||||||
|
|
||||||
print(
|
print(
|
||||||
yaml.dump(
|
yaml.dump(
|
||||||
{f"system:{tsan_job}:stress": tsan_stress_test_job},
|
{f"{test_type}:{tsan_job}:stress": tsan_stress_test_job},
|
||||||
Dumper=yaml.Dumper,
|
Dumper=yaml.Dumper,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user