Repository navigation
fix(frontend): the role installs with npm ci, so the lockfile stays as committed (#20517) - #20528
Conversation
|
Warning Review limit reachedYou'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 13 minutes. View limit details
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. |
|
Code review on PR #20528 (head 9a768b3): approve. Read only; no install was run. |
Thinking Path
The Full-Tree Drift Check reports
autobot-frontend/package-lock.jsonas drifted on an installed host. The issue held that cause as a reading, not yet proven. In code, the frontend role runsnpm install, which may rewrite the lockfile, while the updater runsnpm ci, which never does. Using one install command removes that writer either way.What Changed
roles/frontend:npm ci --ignore-scripts, the command the updater runs for this directory.npm install esbuildis gone. esbuild is declared inpackage.jsonand pinned in the lockfile, sonpm ciinstalls it; a test pins both.--legacy-peer-depsis dropped to match the updater.Verification
repo_tests/frontend_role_keeps_the_lockfile_20517_test.pypasses locally. It reads the role and the updater with one matcher, so the updater's line is the control, and it checks the matcher against the old commands.Not run locally: a role install on a real host. The clean-install workflow exercises it; an install with lifecycle scripts off is what the updater already does, but this role has not run that way before. An already-rewritten lockfile on a host stays until its next sync, so the host's drift signal needs checking after an update.
Refs #20517: the other instances in that issue stay open.
Model Used
Claude Opus 5.5