fix(harness): move Corpora resource into Sources/Harness — fixes xcodebuild #169

Merged
KofTwentyTwo merged 1 commits from fix/ci-harness-corpora-resource into develop 2026-05-13 14:26:55 +00:00
1 Commits
Author SHA1 Message Date
james.maesandClaude Opus 4.7 9e50ebd67c fix(harness): move Corpora resource into Sources/Harness — fixes xcodebuild
xcodebuild's strict package resolution failed with `Found unhandled
resource at packages/Harness/Corpora`. The Harness target declared the
resource as `.copy("../../Corpora")` (target path `Sources/Harness`
traversing up two levels to the package root). `swift test` accepts
that traversal but xcodebuild's workspace-level walk treats it as
ambiguous.

Fix: move `packages/Harness/Corpora` into `packages/Harness/Sources/Harness/Corpora`
and update the resource declaration to `.copy("Corpora")` (no `..`).
The runtime bundle layout is unchanged because `Bundle.module` flattens
into the same `<bundle>/Corpora/<subdir>/...` structure either way. All
call sites (`NDJSONFixtureCorpus`, `SSEFixtureCorpus`,
`WakeHysteresisCorpus`, etc.) use `subdirectory: "Corpora/<name>"` and
keep working without code changes.

Verified locally: `swift test --package-path packages/Harness` →
63 tests in 9 suites, 0 failures.

Closes the remaining App-target xcodebuild failure that blocked
publish-tag from firing on CI run 25803540736.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 09:26:18 -05:00