diff --git a/scripts/tests/test_dashboards_render_atlas.py b/scripts/tests/test_dashboards_render_atlas.py index d102d4fc..5c65aaf2 100644 --- a/scripts/tests/test_dashboards_render_atlas.py +++ b/scripts/tests/test_dashboards_render_atlas.py @@ -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] diff --git a/services/jenkins/configmap-jcasc.yaml b/services/jenkins/configmap-jcasc.yaml index 33b3faed..4b59de10 100644 --- a/services/jenkins/configmap-jcasc.yaml +++ b/services/jenkins/configmap-jcasc.yaml @@ -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 * * *') } } }