Skip to content

feat(ci): run checks and issue their results - #161

Open
PiquelChips wants to merge 1 commit into
feat/ci-checkoutsfrom
feat/ci-runner
Open

PiquelChips wants to merge 1 commit into
feat/ci-checkoutsfrom
feat/ci-runner

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

With checks parsed and checkouts made, something has to run the checks and issue their results, and it should use only origin's public API.

Runner checks a record through a Remote, the SDK over HTTP or the service in-process:

  1. It reads the checks from the checks.toml of a snapshot it's given: the record's own, or for a worker, the tip of the target the record lands on.
  2. It asks the remote to promote existing results first (POST /promote), and skips a check that a result of its issuer, ran or promoted, already covers. It only counts statements whose claims hold, so it agrees with the server on every claim.
  3. Otherwise it runs the check in a checkout of its own and issues a ci.<name> statement: pass if the command exits with 0, with the last 64 KiB of its output as the payload, superseding its issuer's previous result.

A check defined by another checks.toml than the one its result declares, as when the target's tip moved past the record's base, is declared external, so its result is never promoted. The remote gains statements and promote calls for it.

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: aebab7d4-9dc3-4546-872f-3c6f52e9e02c
Commits

Reviewing files that changed from the base of the PR and between 0fa32ce and 1b0db4f.

Files selected for processing: 3

  • apps/origin-ci/src/lib.rs
  • apps/origin-ci/src/runner.rs
  • apps/origin-src/src/remote.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-runner branch 2 times, most recently from 6156c93 to 8b21ef2 Compare November 22, 2026 18:54
With checks parsed and checkouts made, something has to run the checks
and issue their results, through origin's public API only.

`Runner` checks a record through a `Remote`, the SDK over HTTP or the
service in-process. It reads the checks from the `checks.toml` of a
snapshot it's given: the record's own, or for a worker, the tip of the
target the record lands on. It asks the remote to promote existing
results first, and skips a check that a result of its issuer, ran or
promoted, already covers, counting only statements whose claims hold, as
the server does. Otherwise it runs the check in a checkout of its own and
issues a `ci.<name>` statement: `pass` if the command exits with 0, with
the last 64 KiB of its output as the payload, superseding its issuer's
previous result.

A check defined by another `checks.toml` than the one its result
declares, as when the target's tip moved past the record's base, is
declared external, so its result is never promoted. `Remote` gains the
`statements` and `promote` calls the runner makes.
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