Skip to content

fix(platform-ios): gracefully stop XCTest agent#139

Draft
mrousavy wants to merge 1 commit into
callstackincubator:mainfrom
mrousavy:codex/graceful-ios-harness-agent-shutdown
Draft

fix(platform-ios): gracefully stop XCTest agent#139
mrousavy wants to merge 1 commit into
callstackincubator:mainfrom
mrousavy:codex/graceful-ios-harness-agent-shutdown

Conversation

@mrousavy
Copy link
Copy Markdown

@mrousavy mrousavy commented Jun 3, 2026

Summary

  • add a /shutdown endpoint to the iOS XCTest agent and exit testAgentSession when Harness stops the session
  • request graceful shutdown from the platform-ios controller before terminating xcodebuild
  • bound shutdown with a timeout and fall back to SIGTERM/SIGKILL if the agent does not stop

Validation

  • pnpm exec vitest run --root packages/platform-ios src/__tests__/xctest-agent-client.test.ts src/__tests__/xctest-agent.test.ts
  • pre-commit lint/typecheck hook
  • pre-push build hook

Context

This prevents normal Harness teardown from killing a passing xcodebuild test-without-building session with SIGTERM after the JS tests complete.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@mrousavy is attempting to deploy a commit to the Callstack Team on Vercel.

A member of the Team first needs to authorize it.

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