-
Notifications
You must be signed in to change notification settings - Fork 53
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
chore: Changes for release job #1199
Conversation
@@ -9,7 +9,7 @@ build_file: "gapic-generator-java/.kokoro/trampoline.sh" | |||
# Configure the docker image for kokoro-trampoline. | |||
env_vars: { | |||
key: "TRAMPOLINE_IMAGE" | |||
value: "gcr.io/cloud-devrel-kokoro-resources/java8" | |||
value: "gcr.io/cloud-devrel-kokoro-resources/java11" |
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.
Are we going to have a different release image for gapic-generator-java
submodule?
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.
Decided that we are going to use a single Java11 image. But we should add release flag to gapic-generator-java or the parent if possible, to guarantee the compatibility of Java 8.
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 8 | ||
distribution: temurin | ||
cache: maven | ||
- run: java -version | ||
- name: Run test only for gapic-generator-java using Java 8 | ||
- name: Run tests in Java 8 with the source compiled in Java 11 for gapic-generator-java |
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.
@blakeli0 @burkedavison @meltsufin This test will now ensure that gapic-generator-java submodule is compiled with Java 11 and the sources+binaries generated are Java 8 compatible. Since we are checking this here only, there shouldn't be a need to handle this in the release job.
Am I thinking clearly here?
@suztomo ensured this kind of compatibility in gax (https://github.com/googleapis/gax-java/blob/main/.kokoro/build.sh) when it was a split-repo.
.github/workflows/ci-maven.yaml
Outdated
mvn -B -ntp verify --projects 'gapic-generator-java' \ | ||
-Dcheckstyle.skip -Dfmt.skip | ||
mvn -V -B -ntp surefire:test --projects 'gapic-generator-java' | ||
mvn -B -ntp clirr:check --projects 'gapic-generator-java' |
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.
We can remove this clirr check for gapic-generator-java
. We should add clirr checks for all other modules.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@blakeli0 @burkedavison I've opened a new PR. This does not include any deletions.