Skip to content

Remove the Core target request and result fields that only tests use - #199

Merged
lynnswap merged 4 commits into
mainfrom
refactor/core-test-only-api
Nov 20, 2026
Merged

lynnswap merged 4 commits into
mainfrom
refactor/core-test-only-api

Conversation

@lynnswap

Copy link
Copy Markdown
Owner

Summary

Removes three declarations from PrivateHeaderKitCore that no command needs: TargetRequest.identifiers, Result.generatedTargets, and the ExecutionOptions wrapper around Continuation. Command-line behavior does not change.

Details

  • TargetRequest keeps .allAvailable and .query, the two requests the CLI makes. GenerationError.unknownSelectedTargets, which only selection by identifier threw, goes with it.
  • Result.generatedTargets and the Target type are removed. The CLI reports a run through its counts and summary.
  • Options.executionOptions becomes Options.continuation, and PreparedPlan.withExecutionOptions becomes withContinuation. The plan fingerprint is unchanged, because the continuation was never part of it.
  • Core tests select targets with queries. A query keeps the order of its terms, so the tests that depend on Foo running before Bar still do.
  • Two tests are deleted with selection by identifier: one for an unknown identifier and one for a nested bundle selected by its identifier.
  • regenerationRemovesFilesTheTargetNoLongerProduces used an identifier to regenerate a framework without its nested service. It now removes the nested bundle from the system root before the second run, and still checks that the service's published header stays in place.

Testing

  • swift test: all six test bundles pass.
  • The full test scheme passes on the M6 mini XcodeRunnerKit host. The pull request is merged on that result and the local Codex review, without waiting for GitHub CI.
  • A Foundation dump on macOS 27.2.1 is identical to the output before this change (1,023 files).
  • Local Codex review: no findings.

🤖 Generated with Claude Code

@lynnswap
lynnswap merged commit 82435e4 into main Nov 20, 2026
@lynnswap
lynnswap deleted the refactor/core-test-only-api branch November 20, 2026 04:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T04:37:14.666669Z 914c4d2 PR opened
🔒 Security Review ✅ Completed 2026-11-20T04:38:09.767642Z 914c4d2 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.

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.

Remove the Core target request and result fields that only tests use

1 participant