Repository navigation
test(land): port the own queue's rare landing paths - #714
Merged
Merged
Conversation
Quest-Claim: 64009e2f07baed1f
…serve tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 13, 2026 23:51
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I reviewed the port of the retired serve tests into the "watcher's own queue" suite. All 36 tests in that suite pass locally.
queueSetupinstrumentation: it now recordswarningsand retrypauses, and adds ahooks.tokencallback. An opt-inscopedmode mints tokens withworkflows: writeonly when asked, andscopesrecords the grant in force at each mergePUT.- Restart after a prepared-head push: the queue's recorded merge lands. A writer's commit pushed over it is ejected as
head_moved. - Fork fallback base push: refused → ejects
merge_refused, and the PR is not closed. Base moved → the pass stops quietly and the next one rebuilds. A transientRepository not foundis retried. I checked that themovedhook fires insidefinishFallback's push, as the comment says. - Prepared-head push backoff: 1 failure lands. 5 failures pause 1s/2s/4s/8s, then the pick is refused with
merge_refused. - Merge refusals: covers a 409, a 405 on a stale pin (
forge.lag), stale mergeablefalse/dirty, and mergeability that never settles (the pick stays queued and the next pass lands it). - Tree checks: an API squash mismatch or a stranger second parent logs CRITICAL and stays merged. A prepared tree mismatch ejects
tree_mismatch. It swaps thequestwrapper inPATH[0], which is a per-test temp dir, so other tests are unaffected. - Workflow scoping: the merge token gets
workflows: writeonly for the PR's own commits, the queue's base merge, or the author's base merge. The base-merge case really separates thediffcheck from thelog -mcheck intouchesWorkflows. - Quest file:
quest/m0/own-queue-landing-tests.mdis removed as finished, and nothing still links to it.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Finishes
quest/m0/own-queue-landing-tests.md.Summary
Ports the serve tests that #707 deleted (recovered from its base,
c1c04e0) to the watcher's own queue suite intest/land.test.ts. They keep their original assertions and now run throughownPass:head_moved.merge_refused, PR not closed) or that finds the base moved (stops quietly, then the next pass rebuilds on the new base).merge_refused).false/dirty, and mergeability that never settles (the pick stays queued and the next pass lands it).tree_mismatch.workflows: writeonly when the PR's commits, the queue's base merge, or the author's base merge touch.github/workflows.queueSetupnow records warnings and retry pauses. It also has a token hook, and an opt-inscopedmode that mints each token withworkflows: writeonly on request.Choices made without asking
land-head.tswas deleted.forge.deps(), so token strings can't identify a grant.just checkandjust testpass (1232 tests).Models
Suggested follow-ups
None.
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with low)
Review
Rewritten by
quest reviewafter each round.Head: 1013ee7
Base: origin/main at b62403e
Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a1d752-82e6-7b10-ab3e-e24f5289930f, round 1Score: 9/10,
The added tests exercise the targeted own-queue landing paths, and code inspection found no actionable defects; builds and tests were not run, as instructed.Rounds: 1; findings 0: fixed 0, refuted 0, open 0
Findings: none
Reviewer: Codex, gpt-6.1-sol, low effort, shadow
Session:
01a1d752-82e6-7bb1-849d-e086dae101c8, round 1Score: 9/10,
The added tests cover the own queue's rare landing paths without changing production behavior, and code inspection found no actionable defects, though builds and tests were not run as instructed.Rounds: 1; findings 0: fixed 0, refuted 0, open 0
Findings: none