Skip to content

Conversation

@edymtt
Copy link
Contributor

@edymtt edymtt commented Aug 7, 2025

This way they can be used in backdeployment tests.

To do so, use the deployment target versions for tests (not the one for the compiler/stdlib), and remove an unneeded dependency on StringProcessing.

Piggyback a change to disable an Autodiff test on backdeployment configurations

Addresses rdar://157622116

edymtt added 3 commits August 7, 2025 15:06
Since swiftlang#64187 we are not importing automatically StringProcessing when
building the stdlib -- this is especially important for StdlibUnittest,
since it needs to run on older OSes.

Addresses rdar://157622116
To do so, use the deployment target versions used for tests.

Addresses rdar://157622116
@edymtt edymtt marked this pull request as ready for review August 7, 2025 22:24
@edymtt edymtt requested review from a team and asl as code owners August 7, 2025 22:24
@edymtt
Copy link
Contributor Author

edymtt commented Aug 7, 2025

@swift-ci please test

@asl
Copy link
Contributor

asl commented Aug 7, 2025

I do not have access to rdar, so I'm out of context. But I'd suppose that autodiff test changes are ok.

@edymtt
Copy link
Contributor Author

edymtt commented Aug 7, 2025

@swift-ci please build toolchain

@edymtt
Copy link
Contributor Author

edymtt commented Aug 8, 2025

Windows toolchain failure looks unrelated, since it is happening in SourceKit-LSP tests

Test Suite 'Selected tests' started at 2025-08-08 03:27:07.296

Test Suite 'BackgroundIndexingTests' started at 2025-08-08 03:27:07.299

Test Case 'BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished' started at 2025-08-08 03:27:07.299

C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\sourcekit-lsp\Tests\SourceKitLSPTests\BackgroundIndexingTests.swift:2625: error: BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished : XCTAssertEqual failed: ("Optional(0)") is not equal to ("Optional(1)") - 

Test Case 'BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished' failed (262.566 seconds)

Test Suite 'BackgroundIndexingTests' failed at 2025-08-08 03:31:29.864

	 Executed 1 test, with 1 failure (0 unexpected) in 262.566 (262.566) seconds

Test Suite 'Selected tests' failed at 2025-08-08 03:31:29.864

	 Executed 1 test, with 1 failure (0 unexpected) in 262.566 (262.566) seconds

[org.swift.sourcekit-lsp:message-handling] debug 2025-08-08 03:27:07.5980 +0000

@edymtt
Copy link
Contributor Author

edymtt commented Aug 8, 2025

@swift-ci please build toolchain Windows

@edymtt edymtt merged commit 9d7d3a1 into swiftlang:main Aug 11, 2025
8 checks passed
@edymtt edymtt deleted the edymtt/ensure-private-libraries-can-run-on-older-oses branch August 13, 2025 14:59
edymtt added a commit to edymtt/swift that referenced this pull request Aug 14, 2025
I missed a few when tackling swiftlang#83602

Take the chance to ensure swiftStdlibUnittestFoundationExtras builds
zippered.

Addresses rdar://158264124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants