Skip to content
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

fix(sdk): simulator lockfile race condition during release #6935

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

skyrpex
Copy link
Contributor

@skyrpex skyrpex commented Jul 23, 2024

In some cases, the lockfile would try to update the lockfile utimes while it was being released due to the async nature of the implementation. This changeset refactors the implementation so it's purely sync.

In some cases, the lockfile would try to update the lockfile utimes after it was released due to the async nature of the implementation. This changeset refactors the implementation so it's purely sync.

In the future, the implementation could be refactored into async again, but the release method should wait for the lockfile update before actually releasing the lockfile (if it's actually happening during the release call).
Copy link

Thanks for opening this pull request! 🎉
Please consult the contributing guidelines for details on how to contribute to this project.
If you need any assistance, don't hesitate to ping the relevant owner over Discord.

Topic Owner
Wing SDK and utility APIs @chriscbr
Wing Console @ainvoner, @skyrpex, @polamoros
JSON, structs, primitives and collections @hasanaburayyan
Platforms and plugins @hasanaburayyan
Frontend resources (website, react, etc) @tsuf239
Language design @chriscbr
VSCode extension and language server @markmcculloh
Compiler architecture, inflights, lifting @yoav-steinberg
Wing Testing Framework @tsuf239
Wing CLI @markmcculloh
Build system, dev environment, releases @markmcculloh
Library Ecosystem @chriscbr
Documentation @hasanaburayyan
SDK test suite @tsuf239
Examples @hasanaburayyan
Wing Playground @eladcon

@skyrpex skyrpex changed the title fix(simulator): lockfile race condition fix(sdk): simulator lockfile race condition during release Jul 23, 2024
@monadabot
Copy link
Contributor

monadabot commented Jul 23, 2024

Console preview environment is available at https://wing-console-pr-6935.fly.dev 🚀

Last Updated (UTC) 2024-07-23 10:26

@skyrpex skyrpex marked this pull request as ready for review July 23, 2024 10:18
@skyrpex skyrpex requested a review from a team as a code owner July 23, 2024 10:18
Copy link
Contributor

mergify bot commented Jul 23, 2024

Thanks for contributing, @skyrpex! This PR will now be added to the merge queue, or immediately merged if fix-simulator-lockfile is up-to-date with main and the queue is empty.

@mergify mergify bot merged commit c961744 into main Jul 23, 2024
15 checks passed
@mergify mergify bot deleted the fix-simulator-lockfile branch July 23, 2024 10:37
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.79.7.

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.

3 participants