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

[Prism] Enable Java validatesRunner tests on Prism #31075

Merged

Conversation

damondouglas
Copy link
Contributor

@damondouglas damondouglas commented Apr 23, 2024

This PR addresses #28187 by creating a new new gradle project :runners:prism to allow non-Go developers to execute the Prism server. It also modifies the existing runners/portability/java/build.gradle by adding a jobEndpoint project property to set when invoking:

./gradlew :runners:portability:java:ulrLoopbackValidatesRunnerTests -PjobEndpoint=localhost:8073

After this test merges, I will update Beam Wiki for Java with a new section on how to run a pipeline using Prism and a new page on our Beam website: https://beam.apache.org/documentation/runners/prism/


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 or the workflows README to see a list of phrases to trigger workflows.

@damondouglas damondouglas marked this pull request as ready for review April 23, 2024 00:53
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@damondouglas damondouglas marked this pull request as draft April 23, 2024 16:35
@damondouglas damondouglas changed the title Create :runners:prism:java:validatesRunner task [Prism] Enable Java validatesRunner tests on Prism Apr 27, 2024
@damondouglas damondouglas marked this pull request as ready for review April 27, 2024 00:20
def jobPortFlag = "job_port"

// cmdDir is directory conventionally containing Go executables.
def cmdDir = goRootDir.resolve("cmd")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it strictly necessary to resolve each directory one step at a time?

That is, instead of just looking for modDir.resolve("go/cmd/prism") directly? Same for the buildTarget chain.

If that doesn't work, a comment explaining why we need to go one step at a time (eg. Gradle makes us do it this way), is more useful than adding comments about what each individual directory is.

Metaphorically: Documenting the forest is important when there are this many trees.

def goRootDir = modDir.resolve("go")

// jobPortFlag is Prism service's job management service port flag name.
def jobPortFlag = "job_port"
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider moving this either above or below the directory resolutions, likely just below def jobPort

@damondouglas
Copy link
Contributor Author

@lostluck This is ready.

Copy link
Contributor

@lostluck lostluck left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@damondouglas damondouglas merged commit 6995666 into apache:master May 2, 2024
24 checks passed
@damondouglas damondouglas deleted the prism-java-validatesRunner-init branch May 2, 2024 18:40
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.

2 participants