You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(opencode): cover Windows worker-tree cleanup after owner termination #848
Refs #442. The broader Windows worker owner-death issue needs automated Windows regression coverage for the worker tree and its resources. This issue tracks only that test coverage, not a new product defect and not completion of #442.
Acceptance
Run two native Windows cases through the production uncompiled-Bun createTuiWorker subprocess path: force-terminate a ready owner with TerminateProcess, and force-terminate an owner whose worker tree has stalled before reporting full readiness.
Before termination, require positive worker/grandchild PID liveness and process-list controls, the log-channel sentinel, and listening-port liveness where observable.
After termination and before manual reaping, check worker/grandchild PID disappearance with OS queries. For the ready case, check both ports refuse connections and can be rebound. For the startup-stall case, check the known worker port; the unreported grandchild port is not directly observable.
Keep probe and cleanup budgets bounded, guard captured identities and confirmed-dead PIDs, and test the probe contracts so timeouts/nonzero exits cannot count as absence and absence observations cannot be retried into a pass.
Before closing this issue, inspect actual Windows CI log entries showing PASS for both named native cases, not skips or merely absence from a failure list, and verify the coverage has merged.
The four existing candidate files in PR #740 are packages/opencode/test/cli/win-owner-death.integration.test.ts and the three win-owner-death-{owner,worker,grandchild}.ts fixtures in packages/opencode/test/fixture/. Their current CI is not yet verified complete on the new integration base.
Out of scope
Full interactive-TUI validation, the spawn-to-job-assignment window, general completion of #442, and a Job Object mutation control remain outside this issue. The historical Job Object mutation control is unproven. Passing probe-contract negative controls does not prove that separate mutation control. #442 must remain open.
Activity