fix(ci): record a FAILED deployment when the preview deploy aborts - #658
Conversation
When the deploy job fails after the build (artifact validation rejects the bundle, wrangler upload errors, etc.), it produced no preview and recorded no Deployment — so Reviewbot's before/after 'after' cell sat on an eternal 'Rendering preview…' spinner with no signal it would never come (exactly the .zip-allowlist regression). Add a failure step (if: failure() && CF creds present) that resolves the PR the same fork-safe way and records a 'failure' deployment_status. Reviewbot already maps a failed deployment_status to a terminal 'preview deploy failed' card, so the spinner now resolves to an honest terminal state on any deploy abort.
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
gittensory · advisory review Reviewed 1 changed file(s) — two independent AI reviewers. Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Robustly closes the 'eternal spinner' gap (reviewbot #92).
When the UI Preview Deploy job fails after a successful build — artifact validation rejects the bundle (the
.zipregression), the wrangler upload errors, etc. — it produces no preview and records no Deployment. Reviewbot's before/after 'after' cell then sits on an eternalRendering preview…spinner with no signal that a preview is never coming. Reviewbot can't see this: there's no Deployment to read, and the deploy runs onworkflow_runso it isn't a PR check.Fix: add a failure step (
if: failure() && steps.cfg.outputs.ready == 'true') that resolves the PR the same fork-safe way as the success step and records afailuredeployment_status(payload{pr, head_sha}). Reviewbot already maps a faileddeployment_statusto a terminal 'Preview deploy failed — review manually' card (reviewbot #80), so the spinner now resolves to an honest terminal state on any deploy abort, while the source bug is still surfaced by the failing job.No change to the success path. YAML validated.