Repository navigation
fix(cd): do not alarm D2 freshness for a candidate built after the last slot (CHE-10557) [squash] - #184
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
…st slot (CHE-10557)
This branch has not been deployed
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.
Summary
CHE-10557. The
CD freshness watchfailed every 15 min since 19:05 UTC on 27 Nov 2026 with "D2 is overdue: candidate 59c2604 is ahead of the last successful D2 d108109, 423 min after the slot".Cause
The alarm counts its 90 min limit from the last D2 slot (15:17 UTC). Candidate 59c2604 merged at 18:55 UTC and its D1 build finished at 19:05 UTC, so it did not exist at that slot. D2 ran at 17:29 UTC (late) and deployed d108109, which was the newest candidate then. The next slot is 23:17 UTC. The watch alarmed for a slot the candidate had missed by arriving late. Any merge more than 90 min before a slot triggers this.
Change
scripts/cd-watch.mjs:freshnessreturnsnonewhen the candidate's D1 run finished after the last slot. The CLI passesreadyMsfrom the D1 runupdated_at. A candidate withoutreadyMsis treated as due (old behaviour). A candidate ready before the slot still dispatches and alarms as before.tests/cdWatch.test.ts: two cases. A late candidate gives no action or alarm at 45, 90, 155 and 423 min. An early candidate still alarms.Tests
bunx vitest run tests/cdWatch.test.ts tests/cdWatchTrigger.test.ts tests/cdWatchWorkflows.test.ts tests/deployTrain.test.ts-> 4 files, 298 tests passed. Prettier check passes on both files.Not done
No deploy, no release, no paid CI. Done-when for the issue needs a later green
CD freshness watchrun after this merges tocheese/main; the 23:17 UTC D2 slot should also deploy 59c2604.Changelog: The CD freshness watch no longer raises a false overdue alarm for a candidate built after the last D2 slot.