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
KofTwentyTwo commented 2026-05-13 14:26:51 +00:00 (Migrated from github.com)

Summary

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 an unhandled resource at the package root.

Fix

Move packages/Harness/Corpora → packages/Harness/Sources/Harness/Corpora, drop the ../.. from the resource path:

-                .copy("../../Corpora"),
+                .copy("Corpora"),

Runtime bundle layout is unchanged — 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.

Verification

  • swift test --package-path packages/Harness → 63 tests in 9 suites, 0 failures.
  • CI Bus / AgentCore / MCP / Voice / Vision / Memory / Harness etc. all green on previous run; this PR only changes the resource location.

Closes the remaining App-target xcodebuild failure that blocked publish-tag from firing on CI run 25803540736 (after #168 fixed everything else).

🤖 Generated with Claude Code

## Summary 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 an unhandled resource at the package root. ## Fix Move `packages/Harness/Corpora` → `packages/Harness/Sources/Harness/Corpora`, drop the `../..` from the resource path: ```diff - .copy("../../Corpora"), + .copy("Corpora"), ``` Runtime bundle layout is unchanged — `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. ## Verification - `swift test --package-path packages/Harness` → **63 tests in 9 suites, 0 failures**. - CI Bus / AgentCore / MCP / Voice / Vision / Memory / Harness etc. all green on previous run; this PR only changes the resource location. Closes the remaining App-target xcodebuild failure that blocked publish-tag from firing on CI run 25803540736 (after #168 fixed everything else). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.