Skip to content

Prevent synthetic worker PIDs from signaling real processes in tests - #166

Merged
yzsnstotz merged 1 commit into
mainfrom
fix/isolated-test-signals
Sep 6, 2026
Merged

yzsnstotz merged 1 commit into
mainfrom
fix/isolated-test-signals

Conversation

@yzsnstotz

Copy link
Copy Markdown
Owner

Synthetic worker PIDs could reach real process.kill after a simulated crash or rehydration, causing an unrelated process to receive SIGTERM/SIGKILL if its PID matched. PR #165 and its main run exited 143; the recorded cleanup timing strongly implicates fake PID 2401, although CI does not identify the victim.

Route every InstanceManager PID signal and liveness probe through an instance-scoped dependency that defaults to the existing OS behavior. All synthetic fixtures inject a safe boundary; regression tests assert TERM, process-group/PID escalation and exit probes. Remove the global process.kill monkeypatch.

The complete run then exposed two CLI-specific router tests that assumed the former default. They now explicitly select CLI and restore the setting afterward; the separate App-default routing/reservation test continues to exercise the new default.

Validation: npm test 753 passed, 0 failed, npm run typecheck, npm run build, git diff --check, and independent code review. Production signal behavior is unchanged. This repairs CI after #165; it does not grant product acceptance or bypass any Cyberent audit gate.

@yzsnstotz
yzsnstotz merged commit 61c5ed3 into main Sep 6, 2026
1 check passed
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