-
Notifications
You must be signed in to change notification settings - Fork 584
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(python): Fix uv install not exiting on fail #4992
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Specifically with nmslib installation was hanging without any output, even tho library build was failed. It can be monitored with strace or catp.
…/windmill into fix-py-non-exiting-install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to c912150 in 17 seconds
More details
- Looked at
85
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. backend/windmill-worker/src/python_executor.rs:1249
- Draft comment:
Removing the '-q' flag increases verbosity. If the intent was to reduce verbosity, consider keeping the '-q' flag. - Reason this comment was not posted:
Confidence changes required:50%
The PR removes the '-q' flag from the command arguments in thespawn_uv_install
function. This change might affect the verbosity of the command output, which could be intentional for debugging purposes. However, if the intent was to reduce verbosity, this change should be reconsidered.
2. backend/windmill-worker/src/python_executor.rs:1785
- Draft comment:
Reading stderr before waiting for the process prevents potential deadlocks. This is a good practice to ensure the process exits correctly. - Reason this comment was not posted:
Confidence changes required:0%
The PR modifies the handling of stderr by reading it into a buffer before waiting for the process to exit. This change ensures that the process exits correctly by preventing a potential deadlock if the stderr buffer fills up. This is a good practice to avoid blocking issues.
Workflow ID: wflow_DsJXpRYYU5iNiXUJ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Fixes
uv
installation process not exiting on failure by ensuring stderr is read before process exit inpython_executor.rs
.uv
installation process does not exit on failure by ensuring stderr is read before process exit inhandle_python_reqs()
.-q
flag fromspawn_uv_install()
command arguments.stderr_buf
and logs it ifuv
installation fails.uv
installation process exits unsuccessfully.This description was created by for c912150. It will automatically update as commits are pushed.