Skip to content

Make sure the workspace state is saved after adding/removing artifacts. #8475

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 5 commits into from
Apr 18, 2025

Conversation

shawnhyam
Copy link
Contributor

The workspace state needs to be saved even if the updateBinaryArtifacts call exits early.

Motivation:

If we delete old artifacts, and then the new versions fail to download, without a save() call the workspace state will not know the artifact is no longer there.

Modifications:

Move the save() call to a defer block so it always gets called.

Result:

There should be fewer inconsistencies between workspace state and what is actually on disk.

@bkhouri
Copy link
Contributor

bkhouri commented Apr 10, 2025

@swift-ci please test

@bkhouri
Copy link
Contributor

bkhouri commented Apr 10, 2025

@swift-ci test self hosted windows

@plemarquand
Copy link
Contributor

@swift-ci please test

@plemarquand
Copy link
Contributor

@swift-ci please test windows

@plemarquand
Copy link
Contributor

@swift-ci please test self hosted windows

@dschaefer2
Copy link
Member

I was wondering about withAsyncThrowing. Is that available in Swift 6.0? Appears to be what the Windows failure is about.

@shawnhyam
Copy link
Contributor Author

I was wondering about withAsyncThrowing. Is that available in Swift 6.0? Appears to be what the Windows failure is about.

It's a function in swift-package-manager, in Sources/Basics/Concurrency/ThrowingDefer.swift

@shawnhyam
Copy link
Contributor Author

@swift-ci please test windows

@shawnhyam
Copy link
Contributor Author

@swift-ci please test self hosted windows

@shawnhyam
Copy link
Contributor Author

@swift-ci please test

@shawnhyam
Copy link
Contributor Author

@swift-ci please test windows

@bkhouri
Copy link
Contributor

bkhouri commented Apr 17, 2025

@swift-ci test self hosted windows

@shawnhyam
Copy link
Contributor Author

@swift-ci test self hosted windows

@shawnhyam
Copy link
Contributor Author

@swift-ci test

@shawnhyam
Copy link
Contributor Author

@swift-ci please test windows

@shawnhyam shawnhyam enabled auto-merge (squash) April 17, 2025 21:46
@shawnhyam
Copy link
Contributor Author

@swift-ci please test windows

@shawnhyam shawnhyam merged commit 95ce2a3 into swiftlang:main Apr 18, 2025
7 checks passed
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.

4 participants