Repository navigation
fix(doop/cd): freshness watch ignores a candidate built after the slot's D2 run (CHE-10558) [squash] - #185
Open
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
…t's D2 run (CHE-10558)
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. Refs CHE-10558.
Change
The CD freshness watch alarmed every 15 min after a merge that landed late in a slot window. Run 46074397367 is one example. The 15:17 UTC slot's D2 run (46042268498) deployed d108109 at 17:47 UTC. Commit 59c2604 merged at 21:14 UTC. The watch then failed with
candidate 59c2604 is ahead of the last successful D2 d108109, 408 min after the slot (limit 90)until the 23:17 UTC slot.freshness()now returnsnonewhen the candidate's D1 run was created after the slot and a D2 run exists since the slot. That candidate belongs to the next slot. A candidate with nobuiltAtMs, a candidate built before the slot, and a slot with no D2 run behave as before. The CLI passesbuiltAtMsfrom the D1 run'screated_at.Blast Radius
Only
scripts/cd-watch.mjsfreshness()and its CLI caller change. The live check, D2 and the D1 rerun are untouched. A real miss still alarms: a candidate built before the slot that D2 did not deploy, and a slot with no D2 run, both alarm as before. Proof level: 2.Evidence
Command:
npx vitest run tests/cdWatch.test.ts tests/cdWatchTrigger.test.ts tests/cdWatchWorkflows.test.tsResult on the fix: 3 files passed, 98 tests passed.
Red check: with
scripts/cd-watch.mjsreverted,does not alarm on a candidate built after the slot once that slot has a D2 runfails (1 failed, 71 passed intests/cdWatch.test.ts).Changelog
Changelog: none
Refs CHE-10558