Skip to content

Conversation

@euanh
Copy link
Contributor

@euanh euanh commented Jan 24, 2025

The end to end tests still assume that the host toolchain will be
embedded in the SDK. There is currently no provision in the test
harness for installing a toolchain before running the tests, so for
now we must use the --host-toolchain flag when building SDKs.

The end to end tests still assume that the host toolchain will be
embedded in the SDK.   There is currently no provision in the test
harness for installing a toolchain before running the tests, so for
now we must use the --host-toolchain flag when building SDKs.
@euanh euanh added the test suite Changes to generator's test suite label Jan 24, 2025
@euanh euanh requested a review from MaxDesiatov as a code owner January 24, 2025 12:47
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

I'm looking into working around this problem, but for now the best way to get the E2E tests running is to use embedded host toolchains.

Ideally we would be able to unpack a toolchain and use it without having to install it. swift build --toolchain looks like the right option, and we have code to fetch and unpack the toolchain in the generator.

I've done some experiments in the past which showed that using a single instance of the toolchain made the E2E tests quite a lot quicker on macOS because it avoided repeated XProtect checks on the same toolchain files in different SDKs.

@euanh euanh merged commit b72dcca into swiftlang:main Jan 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test suite Changes to generator's test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants