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

Update venv creation commands in release scripts. #16381

Merged
merged 2 commits into from
Dec 29, 2021

Conversation

tvalentyn
Copy link
Contributor

@tvalentyn tvalentyn commented Dec 29, 2021

Changes:

  • Prepend venv dir path with ./ where applicable when sourcing activation script (sourcing silently failed for me on some Ubuntu versions without this)
  • Install wheel when we create venv (necessary follow up for [BEAM-13183] [BEAM-8152] Use venv instead of virtualenv to create Python environments in Gradle scripts. #15819), otherwise Beam fails to install from sources. BEAM-8954 would be a cleaner solution.)
  • Misc wording updates & corrections in release guide.
  • Driveby fixes for similar changes outside of release scripts.
  • Another drive-by fix: Retry pip installs in scripts that might be running periodically on Jenkins to reduce flakiness.

@tvalentyn tvalentyn force-pushed the release_script_fixes branch from 9567fcf to efe3f0c Compare December 29, 2021 02:06
@tvalentyn tvalentyn force-pushed the release_script_fixes branch from efe3f0c to 8289d42 Compare December 29, 2021 02:13
```

- Install, create and activate your [venv](https://docs.python.org/3/library/venv.html).
* Install, create and activate your [venv](https://docs.python.org/3/library/venv.html).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just reordered steps: create venv first, then install jupyterlab.
cc: @kevingg

@tvalentyn
Copy link
Contributor Author

R: @ibzib or @emilymye

@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #16381 (8289d42) into master (b33bebc) will increase coverage by 8.99%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16381      +/-   ##
==========================================
+ Coverage   74.63%   83.63%   +8.99%     
==========================================
  Files         647      450     -197     
  Lines       81340    61817   -19523     
==========================================
- Hits        60710    51698    -9012     
+ Misses      19659    10119    -9540     
+ Partials      971        0     -971     
Impacted Files Coverage Δ
sdks/python/apache_beam/io/source_test_utils.py 88.47% <0.00%> (-1.39%) ⬇️
...ks/python/apache_beam/runners/worker/sdk_worker.py 88.90% <0.00%> (-0.64%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.14% <0.00%> (-0.13%) ⬇️
sdks/go/pkg/beam/runner.go
sdks/go/pkg/beam/core/typex/fulltype.go
sdks/go/pkg/beam/core/graph/coder/bool.go
...o/pkg/beam/io/rtrackers/offsetrange/offsetrange.go
sdks/go/pkg/beam/runners/direct/gbk.go
sdks/go/pkg/beam/core/graph/scope.go
sdks/go/pkg/beam/core/runtime/exec/window.go
... and 195 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b33bebc...8289d42. Read the comment docs.

@tvalentyn tvalentyn changed the title Update venv creation in release scripts. Update venv creation commands in release scripts. Dec 29, 2021
@tvalentyn tvalentyn merged commit a7f73d3 into apache:master Dec 29, 2021
@tvalentyn tvalentyn deleted the release_script_fixes branch December 29, 2021 20:33
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.

2 participants