Skip to content

fix(frontend): the role installs with npm ci, so the lockfile stays as committed (#20517) - #20528

Merged
mrveiss merged 2 commits into
mainfrom
issue-20517-frontend-npm-ci
Nov 1, 2026
Merged

mrveiss merged 2 commits into
mainfrom
issue-20517-frontend-npm-ci

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Thinking Path

The Full-Tree Drift Check reports autobot-frontend/package-lock.json as drifted on an installed host. The issue held that cause as a reading, not yet proven. In code, the frontend role runs npm install, which may rewrite the lockfile, while the updater runs npm 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.
  • The role's separate npm install esbuild is gone. esbuild is declared in package.json and pinned in the lockfile, so npm ci installs it; a test pins both.
  • --legacy-peer-deps is dropped to match the updater.

Verification

repo_tests/frontend_role_keeps_the_lockfile_20517_test.py passes 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

@mrveiss mrveiss added the phase:M1.4 Wizard and SLM: choose a mode, apply it, default models work label Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 25ab945 and f4a47b9.

Files selected for processing: 2
  • autobot-slm-backend/ansible/roles/frontend/tasks/main.yml
  • repo_tests/frontend_role_keeps_the_lockfile_20517_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20528 (head 9a768b3): approve.

Read only; no install was run. npm ci --ignore-scripts matches the frontend install at update-all-nodes.yml:661 and :1547, esbuild is in package.json:148 so the separate install was redundant, and a clean install no longer rewrites the lockfile. Dropping --legacy-peer-deps follows the updater, and CI's npm ci shows the lockfile installs without it. Refs applies, since #20517 covers other signals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M1.4 Wizard and SLM: choose a mode, apply it, default models work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant