-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[6.0.1] Add new Foundation libraries to SwiftRuntimeLibsOrdered and update others (#76019) #76606
Conversation
…tolink-extract tool doesn't repeat them over and over again (swiftlang#76224)
I would like to hear @parkera thoughts on pulling this in to 6.0.1 release. |
How much does this actually address the overall problem reported in #76555? |
I don't know. Without @MahdiBM trying the fixed snapshot builds I've specified there, I can't say if this is the fix. |
I would prefer we get this into |
@shahmishal, the main commit was already merged into If you want, I can change this 6.0.1 pull to only include #76019, which is already in the 6.0 branch. |
On it 🙂 |
@finagolfin trying on these:
Please let me know if these are NOT what you meant. |
That looks right: you are trying to test this commit, c069bd6, which it says there was first built into the Sep. 4 snapshot build of the toolchain. |
@finagolfin unfortunately i get:
Because of a dependency. The CI Filename: test build
on:
pull_request: { types: [opened, reopened, synchronize] }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
snapshot:
- main-snapshot-2024-09-04
- main-snapshot-2024-08-29
machine:
- "medium" # 16gb 8cpu c7i-flex
- "large" # 32gb 16cpu c7i-flex
- "huge-stable-arm" # 128gb 64cpu bare metal c7g
runs-on:
labels:
- runs-on
- runner=${{ matrix.machine }}
- run-id=${{ github.run_id }}
timeout-minutes: 60
steps:
- name: Configure git
run: |
git config --global --add url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "https://github.com/"
git config --global --add url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "git@github.com:"
git config --global --add safe.directory '*'
- name: Check out
uses: actions/checkout@v4
- name: Install jemalloc
run: |
sudo apt-get update -y
sudo apt-get install -y libjemalloc-dev
- uses: vapor/swiftly-action@v0.1
with:
toolchain: ${{ matrix.snapshot }}
- name: Build ${{ matrix.snapshot }}
run: |
swift package update
swift build --build-tests EDIT: |
I haven't messed with the language mode settings myself. Alternately, you can try with the older July 19 and July 21 snapshot builds of the 6.0 toolchain that I mentioned first, as the former was before these new Foundation libraries was added. |
No luck. - 6.0-snapshot-2024-07-19
- 6.0-snapshot-2024-07-21 Complains about |
Are you able to share your |
It's from pointfree's Dependency package which we depend on IIRC. Not our package. |
Which one? |
Perhaps my dependencies are out of date? trying with addition of |
Ok yeah ... there was a recent release and our dependencies were not up to date (actually now I notice GitHub's Dependabot has stopped working on Swift 6?! need to report that). Now getting this:
Of course none of these errors occur on the release Docker images. EDIT: yeah can't get past this, building in release mode doesn't help either. |
FWIW The builds fail at almost the same time:
|
For the record, this is the result of comparing 07-19 vs 07-21 swift 6.0 nightlies, which I mentioned to @finagolfin. I was unable to try the trunk snapshots considering they would result in weird build failures. And also there seems to be some extra noble-specific regressions as well. |
6.0.1 was just tagged, so closing this. @MahdiBM, feel free to nominate these two trunk pulls for a subsequent patch release instead, if you can show they are causing a significant portion of your slowdown. |
Explanation: Changes a list of automatically de-duped libraries passed to the linker to reduce memory allocated while linking new Foundation and runtime libraries
Scope: Updates a list of libraries that already contains Foundation to add additional Foundation and runtime libraries
Issue: swiftlang/swift-foundation#872
Original PRs: #76019 and #76224
Risk: Low - scope is narrow and tested with the already existing Foundation and runtime libraries in the list
Testing: Testing done via swift-ci testing
Reviewer: @Azoy @etcwilde @jmschonfeld
There was some concern from others about removing the libicu de-duplication in #76224 for this 6.0 branch, but I'm fairly certain that is entirely unused after the Foundation re-core to use _FoundationICU instead, as I noted there.
@shahmishal, this may fix #76555.