Skip to content

feat(queue): retry waiting landings when their evidence arrives - #156

Open
PiquelChips wants to merge 1 commit into
feat/ci-target-promotionfrom
feat/ci-resume-landings
Open

PiquelChips wants to merge 1 commit into
feat/ci-target-promotionfrom
feat/ci-resume-landings

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A landing that waited for evidence stayed waiting until someone ran origin land again, even once the statements it lacked were issued. A CI worker answering it couldn't make it continue.

A waiting landing now resumes when statements about its subject arrive:

  • The queue keeps who submitted each waiting landing, with their token's scope and expiry, and the service retries it for them, under the policy in force then.
  • A retry that fails or is refused is logged and leaves the landing waiting; the statements that triggered it stand.
  • A server retries every waiting landing when it opens a repository, since a crash may have cut a retry short.
  • A landing whose submitter's token has expired is no longer retried: it waits to be landed again, and origin land --status says so.
  • origin annotate goes through the service, so it resumes landings too.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 77e0bad0-6adc-4f8b-aa8d-408d4dfa864f
Commits

Reviewing files that changed from the base of the PR and between c62fff4 and dfa0c9b.

Files selected for processing: 18

  • README.md
  • apps/origin-src/src/permissions.rs
  • apps/origin-src/src/queue/mod.rs
  • apps/origin-src/src/queue/pending.rs
  • apps/origin-src/src/queue/session.rs
  • apps/origin-src/src/queue/tests/changes.rs
  • apps/origin-src/src/queue/tests/evidence.rs
  • apps/origin-src/src/queue/tests/mod.rs
  • apps/origin-src/src/server.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/src/sync.rs
  • apps/origin-src/src/workspace/annotate.rs
  • apps/origin-src/src/workspace/land.rs
  • apps/origin-src/tests/cli.rs
  • apps/origin-src/tests/http.rs
  • crates/origin-shared/src/access.rs
  • crates/origin-shared/src/landing.rs
  • docs/openapi.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/ci-resume-landings branch from c1b0a26 to f42f5a5 Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/ci-resume-landings branch 2 times, most recently from 072f0be to 57c4548 Compare November 22, 2026 18:54
A landing that waited for evidence stayed waiting until someone ran
`origin land` again, even once the statements it lacked were issued. A
CI worker answering it couldn't make it continue.

The queue now keeps who submitted each waiting landing, with their
token's scope and expiry, and the service retries the landings waiting
for evidence about a subject whenever statements about it arrive, for
their submitter, under the policy in force then. A failed or refused
retry is logged and leaves the landing waiting: the statements stand. A
server retries every waiting landing when it opens a repository, since a
crash may have cut a retry short.

A landing whose submitter's token expired is no longer retried: it
waits until someone lands it again, and `origin land --status` says so.
`origin annotate` goes through the service, so it resumes landings too.
@PiquelChips
PiquelChips force-pushed the feat/ci-resume-landings branch from 57c4548 to dfa0c9b Compare November 22, 2026 19:20
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