Skip to content

fix(repos): Install the pinned Node tools in new worktrees - #7260

Merged
dan-petty merged 2 commits into
mainfrom
fix/7233-a-new-worktree-gets-the-pinned
Nov 26, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7233-a-new-worktree-gets-the-pinned

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

In a new worktree the openspec row of devops ci fails until a person runs npm ci --ignore-scripts, because the gate runs the older openspec of the image when the worktree holds no node_modules (#7233).

Closes #7233

Change: openspec/changes/archive/2026-11-26-7233-a-new-worktree-gets-the-pinned/

@devops-cli-service devops-cli-service Bot changed the title docs(spec): plan #7233 Install the pinned Node tools in new worktrees fix(repos): Install the pinned Node tools in new worktrees Nov 26, 2026
@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/repos The devops repos commands and worktrees and removed type/docs Type docs: a change to the documents scope/spec labels Nov 26, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/7233-a-new-worktree-gets-the-pinned branch from f43012d to 0d84de5 Compare November 26, 2026 00:06
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 5182054/15190 pytest on base: tests/core/test_repos_worktrees_add.py
group 2 done 1 1922103/2645 -
  • tools: run_command 42, read_file 18, edit_file 16, grep 4
  • scoped check pre-push: passed, 6 s
  • scoped check static: passed, 27 s
  • scoped check tests: passed, 79 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.core.test_repos_worktrees_add::test_add_installs_the_node_tools_of_the_lock_file, tests.core.test_repos_worktrees_add::test_a_failed_node_install_warns_and_keeps_the_worktree.
  • verify of group 2: uv run devops ci docs exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2713 All documentation files are up to date.

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 26, 2026 00:18
@dan-petty
dan-petty merged commit 53fa096 into main Nov 26, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/7233-a-new-worktree-gets-the-pinned branch November 26, 2026 00:19
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.10](v0.221.9...v0.221.10)
(2026-11-26)


### Bug Fixes

* **repos:** Install the pinned Node tools in new worktrees
([#7260](#7260))
([53fa096](53fa096))

---
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>
dan-petty added a commit that referenced this pull request Nov 26, 2026
`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/`
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(repos): a new worktree gets the pinned Node tools

1 participant