Skip to content

feat(ci): answer check requests as a worker - #163

Open
PiquelChips wants to merge 1 commit into
feat/ci-execfrom
feat/ci-worker
Open

PiquelChips wants to merge 1 commit into
feat/ci-execfrom
feat/ci-worker

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Nothing answered check.requested: a landing waiting for a ci.* result waited until someone ran the check by hand.

origin ci worker --remote <url> long-polls check.requested with a scoped token, such as one from origin token issue --scope "read /" --scope "annotate ci.*", and its results let the waiting landings continue.

  • The target's checks. It runs each check as the checks.toml at the tip of the target being landed on defines it, never the candidate's, so a change can't redefine the checks that guard its target. Its results declare that file as a target path (ci: a result can stand for a checks.toml other than the target's #19).
  • Nothing lost. It reconciles the waiting landings at start, after an outage, and every minute, so a missed event or a failed run is answered later. It outlives server restarts: while the remote can't be reached (RemoteError::is_unreachable), it waits and tries again.
  • Target landings are checked as the merge they would make, a revision on the tip of the target they land on.

Proved end to end against origin serve, including results_stand_for_the_checks_in_force_on_the_target for #19 and workers_outlive_the_server_and_lose_no_check.

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: dac928db-815f-40b0-9913-91d477775e6a
Commits

Reviewing files that changed from the base of the PR and between 6695a7c and c5a4715.

Files selected for processing: 8

  • AGENTS.md
  • README.md
  • apps/origin-ci/src/lib.rs
  • apps/origin-ci/src/main.rs
  • apps/origin-ci/src/worker.rs
  • apps/origin-ci/tests/ci.rs
  • apps/origin-src/src/remote.rs
  • apps/origin-src/tests/common/mod.rs
  • 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-worker branch 3 times, most recently from b3ba18c to f81bfcc Compare November 22, 2026 18:54
Nothing answered `check.requested`: a landing waiting for a `ci.*` result
waited until someone ran the check by hand.

`origin ci worker --remote <url>` long-polls a remote's `check.requested`
events with a scoped token, and runs each check requested on the
landing's subject, as the `checks.toml` at the tip of the target it lands
on defines it, never the candidate's: a change can't redefine the checks
that guard its target. Its statements let the landings continue.

The events are only a prompt, so the worker also reconciles: at start,
once the remote can be reached again, and every minute, it answers every
check a waiting landing lacks that it hasn't answered yet. While the
remote can't be reached (`RemoteError::is_unreachable`), it waits and
tries again, so it outlives server restarts and loses no check. The
end-to-end helpers can restart a server at the same address, and start
one with an admin.
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