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

Add ValidatesContainer tests with installing release candidates(RCs) #26156

Merged
merged 21 commits into from
Apr 15, 2023

Conversation

AnandInguva
Copy link
Contributor

@AnandInguva AnandInguva commented Apr 6, 2023

Part 2 of #25668

Adds a Jenkins suite that run ValidatesContainer suite with pre-released Beam's dependencies. This could help catch regressions/breaking changes sooner than later.


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.

@AnandInguva AnandInguva marked this pull request as ready for review April 6, 2023 20:09
@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @pabloem for label python.
R: @damccorm for label build.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Merging #26156 (fc90916) into master (e0e1398) will increase coverage by 0.14%.
The diff coverage is n/a.

❗ Current head fc90916 differs from pull request most recent head 136e41b. Consider uploading reports for the commit 136e41b to get more accurate results

@@            Coverage Diff             @@
##           master   #26156      +/-   ##
==========================================
+ Coverage   71.21%   71.36%   +0.14%     
==========================================
  Files         787      783       -4     
  Lines      103330   102982     -348     
==========================================
- Hits        73588    73488     -100     
+ Misses      28246    28011     -235     
+ Partials     1496     1483      -13     
Flag Coverage Δ
python 79.85% <ø> (+<0.01%) ⬆️

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

see 18 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

damccorm commented Apr 6, 2023

Run Python RC Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

AnandInguva commented Apr 6, 2023

Looks like there are other failures due to this PR. I will solve them. Changing this PR to draft until then.

Update: Fix is easy. Will commit once the Run Python RC Dataflow ValidatesContainer is completed.

@AnandInguva AnandInguva marked this pull request as draft April 6, 2023 21:25
@AnandInguva
Copy link
Contributor Author

For reference: Successful build: https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont_with_RC_PR/1/

@AnandInguva AnandInguva marked this pull request as ready for review April 6, 2023 22:18
@AnandInguva
Copy link
Contributor Author

cc: @tvalentyn

@Abacn
Copy link
Contributor

Abacn commented Apr 7, 2023

I see failed seedjob on this PR: https://ci-beam.apache.org/job/beam_SeedJob/11381/console with "ERROR: Couldn't find any revision to build." may need to rebase the latest master onto it to run, probably due to a force push on master earlier today?

@@ -70,9 +70,11 @@ RUN ccache --set-config=sloppiness=file_macro && ccache --set-config=hash_dir=fa
####
# Install Apache Beam SDK. Use --no-deps and pip check to verify that all
# necessary dependencies are specified in base_image_requirements.txt.
# use ARG pip_extra_options to install release candidates(RCs) of Beam'
Copy link
Contributor

Choose a reason for hiding this comment

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

again, you are making an assumption that this file can't reason about. one may supply pip extra options for any purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. previously the purpose was to add only --pre but since we can add any flag to pip installation, i changed the wording.

@AnandInguva
Copy link
Contributor Author

retest this please

@AnandInguva
Copy link
Contributor Author

Run Python RC Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

the container is built by using RCs.
image

@AnandInguva AnandInguva marked this pull request as ready for review April 13, 2023 21:44
@AnandInguva
Copy link
Contributor Author

Run Python RC Dataflow ValidatesContainer

@AnandInguva
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

project.ext.pythonVersion = project.hasProperty('pythonVersion') ?
project.pythonVersion : '3.8'
project.pythonVersion : '3.11'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this change is non-trivial and need some changes. I will make a separate PR for this

@AnandInguva
Copy link
Contributor Author

Run Python Dataflow ValidatesContainer

sdks/python/container/common.gradle Outdated Show resolved Hide resolved
sdks/python/container/common.gradle Outdated Show resolved Hide resolved
@AnandInguva
Copy link
Contributor Author

Run PythonDocker PreCommit

@github-actions github-actions bot added build and removed build labels Apr 13, 2023
@AnandInguva
Copy link
Contributor Author

AnandInguva commented Apr 14, 2023

@tvalentyn Can we squash/merge this?

@tvalentyn tvalentyn merged commit e86486d into apache:master Apr 15, 2023
@tvalentyn
Copy link
Contributor

nice. Thanks!

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.

4 participants