Skip to content

feat(ci): parse checks.toml - #159

Open
PiquelChips wants to merge 1 commit into
feat/ci-target-pathsfrom
feat/ci-checks
Open

PiquelChips wants to merge 1 commit into
feat/ci-target-pathsfrom
feat/ci-checks

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

The CI plugin needs to know which checks a snapshot defines. This adds the apps/origin-ci crate, starting with checks.toml:

[checks.lint]
command   = "cargo clippy --workspace -- -D warnings"
inputs    = ["src", "Cargo.toml", "Cargo.lock"]
toolchain = "rustc -V"

[checks.links]
command  = "lychee docs"
inputs   = ["docs"]
external = true          # reads the network: never promoted

Each check issues statements of the kind ci.<name>. Its inputs are the paths it reads, the whole snapshot by default; its toolchain, a command whose output identifies the tools it runs with. Check::inputs turns these into what a result declares it depended on.

checks.toml is always one of the inputs, read from where the checks are in force (Defined): the snapshot's own copy for origin ci run, and for a worker, the target's, as a target path (#19). That way a result never shares the input digest of one that ran another definition.

Known limitation: a change in a toolchain's output only reaches the queue's promotions through the inputs, so pin toolchains in an input file such as rust-toolchain.toml.

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: c693013d-b336-4200-bc5a-a8eb34179ae0
Commits

Reviewing files that changed from the base of the PR and between e5ddb84 and f933e51.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 4

  • Cargo.toml
  • apps/origin-ci/Cargo.toml
  • apps/origin-ci/src/checks.rs
  • apps/origin-ci/src/lib.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-checks branch 2 times, most recently from 4ece29a to c584ba4 Compare November 22, 2026 18:54
The CI plugin needs to know which checks a snapshot defines. This adds
the `apps/origin-ci` crate, starting with `checks.toml`: each check's
command, its inputs (the whole snapshot by default), a toolchain command
whose output identifies its tools, and whether it's external. Each check
issues statements of the kind `ci.<name>`.

`checks.toml` is always one of a check's inputs, read from where the
checks are in force (`Defined`): the snapshot's own copy for `origin ci
run`, and for a worker, the target's, as a target path. So a result never
shares the input digest of one that ran another definition.
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