Skip to content

feat(ci): run a command as a check with origin ci exec - #162

Open
PiquelChips wants to merge 1 commit into
feat/cifrom
feat/ci-exec
Open

PiquelChips wants to merge 1 commit into
feat/cifrom
feat/ci-exec

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What and why

Sometimes a check isn't in checks.toml yet, or you want to rerun one with another command. That should still produce a proper result: one that declares its inputs and can be promoted.

origin ci exec <name> [--rev <rev>] [--inputs ...] [--toolchain <cmd>] [--external] -- <command...> runs an ad-hoc check exactly as ci run runs one of checks.toml: in a checkout of the revision, with its output as the payload, its exit status as the verdict and its command, quoted for the shell, as the definition. It always runs, superseding your previous result of that kind.

Proved with exec_runs_a_command_as_a_check and a_failed_exec_wins_over_a_promoted_pass. require_tests moves to the shared test helpers so the plugin's tests can use it.

It follows the engineering standard, which the stack below it adopts: it drops or turns into docs and markers its own plain comments.

Testing

CI runs just lint, just test and just standard on this commit. Rebuilding the stack checked just standard and just lint on every commit, and just test on the top.

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 18 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: f0125d6a-96d7-4111-863c-2db9a5980a59
Commits

Reviewing files that changed from the base of the PR and between 35e2350 and a609a45.

Files selected for processing: 10

  • README.md
  • apps/origin-ci/src/checks.rs
  • apps/origin-ci/src/checks/tests.rs
  • apps/origin-ci/src/lib.rs
  • apps/origin-ci/src/main.rs
  • apps/origin-ci/src/runner.rs
  • apps/origin-ci/tests/ci.rs
  • apps/origin-src/tests/cli.rs
  • apps/origin-src/tests/common/mod.rs
  • docs/design.md
  • 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-exec branch 4 times, most recently from 5ab9528 to 6695a7c Compare November 22, 2026 19:20
@PiquelChips
PiquelChips force-pushed the feat/ci-exec branch 2 times, most recently from 2fdd7a8 to 8ef9307 Compare November 23, 2026 09:32
@PiquelChips
PiquelChips force-pushed the feat/ci-exec branch 2 times, most recently from 3fa8733 to ae3fba1 Compare November 23, 2026 10:11
@PiquelChips
PiquelChips force-pushed the feat/ci-exec branch 3 times, most recently from f641cd1 to d45ac3b Compare November 23, 2026 15:01
@PiquelChips
PiquelChips force-pushed the feat/ci-exec branch 5 times, most recently from 0261f14 to f26194c Compare November 24, 2026 22:47
@PiquelChips
PiquelChips removed this pull request from stack #165 November 24, 2026 22:57
@PiquelChips
PiquelChips added this pull request to stack #192 November 24, 2026 23:00
@PiquelChips
PiquelChips removed this pull request from stack #192 November 25, 2026 17:31
A check that isn't in `checks.toml` yet, or a rerun with another command,
should still give a proper result: one that declares its inputs, so it
can be promoted.

`origin ci exec <name> [--rev <rev>] [--inputs ...] [--toolchain <cmd>]
[--external] -- <command...>` runs a command exactly as `ci run` runs a
check of `checks.toml`: in a checkout of the revision, with its output as
the payload, its exit status as the verdict and its words, quoted for the
shell, as the definition. It always runs, even where a result covers it,
superseding your previous result of that kind.

`require_tests` moves to the shared end-to-end helpers, so the plugin's
tests can use it.
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