Skip to content

Update Makefile to use modern SwiftPM parallel test flags - #1988

Closed
lakshitsoni26 wants to merge 1 commit into
apple:mainfrom
lakshitsoni26:update-makefile-test-flags
Closed

lakshitsoni26 wants to merge 1 commit into
apple:mainfrom
lakshitsoni26:update-makefile-test-flags

Conversation

@lakshitsoni26

Copy link
Copy Markdown

Motivation and Context

The current Makefile uses the deprecated --experimental-maximum-parallelization-width SwiftPM flag, which can cause warnings or integration issues on newer toolchains. Additionally, there were verbose JSON event stream outputs and hostname logs that cluttered local testing.

As requested in previous PR reviews, these Makefile quality-of-life updates have been separated into this independent PR.

Description

  • Replaced --experimental-maximum-parallelization-width <N> with the modern, standard --parallel --num-workers <N> flags.
  • Replaced --experimental-maximum-parallelization-width 1 with --no-parallel for the serial integration pass.
  • Removed the CONCURRENT_EVENT_STREAM_OPTS and GLOBAL_EVENT_STREAM_OPTS JSON output configurations to streamline the integration command.
  • Removed -Xswiftc -enable-testing from the baseline SWIFT_CONFIGURATION as it is redundant for modern standard test targets.
  • Removed local hostname logging.

Testing

  • Verified make check passes with zero formatting or header issues.
  • Verified swift test builds and passes.

@jglogan

jglogan commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@lakshitsoni26 Your analysis is incorrect.

deprecated --experimental-maximum-parallelization-width

This flag was introduced eight months ago. See swiftlang/swift-testing#1390.

swift-testing uses structured concurrency to run tests. The flags you propose manage test processes, which work for XCTest, but not swift-testing.

@jglogan jglogan closed this Jul 22, 2026
@lakshitsoni26

Copy link
Copy Markdown
Author

Ah, that makes perfect sense! Thank you for taking the time to explain how it interacts with the new swift-testing concurrency model vs XCTest. I really appreciate the clarification!

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