FORGE-248: preserve current heads when delayed CI reports arrive #996
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!996
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-248-ci-head-fence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FORGE-248: https://tasks.gmac.io/gmacko/issue/FORGE-248
A delayed CI report for an older AW-11 commit rewrote the tracked PR head and its green summary. Scope build lookup to the repository and normalized branch, retain old results as historical evidence, and stop them before notification, gate, merge, or deployment side effects.
Repositories missing push webhooks still reconcile: advance a mutable tracking head only when the Git host confirms the reported SHA, using a compare-and-swap so a concurrent push wins. Merged/closed feature revisions remain immutable; the default branch tracking row can advance. Host lookup failures retain historical evidence without advancing gates. Plain terminal retries now succeed instead of rendering an empty Drizzle UPDATE.
Validation: 13 actual report/database regression cases pass, including late success/failure/cancellation, closed/merged history, missing push reconciliation, host outage, concurrent push, normalized default branch, repository isolation and retry deduplication. Web typecheck and focused lint pass (anti-slop warnings). Full web unit suite also exercised. Related shared deployment repair: FORGE-237 #995.
Delivery target: production; exact-head CI and serving health required before closure.
Worker Preview: https://pr-996.previews.forgegraf.com (updates on every push; behind Cloudflare Access; shared previews database, the banner shows which PR owns it)
Preview environment is live: https://pr-996-forgegraph.forgegraf.com
Deployed
e6a6da53with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.e6a6da53d73f5bac31b9