Repository navigation
ci(init): install ripr through the release's ripr-check action; generated workflow 216 → 150 lines (#5409) - #13830
Conversation
The generated `ripr init --ci github` workflow carried a 65-line copy of the installer that also lives in .github/actions/ripr-check. It now runs that Action from the pinned release tag with a new `install-only` input, so the installer exists once and the workflow drops from 216 to 150 lines. PR number and head SHA move to job env, the repository comes from the runner's GITHUB_REPOSITORY, and setting comments trail their entries. doctor reads the pin from the Action tag; the archive replays now run the Action's installer with the version the workflow passes. Docs (CI.md, RELEASE.md, EXIT_CODES.md, spec 0038) record the route and the release check that the tag carries the Action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU2ixP77wQD1hYUsRB
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 57 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
ripr static exposure checkCommit Took 110s. |
…#5409) Review follow-ups on the ripr-check install route: - release-readiness `init-generator-self-pin` and the manual smoke in INSTALLATION_VERIFICATION.md looked for the removed inline installer (`cargo install ripr --version`, `version=`), so they would fail a correct 0.11 release; they now require the action tag and `version:` input, with fixtures in the real rendered shape. - doctor takes the step's `version:` input (what CI installs) over the tag and names a tag/input split. - the archive replay's falsifier 4 wording now says it covers a non-matching ambient ripr; the network allowlist note names the action's install step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU2ixP77wQD1hYUsRB
…_concat) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU2ixP77wQD1hYUsRB
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head af01130
Review of the full diff on this head. It combines an independent fresh-agent review, Devin's two threads and my own pass.
- Template:
Install ripris a singleuses:step onEffortlessMetrics/ripr/.github/actions/ripr-check@v<pin>, withversion: <pin>andinstall-only: true. No installer shell remains, and the rendered output is 150 lines. - Action:
install-onlydefaults to'false', so existing callers see no change, andRun ripr checkis gated on it. - Context rules:
runneris used in step env andgithubin job env, both allowed.steps.install.outcomestill works throughid: install, and the composite's$GITHUB_PATHwrite reaches later steps. - Cache dir:
RIPR_CACHE_DIRonly matters toripr reports ci-packet, which still receives it. - Tokens:
GH_TOKENstays step-scoped. The job env carries only the public PR number and head SHA. - Reviewer finding, addressed: release-readiness
init-generator-self-pinand the manual smoke in INSTALLATION_VERIFICATION.md now look for the action tag andversion:input. The fixtures use the real rendered shape, and I checked the grep against realripr init --dry-runoutput with a matching and a non-matching version. - Devin finding, addressed: doctor prefers the
version:input and names a tag/input split. A test covers it. - Installer replays: the Windows zip and unix archive routes, the failed-install explanations and the cargo fallback all run the Action's
Install riprblock with the version the workflow passes. Falsifier 4's wording now matches what it covers. Reuse of a matching ambient ripr is the Action's documented rule (#11659), covered intests/ripr_check_action.rsand disclosed in CI.md and spec 0038. - Local checks:
cargo xtask precommitexit 0 on this head's content. Focused suites pass: lib init/init_workflow/commands/doctor, generated_review_workflow 33, ripr_check_action 16, cli_smoke init_ci/doctor 62, and xtask distribution plus init_generator_self_pin. - Threads: both Devin threads have replies and are resolved.
Generated by Claude Code
|
The fix is open as #13848. Once it lands I'll bring main into this branch so the required checks run on a tree that compiles. Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — head 71d13eb
This head is af01130 (reviewed: independent subagent review plus Devin, all findings addressed) with origin/main merged in by a merge commit. The merge resolved without conflicts and touches none of this PR's files. It brings in #13848, so the tree compiles again and the required checks can run.
Dimensions refreshed: integration basis only. The production implementation, test stimulus, test oracle and docs are unchanged since the af01130 review.
Local: on this head, cargo xtask precommit passed its policy checks (static-language, no-panic-family, allow-attributes, local-context and the rest). The container's memory limit then killed the ripr lib-test compile, which is an infrastructure limit. The same command exited 0 on af01130. Hosted CI on this exact head is the compile and test proof.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 71d13eb — no blocking findings on this head, but the head is CONFLICTING with current main and must be restacked before it can be admitted.
Reviewed the whole diff at this head (+411/−300, 16 files). Evidence that the route is sound:
- Template identity. I recomputed the pinned hash from the raw template text (
TEMPLATE_HEAD+ADVISORY_SUMMARY_STEP+TEMPLATE_TAIL): sha25615376b05b06b0f66fcc7218a51261a0be2e59f46952957792dae01ece1341899, 150 lines, matching the constant and the claimed 216 → 150 reduction. - The action the template calls.
.github/actions/ripr-check/action.ymlgainsinstall-only(default'false') and gates onlyRun ripr checkwithif: inputs.install-only != 'true'; it has exactly those two steps, so aninstall-onlyrun installs and stops. The install step bindsRIPR_INPUT_VERSION: ${{ inputs.version }}and the generated step passesversion:equal to the@vtag, so both carry one pin. - Generated step.
Install riprkeepsid: install(the advisory summary'ssteps.install.outcomestill resolves), runs no shell of its own, and addsinstall-only: true.uses:andversion:agree; the tests assert exactly one install route and nocargo install/releases/downloadleft in the template. - Cache and env moves.
actions/cacheuses a literalpath: ${{ runner.temp }}/ripr-cache, notenv.RIPR_CACHE_DIR, so setting that variable on theRun RIPRstep instead of via$GITHUB_ENVkeeps the restore/analysis order.PR_NUMBER/PR_HEAD_SHAmove to jobenv:with the same expressions they had per step, and$GITHUB_REPOSITORYreplaces${{ github.repository }}in the same URLs, so no run block gains a${{ }}. - Doctor.
generated_install_actionreads the tag and the step'sversion:input,generated_workflow_pinprefers the input (what CI actually installs), a tag/input split is named explicitly, and the oldercargo installtemplate is still recognized. The resolved devin thread on this point is fixed in the head, not just answered. - Policy bookkeeping.
init.rsstill has exactly onecurl(the action's checksum line), so its allowlist row is right; theinit_workflow.rsrow is removed because the template no longer contains one.
Residual, not blocking: a development build still pins the latest release (0.10.0), whose tag lacks install-only; the stderr note names that and docs/RELEASE.md now requires confirming ripr-check@v<version> resolves before announcing. Callers of the composite action are unaffected because the new input defaults to false.
Not checked here: no build or test run, and no fresh CI. The head's check runs are 12 success / 18 skipped from 2026-11-08, its base is ab93e28c (2026-11-08) against main 9b914379, and GitHub reports the head CONFLICTING, so the merge route must restack it and a restacked head needs a fresh review. Read-only: no push, label, enqueue or merge.
|
Disposition: parked, not merge-ready. This PR is CONFLICTING with Owner: coding ripr-swarm. Revisit by 2026-11-21, or close it earlier as superseded if another candidate lands the same issue. No code was rejected here; this records the unowned state rather than leaving it silent. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE 71d13eb — no blocking findings on this head, but the head is CONFLICTING with current main and must be restacked before it can be admitted.
Reviewed the whole diff at this head (+411/−300, 16 files). Evidence that the route is sound:
- Template identity. I recomputed the pinned hash from the raw template text (
TEMPLATE_HEAD+ADVISORY_SUMMARY_STEP+TEMPLATE_TAIL): sha25615376b05b06b0f66fcc7218a51261a0be2e59f46952957792dae01ece1341899, 150 lines, matching the constant and the claimed 216 → 150 reduction. - The action the template calls.
.github/actions/ripr-check/action.ymlgainsinstall-only(default'false') and gates onlyRun ripr checkwithif: inputs.install-only != 'true'; it has exactly those two steps, so aninstall-onlyrun installs and stops. The install step bindsRIPR_INPUT_VERSION: ${{ inputs.version }}and the generated step passesversion:equal to the@vtag, so both carry one pin. - Generated step.
Install riprkeepsid: install(the advisory summary'ssteps.install.outcomestill resolves), runs no shell of its own, and addsinstall-only: true.uses:andversion:agree; the tests assert exactly one install route and nocargo install/releases/downloadleft in the template. - Cache and env moves.
actions/cacheuses a literalpath: ${{ runner.temp }}/ripr-cache, notenv.RIPR_CACHE_DIR, so setting that variable on theRun RIPRstep instead of via$GITHUB_ENVkeeps the restore/analysis order.PR_NUMBER/PR_HEAD_SHAmove to jobenv:with the same expressions they had per step, and$GITHUB_REPOSITORYreplaces${{ github.repository }}in the same URLs, so no run block gains a${{ }}. - Doctor.
generated_install_actionreads the tag and the step'sversion:input,generated_workflow_pinprefers the input (what CI actually installs), a tag/input split is named explicitly, and the oldercargo installtemplate is still recognized. The resolved devin thread on this point is fixed in the head, not just answered. - Policy bookkeeping.
init.rsstill has exactly onecurl(the action's checksum line), so its allowlist row is right; theinit_workflow.rsrow is removed because the template no longer contains one.
Residual, not blocking: a development build still pins the latest release (0.10.0), whose tag lacks install-only; the stderr note names that and docs/RELEASE.md now requires confirming ripr-check@v<version> resolves before announcing. Callers of the composite action are unaffected because the new input defaults to false.
Not checked here: no build or test run, and no fresh CI. The head's check runs are 12 success / 18 skipped from 2026-11-08, its base is ab93e28c (2026-11-08) against main 9b914379, and GitHub reports the head CONFLICTING, so the merge route must restack it and a restacked head needs a fresh review. Read-only: no push, label, enqueue or merge.
…-gwdsrm # Conflicts: # crates/ripr/src/cli/commands/init_workflow.rs
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Restack review for head 0754371. It is 71d13eb, approved in the review above, with current main (60114de) merged in by a merge commit.
- The only conflict was
init_workflow.rstemplate_pin_tests, where #14300 (seam SARIF upload limited to manual runs) also changed the template. The resolution keeps both history notes and re-pinsTEMPLATE_SHA256tob325222e00542ccd687f8e3f0c24bdeee2280de5c03040361a31c2b8f2cefda2. I computed that from the merged raw template text (TEMPLATE_HEAD+ADVISORY_SUMMARY_STEP+TEMPLATE_TAIL). The same script reproduces main's pinned6bd24dd9…from main's text, so the method is checked. The template is still 150 lines. - The PR's diff against main is unchanged in shape: 16 files, +411/−300, the same files as the approved head. #14300's step change merged cleanly beside this PR's install, env and cache changes.
- Local proof on this head:
cargo test -p ripr --test generated_review_workflow(33 passed),cargo test -p ripr --test cli_smoke init_(33 passed),cargo test -p xtask -- distribution release(562 passed), andcargo xtask precommit(exit 0). The container's memory limit kills theriprlib-test compile, sotemplate_matches_the_pinned_bytesruns in hosted CI.
Dimensions refreshed: integration basis and the template pin. Production, stimulus, oracle and docs are as in the approved review.
Generated by Claude Code
|
Unparked. I restacked onto main 60114de with a merge commit. Head 0754371 resolves the one conflict, the template hash, against #14300, and the restack review is posted above. Generated by Claude Code |
|
|
…-gwdsrm # Conflicts: # .github/actions/ripr-check/action.yml # docs/CI.md
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Restack review for head 31a7afb: 0754371 plus main f657791, merged with a merge commit.
- Main's #14819 reworked the
ripr-checkaction. It added acacheinput,exit-code/reportoutputs, anactions/cachestep, andid: checkon the run step. Two conflicts resulted:action.yml: the inputs now list bothcacheandinstall-only. The run step hasid: checkandif: inputs.install-only != 'true'. The new cache step's guard isinputs.cache == 'true' && inputs.install-only != 'true', so an install-only call (the generated workflow, which keeps its own cache step) installs and stops, as before. Withinstall-onlythe outputs are empty; the generated workflow reads neither.docs/CI.md: kept main's rewritten composite-action section and added theinstall-onlyinput to its input list.
composite_action_accepts_the_template_inputsnow pins the run step'sid/ifpair and the cache step's install-only guard.- The PR diff against main is the same 16 files (+419/−302).
- Local proof on this head:
ripr_check_action(24 passed),generated_review_workflow(33),cli_smoke init_(33),xtask -- distribution release(568), andcargo xtask precommit(exit 0). Theriprlib-test compile exceeds this container's memory, so the unit tests run in hosted CI.
Dimensions refreshed: integration basis, the action contract, and the docs input list. The template, the doctor and the release check are as in the approved review.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 31a7afb — no blocking findings on this head.
Refreshed review of the delta since my 71d13eb5 approval. The candidate's own change moved: it now adds the install-only input to .github/actions/ripr-check/action.yml, has the generated workflow install through EffortlessMetrics/ripr/.github/actions/ripr-check@v<version> with version: <version> and install-only: true, moves PR_NUMBER/PR_HEAD_SHA to job env:, uses GITHUB_REPOSITORY, and sets RIPR_CACHE_DIR on the Run RIPR step.
Checked:
- The action's
install-onlygates bothRun ripr checkand the action's own cache step; the generated workflow's ownactions/cachestep andRIPR_CACHE_DIRonRun RIPRreplace them. The action has no later step that depends on the skipped check. - The action's
Install riprblock still carries the checksum/archive contract; the generated step runs no shell of its own. ripr doctorreads the pin from the action tag and theversioninput, and names a tag/input disagreement.- The template hash, line-count bound (150), release self-pin checks, network allowlist, and distribution-contract tests are updated consistently.
- Hosted checks: 15 success, 1 neutral, 5 skipped, no failures. No unresolved review threads.
Limits: static review plus hosted check status; no local build or test run. mergeable is still unknown from GitHub at this head.
Requested by Steven Zimmerman · project thread
Summary
ripr init --ci githubwrites used to carry a 65-line copy of the installer that already lives in.github/actions/ripr-check. ItsInstall riprstep now runs that Action from the pinned release tag:<= 150.install-onlyinput (default'false', so existing users see no change) that skipsripr check.env:blocks to jobenv:. They still never appear as${{ }}insiderun:.REPOis replaced by the runner's ownGITHUB_REPOSITORY. An unusedPR_HEAD_SHAis dropped from the capture step.RIPR_CACHE_DIRmoves from aGITHUB_ENVwrite in the old install shell to theRun RIPRstep's env.ripr doctorreads the pin from the Action tag. It still recognizes the oldercargo installlines.Decision: which public Action path
#5409 asked for a qualified public Action and left the source Marketplace work (ripr#1857) open. I chose the existing
ripr-checkcomposite Action, addressed by the release tag:install-only.ripr-check@v<version>resolves at the tag before announcing.ripralready on PATH that reports exactly the pinned version is reused, which is the Action's existing rule (test(ci): behavioral coverage for the ripr-check Action's install and base-derivation routes #11659). A different version never stands in. The archive replay's ambientriprnow reports a non-matching version, so falsifier 4 still bites.Tests
versioninput carry the same pin;cargo installor download shell in the template;install-only, andinstall-onlygatesRun ripr check.Install riprblock with the version the generated workflow passes. They were not deleted.Source-of-truth Links
Proposal:
Spec: docs/specs/RIPR-SPEC-0038-generated-pr-ci-review-workflow.md
ADR:
Plan item:
Governing issue or accepted claim: #5409
Acceptance delta (one sentence): the generated workflow installs through the release's ripr-check Action instead of a second installer copy, at 150 lines.
Still open on #5409, so it stays open: exercising the emitted workflow in a clean consumer repository needs the
v0.11.0tag to exist.Local checks
cargo xtask precommitexit 0.cargo test -p ripr --lib(init, init_workflow, commands, doctor filters; 165 pass).--test generated_review_workflow(33 pass),--test ripr_check_action(16 pass),--test cli_smoke -- init_ci doctor(62 pass).cargo test -p xtask -- distributionpasses. Threedx_scoreboardgit-clone tests also fail in this container, in partial-clone object handling, which this diff does not touch.Generated by Claude Code