skiptools / skiptools/skipstone

skip android test fails to find test binary with swift-build system in swift 6.4

Open
#244 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
106
Forks
20
Avg merge
2d 3h
Merged PRs (30d)
9

Description

When running against the latest nightly preview (swift-DEVELOPMENT-SNAPSHOT-2026-04-30-a_android) of the 6.4 swift-build overhaul, running test cases against Android fails:

zap apple/swift-algorithms [main] % skip android test

Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (0.24s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.90s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Building for debugging...
Pre-planning 1 / 183
Planning deferred tasks
[56/100] RealModule 46 / 78
[57/100] _NumericsShims 47 / 78
[60/100] RealModule 49 / 78
[60/100] Algorithms 57 / 90
[64/100] Algorithms 60 / 90
[67/100] Algorithms 63 / 90
[68/100] Algorithms 64 / 90
[69/100] RealModule 65 / 91
[73/100] Algorithms 68 / 91
[73/100] Algorithms 68 / 92
[80/100] SwiftAlgorithmsTests-product 86 / 104
[81/100] SwiftAlgorithmsTests-product 87 / 104
[88/100] Algorithms 92 / 104
[89/100] SwiftAlgorithmsTests-product 93 / 104
[91/100] SwiftAlgorithmsTests-product 96 / 105
[92/100] SwiftAlgorithmsTests-product 97 / 105
[93/100] SwiftAlgorithmsTests-test-runner 101 / 108
[97/100] SwiftAlgorithmsTests-test-runner 105 / 108
[99/100] SwiftAlgorithmsTests-test-runner 108 / 109
[100/100] SwiftAlgorithmsTests-test-runner 109 / 109
[100/100] 
Build complete! (143.78 sec)
[✓] Check Swift Package (1.28s)

Error: Expected executable did not exist at: /opt/src/github/apple/swift-algorithms/.build/aarch64-unknown-linux-android28/debug/swift-algorithmsPackageTests.xctest

The issue is that the location for the built executable has changed in swift-build, from:

.build/debug/swift-algorithmsPackageTests.xctest -> .build/aarch64-unknown-linux-android28/debug/swift-algorithmsPackageTests.xctest

to the symlink'd:

.build/debug/SwiftAlgorithmsTests-test-runner -> .build/out/Products/Debug-android/SwiftAlgorithmsTests-test-runner

It remains to be seen whether there are other issues with this new location, and whether there are any consequences to the target triple no longer being included in the build output path.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the skip android test entry point and trace how it locates the built test executable. Reproduce the failure with the shown Android nightly command, compare the old target-triple path with the symlinked SwiftAlgorithmsTests-test-runner path, and verify that test execution works with the new location.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.