Repository navigation
fix(ci): do not alarm on a D2 candidate that qualified after the slot's D2 run (CHE-10559) [squash] - #187
Open
congvc-bot-x99[bot] wants to merge 2 commits into
Conversation
added 2 commits
November 28, 2026 06:15
…'s D2 run (CHE-10559) [squash]
… its creation (CHE-10559)
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.
Status
Draft. Fix for the CD freshness watch false alarm in CHE-10559.
Change
The freshness watch failed every 15 min from 20:16 UTC on 27 Nov 2026. The D2 run at 17:29 UTC had already deployed
d108109for the 15:17 UTC slot. Candidate59c2604merged at 18:55 UTC, after that run. The watch measured its 90 min limit from the slot, not from the candidate. It raised "D2 is overdue" for a candidate that D2 could not have picked up yet.Now
freshness()takescandidateAtMs(D1 run finish time) andnewestD2AtMs(last activity,updated_at, of the newest D2 run since the slot). When a D2 run exists since the slot and the candidate finished after that run ended, the result isnone. A candidate that finished while that run was still going may have been picked by itsresolvestep, so it keeps the alarm (review finding P1, fixed in the second commit). The candidate waits for the next slot. That slot then applies its own 45 min dispatch and 90 min alarm. If either time is unreadable, the old alarm stays.Blast Radius
Touches only
scripts/cd-watch.mjs(thefreshnessdecision and its CLI call) andtests/cdWatch.test.ts.pickCandidateanddeploy-gate.mjsare unchanged. It can only suppress an alarm, never add a deploy. A candidate that was ready before the slot's D2 run still alarms. Detected by the same watch run oncheese/main. Proof level: 2.Evidence
Test command:
npx vitest run tests/cdWatch.test.ts tests/deployTrain.test.tsResult: 2 files passed, 271 tests passed.
oxlintandprettier --checkclean on both changed files.Post-merge proof,
PENDING-POST-MERGE: a later green run of "CD freshness watch" oncheese/main.Changelog: The CD freshness watch no longer raises a false overdue alarm for a candidate that merged after the slot's D2 run.
Refs CHE-10559