Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jul 10, 2024

This PR amends exit tests' child process spawning logic to ensure that they don't trigger a fork bomb or fail outright when the test process is hosted by Swift Package Manager (as in this branch).

Exit tests are an experimental feature, but one that we use internally in our own test suite, so we need to make sure our tests continue to function if/when that SwiftPM branch is merged.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR amends exit tests' child process spawning logic to ensure that they
don't trigger a fork bomb or fail outright when the test process is hosted by
Swift Package Manager (as in [this branch](https://github.com/swiftlang/swift-package-manager/tree/jgrynspan/one-test-product-two-libraries)).

Exit tests are an experimental feature, but one that we use internally in our
own test suite, so we need to make sure our tests continue to function if/when
that SwiftPM branch is merged.
@grynspan grynspan added bug 🪲 Something isn't working swiftpm-integration 📦 Swift Package Manager integration tools integration 🛠️ Integration of swift-testing into tools/IDEs windows 🪟 Windows support linux 🐧 Linux support (all distros) darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support labels Jul 10, 2024
@grynspan grynspan self-assigned this Jul 10, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan merged commit bdfd43d into main Jul 10, 2024
@grynspan grynspan deleted the jgrynspan/avoid-fork-bomb-when-swiftpm-hosted branch July 10, 2024 03:35
@grynspan
Copy link
Contributor Author

See also: swiftlang/swift-package-manager#7766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support linux 🐧 Linux support (all distros) swiftpm-integration 📦 Swift Package Manager integration tools integration 🛠️ Integration of swift-testing into tools/IDEs windows 🪟 Windows support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants