-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Updates the Transform Service to accept Python extra packages through the Java API #28783
Updates the Transform Service to accept Python extra packages through the Java API #28783
Conversation
R: @Abacn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
eb84ec1
to
479b15f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the change looks good - noticed that the unit test is not get exercised
...er/src/main/java/org/apache/beam/sdk/transformservice/launcher/TransformServiceLauncher.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/beam/sdk/transformservice/launcher/TransformServiceLauncherTest.java
Show resolved
Hide resolved
...a/transform-service/src/main/java/org/apache/beam/sdk/transformservice/ExpansionService.java
Outdated
Show resolved
Hide resolved
try { | ||
String url = endpoint.getUrl(); | ||
int portIndex = url.lastIndexOf(":"); | ||
int port = portIndex > 0 ? Integer.parseInt(url.substring(portIndex + 1)) : 80; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is default port 80 documented somewhere / rely on some other components ? If I remember correctly the port for expansion service is dynamically signed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM. Have you been able to check this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Updated.
Codecov Report
@@ Coverage Diff @@
## master #28783 +/- ##
==========================================
- Coverage 72.21% 72.15% -0.07%
==========================================
Files 684 686 +2
Lines 101241 101562 +321
==========================================
+ Hits 73116 73281 +165
- Misses 26546 26702 +156
Partials 1579 1579
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 28 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
6300a4d
to
59238a3
Compare
59238a3
to
dcfe3d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. PTAL.
...a/transform-service/src/main/java/org/apache/beam/sdk/transformservice/ExpansionService.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/apache/beam/sdk/transformservice/launcher/TransformServiceLauncher.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/beam/sdk/transformservice/launcher/TransformServiceLauncherTest.java
Show resolved
Hide resolved
Run Java PreCommit |
Run Java_GCP_IO_Direct PreCommit |
Run Python_Transforms PreCommit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM
before merge, check that github action jobs are also completed - #28909
Run Java PreCommit |
Run TransformService_Direct PostCommit |
Run Portable_Python PreCommit |
Run Python_PVR_Flink PreCommit |
Thanks. All tests are passing. |
Also performs following fixes.
Issue is #26833.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
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, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.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)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.