Repository navigation
fix(windows): keep windows-process-tree gyp paths absolute under pnpm - #16688
Conversation
Hourly Windows builds have failed since #16598 at `build-windows-process-tree-relay-addon`: `require('node-addon-api').targets` is cwd-relative, so node-gyp evaluates it from the pnpm store realpath and then loads it from the `node_modules` symlink. That resolves `node_addon_api.gyp` outside the repo. Use `require.resolve` for an absolute path, matching the node-pty patch.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe Windows process-tree patch now resolves the Merge Risk: ⚪ Minimal · up to This localized change makes the Windows native-addon build path absolute under pnpm and adds focused coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)
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. Comment |
#16682 merged with a failing localization catalog: ja used エージェント in three new skill-filter strings, and repair-locale-catalog rewrites those to Agent. Match the rest of ja.json so static analysis can pass.
|
Pushed a second commit: #16682 merged with a failing The gyp-path fix is unchanged. |
…stablyai#16688) * fix(windows): keep windows-process-tree gyp paths absolute under pnpm Hourly Windows builds have failed since stablyai#16598 at `build-windows-process-tree-relay-addon`: `require('node-addon-api').targets` is cwd-relative, so node-gyp evaluates it from the pnpm store realpath and then loads it from the `node_modules` symlink. That resolves `node_addon_api.gyp` outside the repo. Use `require.resolve` for an absolute path, matching the node-pty patch. * i18n: keep ja skill-filter labels on the catalog's Agent brand stablyai#16682 merged with a failing localization catalog: ja used エージェント in three new skill-filter strings, and repair-locale-catalog rewrites those to Agent. Match the rest of ja.json so static analysis can pass.
…stablyai#16688) * fix(windows): keep windows-process-tree gyp paths absolute under pnpm Hourly Windows builds have failed since stablyai#16598 at `build-windows-process-tree-relay-addon`: `require('node-addon-api').targets` is cwd-relative, so node-gyp evaluates it from the pnpm store realpath and then loads it from the `node_modules` symlink. That resolves `node_addon_api.gyp` outside the repo. Use `require.resolve` for an absolute path, matching the node-pty patch. * i18n: keep ja skill-filter labels on the catalog's Agent brand stablyai#16682 merged with a failing localization catalog: ja used エージェント in three new skill-filter strings, and repair-locale-catalog rewrites those to Agent. Match the rest of ja.json so static analysis can pass.
…stablyai#16688) * fix(windows): keep windows-process-tree gyp paths absolute under pnpm Hourly Windows builds have failed since stablyai#16598 at `build-windows-process-tree-relay-addon`: `require('node-addon-api').targets` is cwd-relative, so node-gyp evaluates it from the pnpm store realpath and then loads it from the `node_modules` symlink. That resolves `node_addon_api.gyp` outside the repo. Use `require.resolve` for an absolute path, matching the node-pty patch. * i18n: keep ja skill-filter labels on the catalog's Agent brand stablyai#16682 merged with a failing localization catalog: ja used エージェント in three new skill-filter strings, and repair-locale-catalog rewrites those to Agent. Match the rest of ja.json so static analysis can pass. (cherry picked from commit 0096e47)
…stablyai#16688) * fix(windows): keep windows-process-tree gyp paths absolute under pnpm Hourly Windows builds have failed since stablyai#16598 at `build-windows-process-tree-relay-addon`: `require('node-addon-api').targets` is cwd-relative, so node-gyp evaluates it from the pnpm store realpath and then loads it from the `node_modules` symlink. That resolves `node_addon_api.gyp` outside the repo. Use `require.resolve` for an absolute path, matching the node-pty patch. * i18n: keep ja skill-filter labels on the catalog's Agent brand stablyai#16682 merged with a failing localization catalog: ja used エージェント in three new skill-filter strings, and repair-locale-catalog rewrites those to Agent. Match the rest of ja.json so static analysis can pass.
ELI5
Hourly Windows builds have been red since we started compiling the process-table addon for the relay. node-gyp was looking for a helper file using a relative path that points outside the repo under pnpm, so the compile died before packaging even started. This makes that path absolute, the same way we already did for node-pty.
What Changed
@vscode/windows-process-treebinding.gypto userequire.resolve('node-addon-api/node_addon_api.gyp')instead ofrequire('node-addon-api').targets.Why
require('node-addon-api').targetsreturns a path relative to cwd. On the Windows runner, node-gyp evaluates that from the pnpm store realpath, then loads the relative path from thenode_modules/@vscode/windows-process-treesymlink. The result:Every Windows hourly since #16598 has failed at
Build Windows process-table addon for the relay. Mac hourlies that looked green were skipping the Windows leg because main had not moved.node-ptyalready carries this samerequire.resolvepatch for the same pnpm/Windows reason.Linked Issue
https://github.com/stablyai/orca/actions/runs/33017768410
Visual Proof
N/A — native-addon compile path for CI; no UI or interaction change.
Testing
pnpm exec vitest run --config config/vitest.config.ts config/scripts/windows-process-tree-gyp-path.test.mjspasses. The compile itself only runs on Windows; CI'sbuild-hourly-win/ Windows packaging jobs are the real proof.Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Windows-only native compile. SSH relays are the reason this addon is built in the hourly Windows job; the desktop app rebuilds it the same way.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)