Skip to content

Transform service test suite - #27578

Merged
chamikaramj merged 1 commit into
apache:masterfrom
chamikaramj:transform_service_test_suite
Aug 16, 2023
Merged

Transform service test suite#27578
chamikaramj merged 1 commit into
apache:masterfrom
chamikaramj:transform_service_test_suite

Conversation

@chamikaramj

@chamikaramjchamikaramj commented Jul 20, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

(not ready for review yet)

@chamikaramj
chamikaramjforce-pushed the transform_service_test_suite branch from 15a6d6a to 8402eb7CompareJuly 21, 2023 23:00
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@codecov

codecovBot commented Jul 21, 2023

Copy link
Copy Markdown

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 
FlagCoverage Δ
python79.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
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@github-actions

Copy link
Copy Markdown
Contributor

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

@Abacn

Copy link
Copy Markdown
Contributor

waiting on author

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

3 similar comments
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

1 similar comment
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

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

Copy link
Copy Markdown
ContributorAuthor

R: @ahmedabu98

@github-actions

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Updated.

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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

@chamikaramjchamikaramjAug 14, 2023

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

Run Seed Job

2 similar comments
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run Seed Job

@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Run TransformService_Direct PostCommit

@chamikaramjchamikaramj left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks. PTAL.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Updated.

Copy link
Copy Markdown
ContributorAuthor

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.

@chamikaramjchamikaramjAug 14, 2023

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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).

@ahmedabu98ahmedabu98 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@chamikaramj
chamikaramjforce-pushed the transform_service_test_suite branch from 9e2f809 to a2f8bf9CompareAugust 15, 2023 23:22
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

Thanks!

@chamikaramj
chamikaramj merged commit 618a14d into apache:masterAug 16, 2023
@damccorm

Copy link
Copy Markdown
Contributor

@damccorm

Copy link
Copy Markdown
Contributor

@damccormdamccorm mentioned this pull request Aug 17, 2023
3 tasks
@chamikaramj

Copy link
Copy Markdown
ContributorAuthor

#28039 should fix the "PostCommit_TransformService_Direct/ failure

Sign up for freeto 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

@chamikaramj@Abacn@damccorm@ahmedabu98