Repository navigation
fix(root): publish validated iyarc-prune pull requests - #10087
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
@claude review always |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
@claude review always |
|
Claude finished @zahin-mohammad's task in 24s —— View job Review of PR #10087 (latest push
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Publish signed dependency updates from the exact validated checkout. Require master dispatches and provision the pinned vulnerability scanner. Ticket: WAL-2232 Co-authored-by: Ralph CLI <ralph-cli@bitgo.com>
Ticket: WAL-2232 Co-authored-by: Ralph CLI <ralph-cli@bitgo.com> Ralph: 18.12.3-bitgo.6 openrouter/openai/gpt-6.1-sol@default:high openrouter/z-ai/glm-5.3-flash@smol:low+task:medium openrouter/z-ai/glm-5.3@slow:max
d92ae02 to
03788c5
Compare
|
@claude review please |
|
Claude finished @mukeshsp's task in 22s —— View job Review of PR #10087I read One blocking issue, one smaller one, and a few optional points. 🔴 Blocking: Nx cache files can fail a validated run
Suggested fixes, in order of preference:
The untracked scan should still catch real stray repository edits. A regression test with an untracked 🟡 Hidden changes inside ignored paths
🟡 Optional suggestions
Looks good
|
There was a problem hiding this comment.
Code review found no new issues
No new issues were found in this update; 1 finding from earlier reviews is still open above.
Still open from earlier reviews (1):
- 🔴
scripts/iyarc-prune.js:182—Weekly runs that validated a fix can fail red with no PR, because Lerna's Nx cache files count as unexpected edits. The…
If you have decided not to act on one of these findings, resolve its thread (a reply alone leaves it open) and the next review stops counting it. To review this commit again now, use Re-run on its "Claude Code Review" check.
s84krish
left a comment
There was a problem hiding this comment.
lgtm, Claude's critical finding seems invalid:
Reproduction: ran the agent's exact commands (yarn lerna run build --scope=@bitgo/statics --stream, then unit-test) in a worktree of the PR head: build + tests pass, no .nx directory is created, and git ls-files --others --exclude-standard reports zero unexpected untracked files after both.
Problem
The weekly dependency-exclusion maintenance job could finish with validated edits but no pull request because the agent treated a checkout on
masteras a local run. A feature-branch manual dispatch also failed before the agent ran: the Amazon Web Services (AWS) role checks the workflow's branch identity, and checking outmasterdoes not change that identity. Failure investigation.Fix
masterdispatches early. Preserve the exact validated parent and file tree instead of letting publication rebase onto a newermaster.Original defect evidence and verification.
Review map
The history has two commits: 0decbbf1d3 contains the publication fix; 03788c5302 extracts the helper and clarifies the workflow handoff.
requireAllowedChangesAndReportandpreparePullRequestfor publication policy;writeAgentSummaryandrequireSuccessfulCompletionhandle the agent result. Setup operations handle scanner installation, AWS role credentials, and prompt loading.After the agent finishes, a named workflow step loads the helper from the original checkout commit into the runner's temporary directory. Later steps run this trusted copy with simple Node commands, so modifying the working-copy helper cannot bypass publication checks. No package installation is needed to run the helper. Loader and environment.
Verification
Run with the repository-pinned Node 24.22.1.
The checked-in tests cover allowed and forbidden paths, hidden staged changes, exact working-tree preservation, changed HEAD, missing reports, duplicate pull requests, GitHub query failures, case-insensitive label preservation, final-result precedence, private metadata filtering, summary-write failure, missing publication URLs, scanner checksum rejection, and modification of the working-copy helper. The trusted-helper regression executes the loader and publication commands directly from the workflow file.
Exit 0, no workflow diagnostics. Nix emitted the previously observed
eval-coresandlazy-treessetting warnings.Earlier runtime checks exercised the previous helper loader with the pinned publisher against a local Git remote, and installed/executed the real Linux scanner in a container without repository dependencies. Historical runtime evidence. The current loader is covered by the checked-in workflow-command regression above.
Live verification still required
No successful hosted
masterrun is claimed. After merge, dispatch from Use workflow from: master and verify model access, generated commit signature, pull request, labels, assignment, and required checks. The repository setting allowing Actions to create pull requests could not be read with the available token (403).Generated pull requests use
GITHUB_TOKEN; a maintainer may need to select Approve workflows to run before required checks start. Current GitHub behavior.Ticket
WAL-2232