-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Don't fail if creating a venv didn't succeed - CP of #26753 #26778
Conversation
…able creating a venv.
Codecov Report
@@ Coverage Diff @@
## release-2.48.0 #26778 +/- ##
=================================================
Coverage ? 72.04%
=================================================
Files ? 745
Lines ? 101204
Branches ? 0
=================================================
Hits ? 72916
Misses ? 26829
Partials ? 1459
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
Not sure why java checks were triggered on this!. |
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.
It doesn't seem very safe to just fall back to the default environment if the virtual environment creation failed...
@robertwb Do you have a specific failure mode in mind? I could change the check to fall back on default environment if venv module is not available, instead of on any failure. Would that address your concerns? |
Presumably the reason venv was added was to solve some problem (maybe mixing up of dependencies or something like that). Just falling back to not using it would cause it to (non-determanistically) exhibit the same issues that adding this was trying to solve. Some alternatives would be to make it explicit whether venv should be used (either opt-in or opt-out) or make venv a requirement for Beam (if the user pre-installs beam) or at the very least give a clear error (e.g. "venv is required but not installed in this custom container"). |
Ok, I filed #26792 to follow up. |
Cherrypick #26753 to the release branch.
This removes a usability regression that affects users of custom containers, particularly those using custom Ubuntu-based images, such as off-the-shelf GPU images for RunInference transform.
Asking to CP to the release branch if still possible. Thanks!