ci: [debug, do not merge] find why webfetch and workspace-sync tests hang on CI
Do not merge: temporary CI debugging
Purpose. Find why CI has been red on main and every PR since about 06:44 UTC on 2026-12-01. This PR will be closed and its branch deleted once the cause is known. It changes no product code.
The problem. On the CI runners, the first two tests of test/tool/webfetch.test.ts and several workspace-sync tests (test/altimate/workspace/sync-state.test.ts, test/control-plane/workspace.test.ts) hang for minutes, far past the 90-second test timeout. The shard then fails, or the runner is shut down mid-job (exit 137/143). The code, runner image and Bun version are the same as in the passing runs of the day before, and the same files pass locally on macOS.
What this PR adds.
.github/workflows/debug-test-hang.yml: a workflow that runs only for this branch. It runs the two test groups alone and inside their shards (2 and 3), with the same setup as theTypeScriptjob.script/github/debug-test-hang.sh: whenever test output stops for 45 seconds, it prints the process tree, the test process's sockets and open files, and its system calls.
Review. No review needed. Review bots can ignore this PR.
š¤ Generated with Claude Code
Summary by cubic
Temporary, do-not-merge CI debugging PR: run stalled on main and every PR since 2026-12-01 when test/tool/webfetch.test.ts and several workspace-sync tests hang past the 90-second timeout, then fail the shard or get killed (exit 137/143). The diagnosis is confirmed: tests that write a tool or plugin file into a config dir make the app start a real npm install of @opencode-ai/plugin inside the test process, and that install is never awaited, so it outlives the test and starves the event loop.
- The debug workflow now runs all four shards and reports every npm registry request the stuck process makes.
- Candidates fix under test:
ConfigPlugin.shouldInstallDependenciesreturns false whenALTIMATE_DISABLE_DEPENDENCY_INSTALL=1, whichtest/preload.tssets; the config and TUI tests that check when an install is requested clear it and use a recording installer that never reaches the network. - Changes no product behavior for real users; the branch will be deleted once the fix is confirmed.