Skip to content

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
cheese/mainfrom
agent/x99-claude-sonnet/che-10557-dc35a304cffe
Draft

congvc-bot-x99[bot] wants to merge 1 commit into
cheese/mainfrom
agent/x99-claude-sonnet/che-10557-dc35a304cffe

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

CHE-10557. The CD freshness watch failed 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: freshness returns none when the candidate's D1 run finished after the last slot. The CLI passes readyMs from the D1 run updated_at. A candidate without readyMs is 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 watch run after this merges to cheese/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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants