Skip to content

Avoid fork-bombing ourselves when hosted by swift-test. #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024

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
3 checks passed
@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