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

feat: introduce GraalVM testing build script changes #1215

Closed
wants to merge 1 commit into from

Conversation

dzou
Copy link
Contributor

@dzou dzou commented Sep 16, 2021

This PR introduces the build script changes needed to introduce GraalVM testing to client library repositories. It is a follow-up to googleapis/java-shared-config#314

As discussed in googleapis/java-shared-config#314, the intention is to produce changes that are no-op's and gradually opt-in projects into GraalVM testing.

Summary of changes:

  • build.sh - Add an additional switch case graalvm which contains the sequence of commands to install GraalVM and run unit and integration tests compiled with GraalVM native image. The switch case statement is only activated if the JOB_TYPE env variable is set to graalvm in the Kokoro .cfg file. Should not affect existing code which does not set JOB_TYPE=graalvm.

  • graalvm-native.cfg - Introduces the GraalVM .cfg that defines the Kokoro presubmit job.

In order to opt-in a project into GraalVM testing, we just need to add the corresponding graalvm-native.cfg in google3 for each repository to start running the new presubmit job for the specified repository.

Additional notes: @lesv suggested implementing a dedicated GraalVM container image for testing: googleapis/testing-infra-docker#165

cc/ @lesv @Neenu1995 @suztomo

@dzou dzou requested a review from a team as a code owner September 16, 2021 22:37
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 16, 2021
@dzou dzou changed the title feat: Introduce GraalVM testing build script changes feat: introduce GraalVM testing build script changes Sep 16, 2021
Comment on lines +76 to +79
retry_with_backoff 3 10 \
curl --fail --show-error --silent --location \
https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.2.0/graalvm-ce-java11-linux-amd64-21.2.0.tar.gz \
| tar xz --directory ${graalvmDir} --strip-components=1
Copy link
Member

@suztomo suztomo Sep 17, 2021

Choose a reason for hiding this comment

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

Didn't the container get this? You also wrote:

@lesv suggested implementing a dedicated GraalVM container image for testing: googleapis/testing-infra-docker#165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants