Repository navigation
fix(doop/cd): freshness watch skips a candidate built after the last D2 run (CHE-10563) [squash] - #186
Open
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
…D2 run (CHE-10563)
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-10563.
Change
On 27 Nov 2026, D2 ran for the 15:17 UTC slot at 17:29 UTC and deployed d108109. Commit 59c2604 finished its D1 build at about 19:05 UTC, after that run. The watch measured age from the 15:17 slot and alarmed every 15 min from 16:47 UTC (run 46077531591: "438 min after the slot"). That candidate belongs to the 23:17 UTC slot.
freshnessnow takescandidateAtMs(when the candidate's D1 run finished) andd2LatestMs(when the newest D2 run since the slot was created). When a D2 run exists since the slot and the candidate qualified after it, the result isnone. If either time is unknown, the alarm stays.Blast Radius
Only
scripts/cd-watch.mjsfreshnessand its CLI input. The dispatch path (no D2 run since the slot) and thelivewatcher are unchanged. A candidate that existed before a failed or skipped D2 run still alarms at 90 min. Proof level: 2.Evidence
Command:
bunx vitest run tests/cdWatch.test.ts tests/cdWatchTrigger.test.ts tests/cdWatchWorkflows.test.tsOutput:
Test Files 3 passed (3),Tests 98 passed (98).New test: "does not alarm for a candidate that qualified after the newest D2 run since the slot".
bunx prettier --checkpasses on both files.Changelog: none
Refs CHE-10563