Skip to content

Experiment: explicit-version Windows jobs with .nvmrc present#29

Draft
mokagio wants to merge 1 commit into
mainfrom
mokagio/nvm-nvmrc-presence-test
Draft

Experiment: explicit-version Windows jobs with .nvmrc present#29
mokagio wants to merge 1 commit into
mainfrom
mokagio/nvm-nvmrc-presence-test

Conversation

@mokagio

@mokagio mokagio commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Experiment (not for merge)

Confirms the verified root cause: the explicit-version Windows jobs hang because no .nvmrc is in the working directory. Build 104 only passed because a .nvmrc was committed at the repo root then; removing it (correctly) exposed the hang on the version:-property path.

This adds NVM_BUILDKITE_PLUGIN_TEST_NVMRC_VERSION to the existing hanging explicit-version jobs so the repo hook writes a .nvmrc before the plugin runs — the single variable separating 104 from 112–115.

Expected: both v20.19.5 and v24.15.0 Windows jobs pass. If so, .nvmrc presence is the gate, and the real bug is nvm install <explicit version> hanging on Windows when no .nvmrc is in the directory tree.

🤖 Generated with Claude Code

Experiment to confirm the root cause. The explicit-version Windows jobs
hang at HEAD because no `.nvmrc` is in the working directory; build 104
only passed because a `.nvmrc` was committed at the repo root back then.

Add `NVM_BUILDKITE_PLUGIN_TEST_NVMRC_VERSION` to the existing hanging
jobs so the repository hook writes a `.nvmrc` before the plugin runs —
the single variable that separates build 104 from 112/113/114/115. If
these jobs pass, `.nvmrc` presence is what prevents the post-checksum
hang on the explicit-version path.

---

Generated with the help of Claude Code, https://claude.com/claude-code

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mokagio mokagio self-assigned this Jun 30, 2026
mokagio added a commit that referenced this pull request Jul 2, 2026
The explicit-version Windows jobs hang and get killed (`0xC000013A`): with
no `.nvmrc` in the working directory, nvm v0.39.4's ancestor walk loops
forever under the Windows agent's bash. Setting
`NVM_BUILDKITE_PLUGIN_TEST_NVMRC_VERSION` makes the repo `pre-command` hook
write one before the plugin runs, short-circuiting the walk.

The plugin still installs via the `version:` property; the `.nvmrc` is only
there to satisfy nvm's directory walk, so this is a CI-harness fix with no
change to the plugin.

Proven green by build 116 (PR #29 experiment).

---

Generated with the help of Claude Code, https://claude.com/claude-code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mokagio added a commit that referenced this pull request Jul 2, 2026
The explicit-version Windows jobs hang and get killed (`0xC000013A`): with
no `.nvmrc` in the working directory, nvm v0.39.4's ancestor walk loops
forever under the Windows agent's bash. Setting
`NVM_BUILDKITE_PLUGIN_TEST_NVMRC_VERSION` makes the repo `pre-command` hook
write one before the plugin runs, short-circuiting the walk.

The plugin still installs via the `version:` property; the `.nvmrc` is only
there to satisfy nvm's directory walk, so this is a CI-harness fix with no
change to the plugin.

Proven green by build 116 (PR #29 experiment).

---

Generated with the help of Claude Code, https://claude.com/claude-code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Base automatically changed from mokagio/nvm-install-timeout to main July 2, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant