Skip to content

docs: test an iOS app's logic in a macOS Swift package and boot a simulator only for app-hosted tests (DOTGH-8) - #14

Merged
kiliantyler merged 2 commits into
mainfrom
docs/DOTGH-8-factory-6c1673c0
Nov 25, 2026
Merged

kiliantyler merged 2 commits into
mainfrom
docs/DOTGH-8-factory-6c1673c0

Conversation

@kiliantyler

Copy link
Copy Markdown
Contributor

Ticket

DOTGH-8

Problem

A simulator's first boot costs the hosted xcode-27 image about 7 minutes wherever the job runs it. Cowtail measured that booting it early only slows the steps beside it, so a shared ios-simulator-boot action would not help.

Solution

  • IOS.md gets a Unit tests and PR CI section with four rules: logic and unit tests in a local Swift package tested with swift test on macOS; the package build keeps UserDefaults/keychain in memory behind one chokepoint; the iOS suite lints, tests the package, builds the app for the simulator (xcodebuild build, nothing booted) and runs static checks; app-hosted tests run in their own suite routed by an exact-path rule that a routing test enforces, and every release runs it. It also gives the default (sources compiled into the app module) and the alternative (a linked package product), and keeps UI tests out of hosted CI.
  • It includes Cowtail's timing table as evidence and links its reference files: ios-verify.yml, ios-sim-verify.yml, ios/CowtailKit/Package.swift and script/ci/suites.test.ts.
  • CI.md item 2, where it describes suite jobs, points to the section. REPOSITORIES.md's IOS.md pointer now mentions tests too.
  • No new action, and the earlier ios-simulator-boot plan is not built.

Validation

  • Every linked Cowtail file exists on MaudeCode/cowtail main, checked with gh api. Rule 2's compilation condition and chokepoint (COWTAIL_PACKAGE, App/HostStores.swift) match Cowtail's source.
  • node --test passes, and the change touches no code.

Regression proof

Not applicable: a documentation-only change with no behavior or test.

Tests

No test added. The change is documentation only, so no contract needs a test.

Risk and rollback

Docs only. Revert the commit to roll back.

…ulator only for app-hosted tests (DOTGH-8)

A simulator's first boot costs a hosted Mac about 7 minutes wherever the job runs it, and booting it early only
slows the steps beside it. IOS.md now has a "Unit tests and PR CI" section every iOS repository follows: the
logic and its tests live in a local Swift package tested with swift test on macOS, the package build keeps the
host's stores in memory, the iOS suite only builds the app, and the few app-hosted tests run in their own suite
that only their paths and every release reach. Cowtail's measurements are the evidence and its files the
reference. CI.md points to the section where it describes suite jobs.
@kiliantyler

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T04:50:58.658687Z 5e10e9c Manual request
🔒 Security Review ✅ Completed 2026-11-25T04:51:38.257826Z 5e10e9c Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e10e9c15e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread IOS.md Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 5e10e9c15e

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@kiliantyler
kiliantyler merged commit e4bb742 into main Nov 25, 2026
1 check passed
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