Skip to content

Resume hostless Simulator XCTest agents before waiting for results - #470

Merged
zunda-pixel merged 1 commit into
mainfrom
fix/hostless-test-agents
Oct 31, 2026
Merged

zunda-pixel merged 1 commit into
mainfrom
fix/hostless-test-agents

Conversation

@zunda-pixel

@zunda-pixel zunda-pixel commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #469, the hostless follow-up to #460.

Hostless Simulator tests run the SDK's Agents/xctest executable. Its path has no device UUID, so the app-container ownership check rejects it and the test request waits on a stopped, untraced agent. The hosted-app correction therefore does not resume this case.

Test requests now recognize SDK agents whose kernel-reported working directory is the selected Simulator's <UUID>/data directory. The existing stopped/untraced, debugger, PID/start-time, and request-lifetime checks still apply. Captured agents retain that test-only permission for cancellation cleanup. Normal app launches keep the app-container check.

Validation on Xcode 27.2, macOS 27.0.1, iOS Simulator 27.2:

  • The new ownership regression failed before the predicate change. swift test --disable-sandbox --filter 'NativeApplicationLaunchTests|NativeExecutionOperationsTests|NativeLaunchOwnershipTests|NativeDebuggerReadinessTests' now passes all 25 tests. Real stopped subprocess cases cover both app-container and SDK-agent paths, including resume, cancellation, debugger intent, wrong Simulator, and stale PID identity.

  • A hostless copy of ProxyToolVerifierFixture reproduced the stopped agent on main. With this fix, both RunSomeTests and RunAllTests return 1 passed without manual signals through the packaged host and HTTP proxy.

  • Two selected tests in a real multi-project application workspace pass without manual signals. Its complete test plan returns 2,004 results: 2,002 passed, 1 skipped, 1 expected failure, 0 unexpected failures, and 0 not run. Both selected and full runs complete without manual process signals.

  • After the full test run, debugger-attached launch and immediate process status succeed. A fresh session also launches without a debugger, with the PID verified running and untraced before stopping it. Three application Preview cases render successfully: normal text, largest Dynamic Type, and a fixed 1024 × 768 layout, downsampled to 1500 × 1125. The images were visually checked. The application source remains unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T17:20:04.924555Z 25ffdda PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zunda-pixel
zunda-pixel merged commit c458f5d into main Oct 31, 2026
7 checks passed
@zunda-pixel
zunda-pixel deleted the fix/hostless-test-agents branch October 31, 2026 01:46
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.

Hostless Simulator XCTest agents remain suspended before tests run

1 participant