SIGN IN SIGN UP

chore(webapp): admin endpoint to backfill Vercel deployment external ids (#4770)

Skew protection resolves a run's worker by (environmentId, externalId,
status=DEPLOYED). A miss parks the run and then expires it, so
deployments
predating the feature — which already carry the same value in commitSHA
— need
externalId populated to stay reachable. Vercel instant-rollback is the
sharpest
case, which is why the scope is the current promotion plus a recent
window
rather than current alone.

Follows the existing backfill shape: admin PAT, keyset cursor over
environments,
per-environment action results, pMap, dryRun defaulting to true. Reuses
normalizeExternalDeploymentId so a backfilled id is byte-identical to
what a
build writes, and the update re-checks externalId IS NULL so a deploy
landing
mid-backfill keeps its own id.

Refs TRI-13464.
O
Oskar Otwinowski committed
036cf8d2c8d42d0a3fe0ef34be0475ba037c82f8
Parent: 11e1cd8
Committed by GitHub <noreply@github.com> on 8/25/2026, 11:30:54 AM