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

chore: Changes for release job #1199

Merged
merged 7 commits into from
Jan 5, 2023
Merged

chore: Changes for release job #1199

merged 7 commits into from
Jan 5, 2023

Conversation

ddixit14
Copy link
Contributor

@ddixit14 ddixit14 commented Dec 27, 2022

@blakeli0 @burkedavison I've opened a new PR. This does not include any deletions.

@@ -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"
Copy link
Collaborator

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?

Copy link
Collaborator

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
Copy link
Contributor Author

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.

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'
Copy link
Collaborator

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.

@ddixit14 ddixit14 requested a review from blakeli0 January 4, 2023 20:47
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ddixit14 ddixit14 merged commit 0fb58e0 into main Jan 5, 2023
@ddixit14 ddixit14 deleted the ddixit-new branch January 5, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants