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 dataflow python to use external containers #26383

Merged
merged 6 commits into from
Apr 24, 2023

Conversation

damccorm
Copy link
Contributor

This updates python to use containers created as part of the Beam snapshot process instead of containers built by Dataflow.

These containers are initially published to https://pantheon.corp.google.com/gcr/images/apache-beam-testing/global/beam_portability/ and then mirrored to https://pantheon.corp.google.com/gcr/images/cloud-dataflow/global/v1beta3/ (for example, for 3.8 containers are mirrored to - https://pantheon.corp.google.com/gcr/images/cloud-dataflow/global/v1beta3/beam_python3.8_sdk)


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@codecov
Copy link

codecov bot commented Apr 22, 2023

Codecov Report

Merging #26383 (37c7d58) into master (f549fd3) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #26383      +/-   ##
==========================================
- Coverage   81.12%   81.08%   -0.04%     
==========================================
  Files         469      469              
  Lines       67185    67199      +14     
==========================================
- Hits        54501    54486      -15     
- Misses      12684    12713      +29     
Flag Coverage Δ
python 81.08% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...apache_beam/runners/dataflow/internal/apiclient.py 77.02% <100.00%> (ø)
...hon/apache_beam/runners/dataflow/internal/names.py 100.00% <100.00%> (ø)

... and 14 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow V2 ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow V2 ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

@damccorm damccorm marked this pull request as ready for review April 24, 2023 12:50
@damccorm
Copy link
Contributor Author

R: @tvalentyn

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

repository=container_repo, version_suffix=version_suffix)

if is_runner_v2:
version_suffix = '%s.%s' % (sys.version_info[0:2])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: extra line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We actually need this, it inserts a . while the last one does not.

With that said, I don't think this is helpful (the difference is too subtle), so I removed version_suffix entirely and replaced it with major/minor

@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow V2 ValidatesRunner

@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

1 similar comment
@damccorm
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

@damccorm damccorm merged commit 85d4276 into apache:master Apr 24, 2023
@damccorm damccorm deleted the users/damccorm/externalContainers branch April 24, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants