ci(jenkins): refresh suite jobs twice daily
This commit is contained in:
parent
f2ad8cca4c
commit
09e64c8ca4
@ -468,6 +468,26 @@ def test_jobs_dashboard_collapses_heavy_drilldowns_for_light_first_paint():
|
||||
assert branch_panel["targets"][0]["expr"].startswith("sort(")
|
||||
|
||||
|
||||
def test_in_scope_jenkins_jobs_have_twice_daily_refresh_trigger():
|
||||
casc = pathlib.Path("services/jenkins/configmap-jcasc.yaml").read_text()
|
||||
in_scope_jobs = [
|
||||
"ananke",
|
||||
"ariadne",
|
||||
"atlasbot",
|
||||
"bstein-dev-home",
|
||||
"data-prepper",
|
||||
"metis",
|
||||
"pegasus",
|
||||
"soteria",
|
||||
"titan-iac",
|
||||
]
|
||||
|
||||
for job in in_scope_jobs:
|
||||
block = casc.split(f"pipelineJob('{job}')", 1)[1].split("pipelineJob(", 1)[0]
|
||||
assert "cron" in block
|
||||
assert "spec('H H/12 * * *')" in block
|
||||
|
||||
|
||||
def test_lesavka_jenkins_job_has_daily_refresh_trigger():
|
||||
casc = pathlib.Path("services/jenkins/configmap-jcasc.yaml").read_text()
|
||||
lesavka_block = casc.split("pipelineJob('lesavka')", 1)[1].split("pipelineJob(", 1)[0]
|
||||
|
||||
@ -93,7 +93,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -151,7 +151,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -180,7 +180,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -264,7 +264,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -293,7 +293,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -322,7 +322,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -351,7 +351,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -380,7 +380,7 @@ data:
|
||||
ignorePostCommitHooks(false)
|
||||
}
|
||||
cron {
|
||||
spec('H H * * *')
|
||||
spec('H H/12 * * *')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user