Skip to content

ci: a rebased PR reuses its earlier previews instead of failing after 12 minutes - #32

Merged
silveltman merged 1 commit into
mainfrom
ci/rebased-previews
Nov 22, 2026
Merged

silveltman merged 1 commit into
mainfrom
ci/rebased-previews

Conversation

@silveltman

@silveltman silveltman commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

After a PR was rebased, its Test job waited 12 minutes and failed ("Matching previews did not complete within 12 minutes"). This happened on fulldotdev/fulldev#786. The previews were still built from the commit before the rebase. Netlify did not build them again because their inputs had not changed. Preview accepted a preview only from an ancestor of the PR head, so it waited for a build that never came.

Preview now compares a PR preview's build inputs with the head, whatever the history. A commit that only origin still has is fetched by SHA with the job's token. A failed fetch is tried again on the next poll. The production fallback keeps the ancestor rule.

Proof: a new test rebases a PR against a bare origin that only serves the old commit. It fails against main with the production error and passes with this change; node --test tests/*.test.mjs 22/22.

Reviewed with sol-loop: 3 rounds with GPT 6.2 Sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code; reviewed by GPT 6.2 Sol.

🤖 Generated with Claude Code


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… 12 minutes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silveltman
silveltman merged commit a0eaf13 into main Nov 22, 2026
3 checks passed
@silveltman
silveltman deleted the ci/rebased-previews branch November 22, 2026 23:41
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.

1 participant