fix(ci): reduce Actions usage by windowing News schedules to active UTC hours - #219
Draft
DevSecNinja with Copilot wants to merge 2 commits into
Draft
fix(ci): reduce Actions usage by windowing News schedules to active UTC hours#219DevSecNinja with Copilot wants to merge 2 commits into
DevSecNinja with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix CI to reduce workflow usage
fix(ci): reduce Actions usage by windowing News schedules to active UTC hours
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo consumed ~3,809 Actions minutes in July. The largest reducible cost was the
NewsandNews watchdogworkflows, each scheduled hourly (24×/day) but only doing real work during the local active window (odd hours 07:00–21:00 Europe/Amsterdam). Overnight runs booted a runner, gate-skipped in seconds, and were still billed (GitHub rounds each job up to 1 minute).Changes
News:7 * * * *→7 5-20 * * *News watchdog:37 * * * *→37 5-20 * * *tests/test_workflows.py): updated schedule assertions.docs/github-actions.md): updated schedule table, cron excerpt, watchdog note, and scheduling rationale.Why
5-20UTCCovers every real-work slot year-round — summer (UTC+2) maps local 07:00 → 05:00 UTC; winter (UTC+1) maps local 21:00 → 20:00 UTC. The overnight UTC hours (21:00–04:00) can never fall in the active window, so scheduling them was pure waste.
Impact
Eliminates ~16 always-skip runs/day (~8 per workflow, ≈480 min/month). No behavior change inside the active window: the in-job cadence gate still selects the exact odd local hours, and the watchdog still self-heals schedule jitter.
Further levers (not included; each trades off a feature)
Lower the briefing cadence (e.g. 3h), run the watchdog every 2h, or drop the redundant full unit-test run in
pages.yml's per-deploytest-command.