Repository navigation
ci: pass STANDARDS_DIR to resolve-config from the lane scripts and check-wip-cap - #18730
melodic-automation-lanes[bot] wants to merge 2 commits into
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
| const repo = env.GITHUB_REPOSITORY ?? ""; | ||
| const basePath = env.BASE_PATH || ".base"; | ||
| const { limits, wip, configError } = await baseConfig(basePath, log); | ||
| const { limits, wip, configError } = await baseConfig(basePath, env.STANDARDS_DIR, log); |
There was a problem hiding this comment.
Done-when item met, but only one of its seven parts is tested. The #18720 criterion is: "declare-test-scope.mjs, post-merge-demotion-alert/merge-path.mjs and report.mjs, branch-cleanup/cleanup.mjs, pr-refine/write-pass-plan.mjs and check-wip-cap.mjs pass STANDARDS_DIR to resolve-config. check-wip-cap has a standards-path input."
Only declare-test-scope.mjs gets a test (declare-test-scope.test.mjs:218). No test file in .github mentions STANDARDS_DIR or standards-path for the other call sites. If any of these were reverted to { BASE_PATH }, every suite would still pass:
.github/actions/check-wip-cap/check-wip-cap.mjs:380(andbaseConfigat :41).github/scripts/branch-cleanup/cleanup.mjs:329.github/scripts/post-merge-demotion-alert/merge-path.mjs:306,:315,:329.github/scripts/post-merge-demotion-alert/report.mjs:324.github/scripts/pr-refine/write-pass-plan.mjs:18.github/actions/check-wip-cap/action.yml:24: thestandards-path→STANDARDS_DIRwiring
The default empty value behaves the same as before, so a dropped pass-through would go unnoticed until the sibling workflow parts depend on it.
Suggested fix: add a test like the declare-test-scope one for each loader. Inject the loader, or point STANDARDS_DIR at a fixture standards dir whose trusted list differs from base-path's, then assert the value arrives. For check-wip-cap, cover main with env.STANDARDS_DIR set.
claude-lane: claude-review
There was a problem hiding this comment.
pr-unblock / address-feedback: UNCERTAIN, left open
Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/actions/check-wip-cap/check-wip-cap.test.mjs:660, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18
The finding holds: before this round only declare-test-scope had a test showing STANDARDS_DIR reaches resolve-config. I fixed the part in this thread's scope. check-wip-cap.test.mjs now has a test that runs main against a base-path with no vocabulary or trusted-actor list. With STANDARDS_DIR pointing at a standards checkout that holds them under components/, the base config is read (held false, pause_basis read, pause-from taken from the config). With STANDARDS_DIR empty, the config is unreadable (held true, admission_basis config-unreadable). So dropping the pass-through at check-wip-cap.mjs:380 or :358 now fails a test. The same test asserts that action.yml declares the standards-path input with an empty default and that the check step sets STANDARDS_DIR from it. runMain takes an optional base file list for this. The other instances are not fixed because the review-thread tool refuses each test file they need as outside this thread's scope: branch-cleanup/cleanup.test.mjs (cleanup.mjs:329), post-merge-demotion-alert/merge-path.test.mjs (merge-path.mjs:306, :315, :329), post-merge-demotion-alert/report.test.mjs (report.mjs:324) and a new pr-refine test for write-pass-plan.mjs:18. Those still need a person or a follow-up change.
There was a problem hiding this comment.
pr-unblock / adjudicate-feedback: the finding stands
A fresh-context adjudicator read the review comment, the locations both sides cited and the code at 312b6c350e10ef2a3932c75b25a1e2b3665d87f5, without the fixing lane's reasoning, and found that the finding holds. The next address-feedback round fixes it; a round that leaves this thread open again ends the lane in a failing status.
Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/actions/check-wip-cap/check-wip-cap.test.mjs:660, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18
There was a problem hiding this comment.
pr-unblock / address-feedback: UNCERTAIN, left open
Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18
The finding still holds, and the adjudicator agreed. The part this thread's scope allows is already fixed in the checkout. check-wip-cap.test.mjs:855 runs main with STANDARDS_DIR set and with it empty, and it checks that action.yml declares the standards-path input and passes it to STANDARDS_DIR. This round made no new edit, because every other file the fix needs is still outside the thread's scope. I ran check-paths again this round and it refused each of these: .github/scripts/branch-cleanup/cleanup.test.mjs and cleanup.mjs (cleanup.mjs:329), .github/scripts/post-merge-demotion-alert/merge-path.test.mjs (merge-path.mjs:306, :315, :329), .github/scripts/post-merge-demotion-alert/report.test.mjs (report.mjs:324), and a new .github/scripts/pr-refine/write-pass-plan.test.mjs (write-pass-plan.mjs:18). This thread sits on check-wip-cap.mjs, and the pull request's .github files are not in its scope. So the lane cannot add these tests. A person needs to add them here, or name those test files in a fix request so they enter the scope, or open a follow-up change for them.
|
claude-review reviewed Code review: PR #18730, incremental (
|
|
claude-security-review reviewed Security review: PR #18730 (incremental since 312b6c3)No security issues found. This lane already reviewed an earlier head, so this pass reports blocking (CRITICAL and IMPORTANT) findings only. What changed since the last review: one file changed,
Trust-control check: nothing in the change runs in a lane. It does not touch the trusted-actor list, the trusted-trigger check, token scope, the kill switch, signer grants or merge holds. The test copies the repository's own trusted-actor file into a temporary directory and only reads it. The new test also asserts that the read fails closed when critical-findings: 0 |
|
The unattended merge path is about to arm native auto-merge at head |
|
Merge-Risk: max=MEDIUM demote=false head=312b6c350e10ef2a3932c75b25a1e2b3665d87f5 rubric=10.10.3 rater=claude-opus-5-5 checker=claude-opus-5-5 |
Lane-Activity: pr-unblock/address-feedback
|
pr-unblock / address-feedback finished round 1 of max 4 on 77102e7. |
Lane run report
pr-unblock/publish-feedback, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. pr-unblock/report-escalation, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
|
pr-unblock / address-feedback finished round 2 of max 4 on 77102e7. |
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18730 -f activity=address-feedback |
|
Superseded by #18719 (D2 P4, session-owned), which passes STANDARDS_DIR to these same resolve-config callers (declare-test-scope, merge-path, report, cleanup, check-wip-cap, write-pass-plan) as part of repointing the workflows to one standards commit per run. Closing to avoid a conflicting second implementation; reopen if #18719 is abandoned. |
Closes #18720
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
Fix
standards-pathinput (required false, default "", same description as resolve-config's) wired to STANDARDS_DIR on thecheckstep.Verification
The runner ran each check from the base copy against 312b6c3:
The run reports:
Left out: the items under Not verified.
Related
#18720