Closed as not planned
Description
Description
Absolutely massive Significant build regressions on linux , worsened by swift-testing
EDIT: Please also read my next comment which includes more info.
Environment
- GitHub Actions
- 8 CPU x 16GB RAM c7x EC2 Instance (we use RunsOn)
- Migrating from
swift:5.10-noble
toswift:6.0-noble
- Tried with and without using a previous
.build
cache. No behavior difference noticed at all. - 200K-300K LOC project
- Updated to
// swift-tools-version:6.0
inPackage.swift
- All targets still have Swift 5 language mode enabled.
- No actual tests migrated to swift-testing just yet.
What Happened?
- Our Tests CI started getting stuck after the toolchain update.
- The CI machines were getting killed by AWS. Considering this has been a common problem specially in the Server Side Swift ecosystem, which also has been brought up for ages and numerous times, my first guess was that the machine is running out of RAM when building the Swift project.
- After a lot of tries, I noticed a
c7x
-family machine with 64 CPU x 128 GB RAM (8x larger than before) runs the tests as well as they were being run before, on swift 5.10. - My first guess was that maybe Swift testing is causing an issue, so tried
--disable-swift-testing
. - After that, our tests have been running on an only 2x larger machine, and the rest of the things are back to normal in tests CI.
- With this bigger machine, it still almost takes as long as before for the tests CI to complete (we run tests in parallel with 64 workers).
- So this means that not only Swift 6 has a significant build regression, but also swift-testing makes it go from
significant
toabsolutely massive
. - This is borderline unusable for the Swift-Server ecosystem. I hope this problem requires more specific situations to happen that what meets the eye.
- Still trying things out with the deployment CI. even 2x CPU and 4x RAM isn't proving helpful even though I did throw the
--disable-swift-testing
flag into the mix.
Reproduction
Not sure.
Expected behavior
No regressions. Preferably even faster than previous Swift versions.
Environment
Mentioned above.
Additional information
No response