Skip to content

Conversation

@chamikaramj
Copy link
Contributor

@chamikaramj chamikaramj commented Jul 20, 2023

Adds a test suite for the Docker Composed based Transform Service.

Passing run: https://ci-beam.apache.org/job/beam_PostCommit_TransformService_Direct_PR/44/

Currently only includes Python BigTableIO integration tests, but we can add more tests to the suite in the future.

This addresses #27941.


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.

@github-actions
Copy link
Contributor

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

R: @jrmccluskey for label python.
R: @Abacn 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).

@chamikaramj chamikaramj marked this pull request as draft July 20, 2023 18:46
@chamikaramj
Copy link
Contributor Author

(not ready for review yet)

@chamikaramj chamikaramj force-pushed the transform_service_test_suite branch from 15a6d6a to 8402eb7 Compare July 21, 2023 23:00
@chamikaramj
Copy link
Contributor Author

Run Seed Job

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #27578 (9e2f809) into master (3d02b3b) will increase coverage by 0.33%.
Report is 79 commits behind head on master.
The diff coverage is n/a.

❗ Current head 9e2f809 differs from pull request most recent head a2f8bf9. Consider uploading reports for the commit a2f8bf9 to get more accurate results

@@            Coverage Diff             @@
##           master   #27578      +/-   ##
==========================================
+ Coverage   70.59%   70.92%   +0.33%     
==========================================
  Files         857      861       +4     
  Lines      103944   105083    +1139     
==========================================
+ Hits        73375    74529    +1154     
+ Misses      29004    28989      -15     
  Partials     1565     1565              
Flag Coverage Δ
python 79.91% <ø> (+0.35%) ⬆️

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

see 34 files with indirect coverage changes

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

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @jrmccluskey @Abacn

@Abacn
Copy link
Contributor

Abacn commented Jul 30, 2023

waiting on author

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

3 similar comments
@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

1 similar comment
@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

@chamikaramj chamikaramj marked this pull request as ready for review August 9, 2023 20:52
@chamikaramj
Copy link
Contributor Author

R: @ahmedabu98

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to embed the value into this string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI tests can run faster if we use Python wheels
@Abacn helped me with that here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great. Added the switch for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment here that these tests are run with Py38?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, these test can run with all Python versions. Updated.

(JavaUsingPython will be restricted to Python 3.8 I'll mention that later when we add such tests).

Copy link
Contributor

Choose a reason for hiding this comment

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

I may be missing something but how does this test suite make sure to build the necessary jars before running? For example in this test we need :sdks:java:io:google-cloud-platform:expansion-service

Copy link
Contributor Author

@chamikaramj chamikaramj Aug 14, 2023

Choose a reason for hiding this comment

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

These jars are included in the expansion service container and are built as a part of container building in the ":sdks:java:expansion-service:container:docker" dependency.

@chamikaramj
Copy link
Contributor Author

Run Seed Job

2 similar comments
@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run Seed Job

@chamikaramj
Copy link
Contributor Author

Run TransformService_Direct PostCommit

Copy link
Contributor Author

@chamikaramj chamikaramj left a comment

Choose a reason for hiding this comment

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

Thanks. PTAL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great. Added the switch for that.

Copy link
Contributor Author

@chamikaramj chamikaramj Aug 14, 2023

Choose a reason for hiding this comment

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

These jars are included in the expansion service container and are built as a part of container building in the ":sdks:java:expansion-service:container:docker" dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, these test can run with all Python versions. Updated.

(JavaUsingPython will be restricted to Python 3.8 I'll mention that later when we add such tests).

Copy link
Contributor

@ahmedabu98 ahmedabu98 left a comment

Choose a reason for hiding this comment

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

Just one comment. After that, this LGTM!

Most recent test pass (before spotless fix commit): https://ci-beam.apache.org/job/beam_PostCommit_TransformService_Direct_PR/44/

Comment on lines +2800 to +2807
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to also depend on task initializeForDataflowJob to set up wheels when we eventually add dataflow tests:

task initializeForDataflowJob{

if (usesDataflowRunner) {
  dependsOn ":sdks:python:test-suites:dataflow:py${project.ext.pythonVersion.replace('.', '')}:initializeForDataflowJob"
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@chamikaramj chamikaramj force-pushed the transform_service_test_suite branch from 9e2f809 to a2f8bf9 Compare August 15, 2023 23:22
@chamikaramj
Copy link
Contributor Author

Thanks!

@chamikaramj chamikaramj merged commit 618a14d into apache:master Aug 16, 2023
@damccorm
Copy link
Contributor

@damccorm
Copy link
Contributor

@damccorm damccorm mentioned this pull request Aug 17, 2023
3 tasks
@chamikaramj
Copy link
Contributor Author

#28039 should fix the "PostCommit_TransformService_Direct/ failure

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