Skip to content

Keep the agent-bot tests from stalling CI runners#193

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/fix-ci-review-bot-test-hang-2026-04-21-02-54
Apr 21, 2026
Merged

Keep the agent-bot tests from stalling CI runners#193
NagyVikt merged 1 commit into
mainfrom
agent/codex/fix-ci-review-bot-test-hang-2026-04-21-02-54

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

The main-branch CI matrix stayed pinned in the Unit tests step across all three Node versions even after the review-workflow fixes landed. The strongest code-level suspect is the fake review bot daemon used by the agent lifecycle tests: it slept for 60 seconds per loop iteration, so if a runner only terminated the parent shell and not the whole process group, stopping the fake daemon could block for about a minute per test. This change replaces that body with a short, TERM-friendly loop shared through one helper so the same tests remain meaningful without depending on process-group semantics.

Constraint: Preserve the existing agent lifecycle assertions while reducing runner-specific delay risk in detached-process cleanup
Rejected: Leave the 60-second fake daemon as-is | matches the observed multi-minute CI stall too closely to ignore
Rejected: Skip the agent lifecycle tests in CI | loses useful coverage instead of making the tests robust
Confidence: medium
Scope-risk: narrow
Reversibility: clean
Directive: Keep fake daemons in tests signal-friendly and short-cycle; do not reintroduce long blocking sleeps in lifecycle tests
Tested: npm test; CI=1 GITHUB_ACTIONS=true node --test --test-name-pattern agents test/install.test.js; node --check bin/multiagent-safety.js
Not-tested: Remote GitHub CI outcome after merging this test-only hang mitigation
@NagyVikt NagyVikt merged commit 4308b58 into main Apr 21, 2026
@NagyVikt NagyVikt deleted the agent/codex/fix-ci-review-bot-test-hang-2026-04-21-02-54 branch April 21, 2026 00:55
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