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

Don't fail if creating a venv didn't succeed - CP of #26753 #26778

Merged
merged 1 commit into from
May 19, 2023

Conversation

tvalentyn
Copy link
Contributor

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!

@tvalentyn tvalentyn changed the title Set Dataflow container to release version. Don't fail if creating a venv didn't succeed - CP of #26753 May 19, 2023
@tvalentyn tvalentyn changed the base branch from master to release-2.48.0 May 19, 2023 00:16
@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release-2.48.0@68aa814). Click here to learn what that means.
The diff coverage is n/a.

@@                Coverage Diff                @@
##             release-2.48.0   #26778   +/-   ##
=================================================
  Coverage                  ?   72.04%           
=================================================
  Files                     ?      745           
  Lines                     ?   101204           
  Branches                  ?        0           
=================================================
  Hits                      ?    72916           
  Misses                    ?    26829           
  Partials                  ?     1459           
Flag Coverage Δ
python 81.07% <0.00%> (?)

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

@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@riteshghorse
Copy link
Contributor

Not sure why java checks were triggered on this!.
Merging!

@riteshghorse riteshghorse merged commit 3ec6e58 into apache:release-2.48.0 May 19, 2023
Copy link
Contributor

@robertwb robertwb left a 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...

@tvalentyn
Copy link
Contributor Author

tvalentyn commented May 19, 2023

@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?

@robertwb
Copy link
Contributor

robertwb commented May 19, 2023

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").

@tvalentyn
Copy link
Contributor Author

Ok, I filed #26792 to follow up.

tvalentyn added a commit that referenced this pull request May 19, 2023
…y to disable creating a venv. (#26778)"

This reverts commit 3ec6e58.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants