Repository navigation
build(package): stop shipping Swift test sources #3785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ce119a5
build(package): stop shipping Swift test sources
thymikee 449b4d4
chore(gates): keep macOS helper test sources out of npm packs
thymikee 0bde27b
fix(gates): skip non-blob changed paths before reading them as source
thymikee cf63ab3
fix(package): keep the macOS helper tests in the shipped package with…
thymikee 57367bc
fix(gates): check the helper pack stubs per declared test target
thymikee 650f9b0
chore(gates): type the size-report exports the helper pack guard imports
thymikee 563d35e
fix(gates): require the helper manifest beside its shipped sources an…
thymikee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
apple/macos-helper/Tests/AgentDeviceMacOSHelperTests/PackStub.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // The npm package ships this one file and nothing else under the test targets (see `files` in | ||
| // package.json). SwiftPM refuses to load a package whose declared test target has no sources, so | ||
| // the install-time `swift build` of the packed tree needs a source here; the real tests for this | ||
| // target live beside it and are excluded from the pack. | ||
| import XCTest | ||
|
|
||
| final class AgentDeviceMacOSHelperPackStubTests: XCTestCase {} |
7 changes: 7 additions & 0 deletions
7
apple/macos-helper/Tests/AgentDeviceMacOSInputTests/PackStub.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // The npm package ships this one file and nothing else under the test targets (see `files` in | ||
| // package.json). SwiftPM refuses to load a package whose declared test target has no sources, so | ||
| // the install-time `swift build` of the packed tree needs a source here; the real tests for this | ||
| // target live beside it and are excluded from the pack. | ||
| import XCTest | ||
|
|
||
| final class AgentDeviceMacOSInputPackStubTests: XCTestCase {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,83 @@ | ||
| { | ||
| "unpackedSize": 2319, | ||
| "files": [ | ||
| { "path": "dist/src/index.js", "size": 401 }, | ||
| { "path": "dist/src/index.d.ts", "size": 102 }, | ||
| { "path": "dist/apple/runner/RunnerTests.swift", "size": 503 }, | ||
| { "path": "dist/apple/snapshot-presentation/Package.swift", "size": 113 }, | ||
| { "path": "apple/snapshot-bridge/SnapshotBridge.m", "size": 0 }, | ||
| { "path": "apple/snapshot-bridge/SnapshotBridgeRuntime.m", "size": 0 }, | ||
| { "path": "apple/snapshot-bridge/SnapshotBridgeRuntime.h", "size": 0 }, | ||
| { "path": "apple/snapshot-bridge/SnapshotBridgeCapture.h", "size": 0 }, | ||
| { "path": "apple/snapshot-bridge/SnapshotBridgeCapture.m", "size": 0 }, | ||
| { "path": "apple/macos-helper/Sources/main.swift", "size": 211 }, | ||
| { "path": "android/snapshot-helper/dist/helper.apk", "size": 307 }, | ||
| { "path": "android/snapshot-helper/dist/helper.manifest.json", "size": 99 }, | ||
| { "path": "android/ime-helper/dist/helper.apk", "size": 307 }, | ||
| { "path": "android/ime-helper/dist/helper.manifest.json", "size": 99 }, | ||
| { "path": "package.json", "size": 99 }, | ||
| { "path": "vendor/unknown.bin", "size": 78 } | ||
| ] | ||
| { | ||
| "path": "dist/src/index.js", | ||
| "size": 401 | ||
| }, | ||
| { | ||
| "path": "dist/src/index.d.ts", | ||
| "size": 102 | ||
| }, | ||
| { | ||
| "path": "dist/apple/runner/RunnerTests.swift", | ||
| "size": 503 | ||
| }, | ||
| { | ||
| "path": "dist/apple/snapshot-presentation/Package.swift", | ||
| "size": 113 | ||
| }, | ||
| { | ||
| "path": "apple/snapshot-bridge/SnapshotBridge.m", | ||
| "size": 0 | ||
| }, | ||
| { | ||
| "path": "apple/snapshot-bridge/SnapshotBridgeRuntime.m", | ||
| "size": 0 | ||
| }, | ||
| { | ||
| "path": "apple/snapshot-bridge/SnapshotBridgeRuntime.h", | ||
| "size": 0 | ||
| }, | ||
| { | ||
| "path": "apple/snapshot-bridge/SnapshotBridgeCapture.h", | ||
| "size": 0 | ||
| }, | ||
| { | ||
| "path": "apple/snapshot-bridge/SnapshotBridgeCapture.m", | ||
| "size": 0 | ||
| }, | ||
| { | ||
| "path": "apple/macos-helper/Package.swift", | ||
| "size": 1057 | ||
| }, | ||
| { | ||
| "path": "apple/macos-helper/Sources/main.swift", | ||
| "size": 211 | ||
| }, | ||
| { | ||
| "path": "android/snapshot-helper/dist/helper.apk", | ||
| "size": 307 | ||
| }, | ||
| { | ||
| "path": "android/snapshot-helper/dist/helper.manifest.json", | ||
| "size": 99 | ||
| }, | ||
| { | ||
| "path": "android/ime-helper/dist/helper.apk", | ||
| "size": 307 | ||
| }, | ||
| { | ||
| "path": "android/ime-helper/dist/helper.manifest.json", | ||
| "size": 99 | ||
| }, | ||
| { | ||
| "path": "package.json", | ||
| "size": 99 | ||
| }, | ||
| { | ||
| "path": "vendor/unknown.bin", | ||
| "size": 78 | ||
| }, | ||
| { | ||
| "path": "apple/macos-helper/Tests/AgentDeviceMacOSHelperTests/PackStub.swift", | ||
| "size": 426 | ||
| }, | ||
| { | ||
| "path": "apple/macos-helper/Tests/AgentDeviceMacOSInputTests/PackStub.swift", | ||
| "size": 426 | ||
| } | ||
| ], | ||
| "entryCount": 19, | ||
| "size": 3376 | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: This reformat turns the fixture's unchanged entries into expanded objects, so the diff is far larger than the two added entries. Restore the compact one-line object style used before this PR so the change only shows the new
Package.swiftandPackStub.swiftentries.Prompt for AI agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assessment: true. My script rewrite of the fixture re-expanded every entry into multi-line objects; the compact one-line style should be restored, keeping only the three added entries (Package.swift + the two PackStub.swift). Not pushed this round: the coordinator closed guard-review rounds at 563d35e and asked that further threads be left for the maintainer, and a push would re-trigger this bot's review. Leaving open; uncontroversial formatting fix.