Skip to content

refactor(repos): remove the npm ci step of worktrees add - #7267

Merged
dan-petty merged 2 commits into
mainfrom
refactor/7264-remove-npm-ci-from-worktrees-add
Nov 26, 2026
Merged

dan-petty merged 2 commits into
mainfrom
refactor/7264-remove-npm-ci-from-worktrees-add

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops repos worktrees add starts no npm process. #7260 added npm ci --ignore-scripts for each new worktree, because the openspec row of devops ci named a wrong version there. The cause was a stale openspec link in a home folder that was first on PATH, not a missing install.

  • install_node_tools, its call in worktrees_add and its message are deleted.
  • CONTRIBUTING.md and docs/DEVCONTAINER_USAGE.md say where a worktree gets openspec from: PATH of the devcontainer holds node_modules/.bin of the main checkout before the folders of the image. They name which -a openspec as the way to find a stale copy.
  • A worktree needs npm ci --ignore-scripts only before make design-tokens, or when its branch changes package-lock.json.

Closes #7264
Change: openspec/changes/archive/2026-11-26-7264-remove-npm-ci-from-worktrees-add/

The gate failure that the step answered came from a stale openspec
link in a home folder that was first on PATH. The devcontainer PATH
gives each worktree the pinned tools, so the command installs none.

Refs #7264
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/repos The devops repos commands and worktrees labels Nov 26, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 00:51
@dan-petty
dan-petty merged commit 3128f86 into main Nov 26, 2026
28 checks passed
@dan-petty
dan-petty deleted the refactor/7264-remove-npm-ci-from-worktrees-add branch November 26, 2026 00:53
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.11](v0.221.10...v0.221.11)
(2026-11-26)


### Bug Fixes

* **ai:** read an HTTP 402 of the provider as a spent key
([#7265](#7265))
([f9e7823](f9e7823))


### Code Refactoring

* **repos:** remove the npm ci step of worktrees add
([#7267](#7267))
([3128f86](3128f86))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/repos The devops repos commands and worktrees type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(repos): remove the npm ci step of worktrees add

1 participant