Skip to content

test(mcp-gateway): scope stop and kill paths by platform - #6963

Merged
dwu96 merged 1 commit into
mainfrom
codex/fix-stop-kill-windows-scoping
Aug 30, 2026
Merged

test(mcp-gateway): scope stop and kill paths by platform#6963
dwu96 merged 1 commit into
mainfrom
codex/fix-stop-kill-windows-scoping

Conversation

@bolichen97

Copy link
Copy Markdown
Collaborator

Summary

  • scope the two raw POSIX killpg / init-PID assertions to POSIX runners
  • keep the cross-platform quarantine and async tree-kill mechanism assertions running on Windows
  • exercise abort acknowledgements through the production transport so the same tests use Unix sockets or Windows named pipes

Determinism evidence

  • explicit selection of the 8 affected nodes on Windows failed 8/8 because it bypassed the repository's whole-file Windows collection exclusion
  • after the fix, the combined strict selection passes 15 tests and skips only the 2 explicitly POSIX assertions
  • Windows alternatives independently cover taskkill error mapping, async offload, missing-taskkill failure, and real named-pipe round trips
  • no retries, sleeps, timeout changes, xfails, or warning filters were added

Validation

  • targeted strict RuntimeWarning/PytestUnraisable run: 15 passed, 2 POSIX-only skips
  • flake8, isort check, and git diff --check passed
  • the whole historical test file remains in the Black baseline on unmodified main, so it was not reformatted

Overlap audit

@bolichen97
bolichen97 requested a review from a team as a code owner August 30, 2026 07:55
@bolichen97
bolichen97 requested a review from buluoray August 30, 2026 07:55
@github-actions github-actions Bot added the readiness: checking Automated validation is still running label Aug 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

GPT 5.6 Review — ✅ no blocking findings

GPT 5.6 completed its review of cfab972025d9392aebc7a5e8c9462bd900a948cb and found no blocking issues.

This comment is updated in place on each push.

Review details

No findings.
[GPT-REVIEWED] cfab972

False positive or not applicable? A repository writer can comment:
/ai-review override gpt cfab972025d9392aebc7a5e8c9462bd900a948cb: <one-sentence reason>

@github-actions

Copy link
Copy Markdown
Contributor

Design Review (Fable 5) — ✅ PASS

Design-level review of cfab972025d9392aebc7a5e8c9462bd900a948cb — updated in place on each push. A BLOCK verdict blocks PR readiness; PASS/CONCERNS are advisory.

Design-Verdict: PASS

Test-only platform scoping that follows the repo's platform_compat/transport conventions exactly; assertions now track the production kill path and transport seam.

[DESIGN-REVIEWED] cfab972

@github-actions

Copy link
Copy Markdown
Contributor

Opus 4.8 Review — ✅ no blocking findings

Reviewed cfab972025d9392aebc7a5e8c9462bd900a948cb — this comment is updated in place on each push.

Review details

No findings.

[OPUS-REVIEWED] cfab972

Verdict parsed from the review's SHA-scoped output markers for commit cfab972025d9392aebc7a5e8c9462bd900a948cb.

False positive or not applicable? A repository writer can comment:
/ai-review override fable cfab972025d9392aebc7a5e8c9462bd900a948cb: <one-sentence reason>

@github-actions github-actions Bot added readiness: passed Eligible automated validation passed for the current revision and removed readiness: checking Automated validation is still running labels Aug 30, 2026
@dwu96
dwu96 enabled auto-merge (squash) August 30, 2026 09:05

@dwu96 dwu96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tier 1 auto-approve: test (1 file). Criteria: no conflict, no requested changes, security path denylist clean, design-doc gate clean, SAST annotations clean, security checklist all-NO, AI reviewers green. Category: test — test/test_stop_kill_cancel.py only; POSIX-specific killpg/PID-1 assertions are now skipped on Windows via platform_compat.IS_WINDOWS, the kill-tree patch target and SIGKILL constant are read through platform_compat, and the two fake gatewayd servers go through transport.serve instead of asyncio.start_unix_server. No production code touched.

@dwu96
dwu96 merged commit 5aa2097 into main Aug 30, 2026
67 checks passed
@dwu96
dwu96 deleted the codex/fix-stop-kill-windows-scoping branch August 30, 2026 09:05

@chenmingwei23 chenmingwei23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tier 1 auto-approve: test (1 file). Criteria: no conflict, no requested changes, security path denylist clean, design-doc gate clean, SAST annotations clean, security checklist all-NO, AI reviewers green. Category: test-only, scopes stop and kill paths by platform in test_stop_kill_cancel.py.

@github-actions github-actions Bot removed the readiness: passed Eligible automated validation passed for the current revision label Aug 30, 2026

@iamwhatever iamwhatever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tier 1 auto-approve: test (1 file). Criteria: no conflict, no requested changes, security path denylist clean, design-doc gate clean, SAST annotations clean, security checklist all-NO, AI reviewers green. Category: test-only change to test/test_stop_kill_cancel.py -- skips the POSIX killpg/PID-1 assertions on Windows and patches the platform_compat kill seam instead of os.killpg, so no production code is touched.

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.

4 participants