Skip to content

Tolerate Gradle symlink creation race condition#691

Merged
marcprux merged 1 commit into
mainfrom
gradle-symlink
May 19, 2026
Merged

Tolerate Gradle symlink creation race condition#691
marcprux merged 1 commit into
mainfrom
gradle-symlink

Conversation

@marcprux

@marcprux marcprux commented May 19, 2026

Copy link
Copy Markdown
Member

When running skip test, we sometimes see failures like:

[✗] …/SkipTestHarness/XCSkipTests.swift:10: error: -[XCSkipTests testSkipModule] : failed - The file “skipapp-hiya” couldn’t be saved in the folder “build” because a file with the same name already exists.

Re-running the tests almost always results in them passing. The speculated cause is because skip test runs tests in parallel, multiple builds might be simultaneously be trying to create a symlink to the same destination when they see it doesn't exist.

This PR tolerates failed attempts to create the symlink, provided that the symlink is pointing to the expected destination.

@cla-bot cla-bot Bot added the cla-signed Automatically-added indication of a signed Contributor License Agreement label May 19, 2026
@marcprux marcprux merged commit 42c06c6 into main May 19, 2026
3 of 4 checks passed
@marcprux marcprux deleted the gradle-symlink branch May 19, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Automatically-added indication of a signed Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant