Repository navigation
fix(ci): skip the capture's model run when the change touches no feature - #16295
Conversation
pr-verify-capture started its key proxy, sandbox and model session before learning whether any feature matched; 13 of 21 sampled runs then ended not-applicable. A match step after the agree step now runs main's affected_features.py over the changed path names the compare API lists, committed as empty files into a scratch repository, so nothing of the pull request is fetched before the reach probe. With no feature matched it writes run-e2e's not-applicable summary, and the credit read, the key call and every step behind them skip. A failed read or script, a compare at the 300-file limit, or a path that is also a folder leaves the decision to the capture session. The pipeline convention also said pr-verify-capture has a capture-subscription job; it has one job. Closes #16184 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
…step Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #16295 (incremental, head c271ce8)No security issues found in the change since 3cd347a. Because this lane already reviewed an earlier head, this was a blocking-only review: it reports CRITICAL and IMPORTANT findings only. critical-findings: 0 What I checkedI read all three files in the incremental diff in full. Two of them match trusted paths (
The change is what the PR description says: The earlier summary comment from this lane (issuecomment-6889559756) reported 0 findings, so there is nothing to restate. |
|
claude-review reviewed Code review: PR #16295, incremental since
|
pr-verify-capture.yml's new match step runs plugins/app-control/scripts/affected_features.py, so test_merge_holds_sync.py requires that directory in CARRY_REFUSES. Add it to both copies of the list (babysit_merge_policy.py and merge-holds.mjs). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
Closes #16184
Summary
pr-verify-capture.ymlstarted its key proxy, sandbox and model session before it knew whether the change touched any feature. In the issue's sample, 13 of 21 runs then endednot-applicable. The job now decides that first, from the changed path names, and a change that touches no feature starts no model session.Fix
base...head, old and new names of a rename), commits them as empty files into a scratch repository, and runs main'saffected_features.pywith main's control skill, the script and hub the capture session itself uses.not-applicablesummary and setsapplicable=false. The credit read, the key call and the model resolution skip on that output, so every proxy, sandbox, probe and capture step behind them skips too, and the summary uploads as the capture artifact.plugins/app-control/scripts/affected_features.pya script a hold path runs, soplugins/app-control/scripts/**joinsCARRY_REFUSESin both merge-hold lists: a push that touches it no longer carries an earlier approval to the new head. This is the ruletest_merge_holds_sync.pyenforces, which failed on this PR's first head.docs/conventions/pr-pipeline/README.mddescribes the match step, and no longer names acapture-subscriptionjob the workflow does not have.Verification
node --test --test-concurrency=4 .github/scripts/pr-verify/workflow.test.mjs: 82 passed, 0 failed. Two new tests: one checks the step's place, conditions and what skips onapplicable=false; the other runs the step's script against a stubghfor a change that matches no feature (summary written,applicable=false), one that matches (by new name, by the old name of a rename, and beside a path holding a newline:applicable=true, no summary), and each fail-open case.git diff base...headgaveaffected_features.py(6 files, same names), so the step and the session match on the same input.test_merge_holds_sync.py: 21 passed, including the test that failed in CI;merge-holds.test.mjs: 72 of 72.actionlinton the workflow reports only thecache-modekey it does not know, which main already has.workflow_runruns this file from main, so the first run of the new step happens after merge; the firstnot-applicablerun'skey proxynotice is the check on the issue's first done-when item.Related
sources:patterns match; this change reads whatever patterns main has.🤖 Generated with Claude Code
https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd