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

Fix Vertex AI postcommit suite to run the tests only once. #28571

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

tvalentyn
Copy link
Contributor

Don't reuse it_postcommit tag in vertex ai tests so that we don't run it twice.

@tvalentyn
Copy link
Contributor Author

R: @jrmccluskey

@tvalentyn
Copy link
Contributor Author

Run Python 3.8 PostCommit

@github-actions
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #28571 (0c37a96) into master (18ce60c) will decrease coverage by 0.03%.
Report is 26 commits behind head on master.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #28571      +/-   ##
==========================================
- Coverage   72.22%   72.20%   -0.03%     
==========================================
  Files         684      684              
  Lines      101070   101131      +61     
==========================================
+ Hits        72999    73018      +19     
- Misses      26492    26534      +42     
  Partials     1579     1579              
Flag Coverage Δ
python 82.75% <ø> (-0.05%) ⬇️

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

see 9 files with indirect coverage changes

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

@jrmccluskey
Copy link
Contributor

Was it running twice? And does this mean you're going to update all of the other IT tests that double-up on markers?

@tvalentyn
Copy link
Contributor Author

Run Python 3.8 PostCommit

@tvalentyn
Copy link
Contributor Author

@tvalentyn
Copy link
Contributor Author

@tvalentyn
Copy link
Contributor Author

there is definitely something to clean up. we can't apply the same change i do here to some of the other postcommits (e.g. pytorch) without more changes, but we should restructure these configs to create less entropy going forward. i can take a closer look later, this is a targeted fix to unblock broken postcommit.

@tvalentyn
Copy link
Contributor Author

filed: #28578

@tvalentyn tvalentyn changed the title Change markers. Fix Vertext AI postcommit suite to run the tests only once. Sep 21, 2023
@damccorm
Copy link
Contributor

there is definitely something to clean up. we can't apply the same change i do here to some of the other postcommits (e.g. pytorch) without more changes, but we should restructure these configs to create less entropy going forward. i can take a closer look later, this is a targeted fix to unblock broken postcommit.

+1 - I think this is done wrong all over the place. I know personally I did not understand how these tags worked correctly, so I'm sure I've contributed :(

@tvalentyn
Copy link
Contributor Author

looks like beam release cut has affected the tests, rebasing.

@tvalentyn
Copy link
Contributor Author

Run Python 3.8 PostCommit

@tvalentyn
Copy link
Contributor Author

       RuntimeError: Pipeline construction environment and pipeline runtime environment are not compatible. If you use a custom container image, check that the Python interpreter minor version and the Apache Beam version in your image match the versions used at pipeline construction time. Submission environment: beam:version:sdk_base:apache/beam_python3.8_sdk:2.52.0.dev. Runtime environment: beam:version:sdk_base:apache/beam_python3.8_sdk:2.51.0.dev.

New error:

I wonder if we somehow build the from a different commit than we test?

@tvalentyn tvalentyn changed the title Fix Vertext AI postcommit suite to run the tests only once. Fix Vertex AI postcommit suite to run the tests only once. Sep 25, 2023
@damccorm
Copy link
Contributor

       RuntimeError: Pipeline construction environment and pipeline runtime environment are not compatible. If you use a custom container image, check that the Python interpreter minor version and the Apache Beam version in your image match the versions used at pipeline construction time. Submission environment: beam:version:sdk_base:apache/beam_python3.8_sdk:2.52.0.dev. Runtime environment: beam:version:sdk_base:apache/beam_python3.8_sdk:2.51.0.dev.

New error:

I wonder if we somehow build the from a different commit than we test?

I think that might mean that we haven't published the new snapshot containers?

I'm pretty sure we're not building/testing from different commits since its all just one big gradle task

@tvalentyn
Copy link
Contributor Author

tvalentyn commented Sep 25, 2023

The error could happen if tests don't specify --sdk_location.

@tvalentyn
Copy link
Contributor Author

Or this flag is somehow not respected.

@tvalentyn
Copy link
Contributor Author

I do see --sdk_location /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python38_PR/src/sdks/python/build/apache_beam-2.52.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl in Dataflow job page: https://pantheon.corp.google.com/dataflow/jobs/us-central1/2023-09-21_13_26_42-12639981593393828172

@tvalentyn
Copy link
Contributor Author

ERROR 2023-09-21T20:30:25.653406673Z Processing /var/opt/google/staged/apache_beam-2.52.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ERROR 2023-09-21T20:30:25.653431342Z ERROR: Wheel 'apache-beam' located at /var/opt/google/staged/apache_beam-2.52.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is invalid.
DEBUG 2023-09-21T20:30:25.653442932Z Could not install Apache Beam SDK from a wheel: exit status 1, proceeding to install SDK from source tarball.

@tvalentyn
Copy link
Contributor Author

will look further in #28653

@tvalentyn
Copy link
Contributor Author

Run Python 3.8 PostCommit

@tvalentyn
Copy link
Contributor Author

Run Python PreCommit

@tvalentyn tvalentyn merged commit 27f589e into apache:master Sep 26, 2023
79 checks passed
@tvalentyn tvalentyn deleted the tf_vertex_ai branch September 26, 2023 00:17
kennknowles added a commit that referenced this pull request Sep 26, 2023
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.

3 participants