FORGE-248: preserve current heads when delayed CI reports arrive #996

Merged
gmackie merged 1 commit from FORGE-248-ci-head-fence into main 2026-10-29 06:11:46 +00:00
Owner

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.

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.
FORGE-248: preserve branch heads when late CI results arrive
Some checks failed
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 1s
CI / gitleaks (pull_request) Successful in 7s
CI / storybook (pull_request) Successful in 1m48s
CI / checks (pull_request) Successful in 2m3s
CI / unit-api (pull_request) Successful in 42s
CI / web-build (pull_request) Successful in 3m57s
Preview / deploy (pull_request) Successful in 5m55s
CI / unit-web (pull_request) Successful in 3m37s
Preview / e2e (pull_request) Successful in 18s
Preview / release (pull_request) Successful in 11s
CI / go (pull_request) Successful in 2m59s
CI / database-d1 (pull_request) Successful in 4m48s
CI / database (pull_request) Successful in 5m14s
CI / ci (pull_request) Has been cancelled
e6a6da53d7

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)

<!-- forgegraph-preview --> 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)
Author
Owner

Preview environment is live: https://pr-996-forgegraph.forgegraf.com

Deployed e6a6da53 with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.

Preview environment is live: https://pr-996-forgegraph.forgegraf.com Deployed `e6a6da53` with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.
gmackie force-pushed FORGE-248-ci-head-fence from e6a6da53d7
Some checks failed
Preview / cleanup (pull_request) Has been skipped
CI / superseded (pull_request) Successful in 1s
CI / gitleaks (pull_request) Successful in 7s
CI / storybook (pull_request) Successful in 1m48s
CI / checks (pull_request) Successful in 2m3s
CI / unit-api (pull_request) Successful in 42s
CI / web-build (pull_request) Successful in 3m57s
Preview / deploy (pull_request) Successful in 5m55s
CI / unit-web (pull_request) Successful in 3m37s
Preview / e2e (pull_request) Successful in 18s
Preview / release (pull_request) Successful in 11s
CI / go (pull_request) Successful in 2m59s
CI / database-d1 (pull_request) Successful in 4m48s
CI / database (pull_request) Successful in 5m14s
CI / ci (pull_request) Has been cancelled
to 3f5bac31b9
All checks were successful
CI / superseded (pull_request) Successful in 1s
CI / unit-api (pull_request) Successful in 1m24s
CI / storybook (pull_request) Successful in 1m44s
CI / gitleaks (pull_request) Successful in 9s
CI / checks (pull_request) Successful in 1m46s
CI / unit-web (pull_request) Successful in 2m13s
CI / web-build (pull_request) Successful in 3m56s
CI / go (pull_request) Successful in 2m21s
CI / database-d1 (pull_request) Successful in 4m43s
CI / database (pull_request) Successful in 6m52s
forgegraph/ci CI passed
CI / ci (pull_request) Successful in 30s
Preview / deploy (pull_request) Has been skipped
Preview / e2e (pull_request) Has been skipped
Preview / release (pull_request) Has been skipped
Preview / cleanup (pull_request) Successful in 31s
2026-10-29 06:00:14 +00:00
Compare
Sign in to join this conversation.
No description provided.