ci: reap orphan xctest/swift-test on self-hosted runner before each job #182
Closed
opened 2026-05-13 21:09:05 +00:00 by KofTwentyTwo
·
0 comments
No Branch/Tag Specified
develop
ci/secrets-historical-baseline
feature/security-findings-2026-10
dependabot/npm_and_yarn/webview/npm_and_yarn-3ac77625be
dependabot/npm_and_yarn/webview/packages/bus/npm_and_yarn-c86b58a346
dependabot/npm_and_yarn/webview/vitejs/plugin-react-6.0.2
dependabot/npm_and_yarn/webview/vite-8.0.13
dependabot/npm_and_yarn/webview/zustand-5.0.13
dependabot/npm_and_yarn/webview/types/node-25.9.1
dependabot/npm_and_yarn/webview/vitest-4.1.6
dependabot/github_actions/actions/setup-node-6
dependabot/github_actions/github/codeql-action-4
dependabot/github_actions/actions/checkout-6
dependabot/github_actions/actions/cache-5
dependabot/github_actions/pnpm/action-setup-6
feat/local-first-llm-routing
docs/local-first-llm-routing-spec
fix/v0.2-wave-1-code-fixes
docs/v0.2-wave-1-doc-drift
docs/handoff-2026-05-14
docs/multi-runner-inventory
docs/ollama-baseline-58
fix/ci-env-harness-sqlite-voice-warmup
fix/ci-xcode-26-and-batcher-timing
chore/typecheck-blocking
fix/hud-typecheck-strict-undefined
wip/voice-log-menu-stash4
v0.1.0-dev.71
v0.1.0-dev.68
v0.1.0-dev.64
v0.1.0-dev.50
Labels
Clear labels
area:agent
area:build
area:bus
area:devtool
area:hud
area:logging
area:mcp
area:memory
area:vision
area:voice
audit-finding
bug
carry-forward
comment-cleanup
dependencies
documentation
duplicate
enhancement
epic
good first issue
help wanted
invalid
javascript
migration
question
severity:critical
severity:high
severity:low
severity:medium
wontfix
Something isn't working
Comment / docstring cleanup per .planning/code-commenting-guide.md
Dependency updates
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Pull requests that update javascript code
Further information is requested
This will not be worked on
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: KofTwentyTwo/Jarvis#182
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
Add a 'Reap orphan xctest/swift-test processes' step at the start of the swift-packages job, gated to
runner.environment == 'self-hosted'.Why
Grogu (the self-hosted runner) is a shared workstation, not an ephemeral VM. Interactive Xcode test sessions, aborted
swift testruns, or debugger crashes can leave orphanxctest/swift-test/swift-driverprocesses around for hours. They hold Mach services, sockets, and ports that subsequent CI jobs may block on when they try to mount their own test infrastructure.Concrete incident: the develop CI run on
eef17252hung inSPM AgentCorefor 34 min (0% CPU, sleeping state) while 6 zombie xctest processes aged 22–24h were alive. They were from prior interactive Xcode use, not CI. Killing them did not unstick the wedged AgentCore (it was already blocked), but a fresh rerun with zombies absent should pass.Approach
Single
run:step at the top ofswift-packages(after the matrix dispatches the job, before checkout/build/test). On self-hosted only — github-hosted VMs start clean.Single-runner serialization invariant guarantees that any matching process at job start belongs to no live job and is safe to kill.
Acceptance