-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix(java): Only enable integration tests for native image testing #375
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google-cla
bot
added
the
cla: yes
This human has signed the Contributor License Agreement.
label
Dec 3, 2021
chanseokoh
approved these changes
Dec 3, 2021
This was referenced Jan 4, 2022
gcf-merge-on-green bot
pushed a commit
that referenced
this pull request
Jan 5, 2022
🤖 I have created a release \*beep\* \*boop\* --- ### [1.2.3](https://www.github.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3) (2022-01-04) ### Bug Fixes * **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-shared-config/issues/1299)) ([#376](https://www.github.com/googleapis/java-shared-config/issues/376)) ([50e7a10](https://www.github.com/googleapis/java-shared-config/commit/50e7a10a8dca0505fd831e3dd929577d2f82b011)) * **java:** Only enable integration tests for native image testing ([#375](https://www.github.com/googleapis/java-shared-config/issues/375)) ([663f421](https://www.github.com/googleapis/java-shared-config/commit/663f421de342afcba24703079f778738045d3ff2)) * **java:** Pass missing integration test flags to native image test commands ([#1309](https://www.github.com/googleapis/java-shared-config/issues/1309)) ([#383](https://www.github.com/googleapis/java-shared-config/issues/383)) ([b17b44e](https://www.github.com/googleapis/java-shared-config/commit/b17b44e37fe44ba61616417189c6b2271f3a4d18)) ### Dependencies * update auto-value-annotation.version to v1.9 ([#378](https://www.github.com/googleapis/java-shared-config/issues/378)) ([5e1cd0e](https://www.github.com/googleapis/java-shared-config/commit/5e1cd0e39910548ec4eb6639da979c3b66411503)) * update dependency com.google.googlejavaformat:google-java-format to v1.13.0 ([#361](https://www.github.com/googleapis/java-shared-config/issues/361)) ([095d60a](https://www.github.com/googleapis/java-shared-config/commit/095d60a061a574dcf84b9fcf26dff48617a306b1)) * update dependency com.puppycrawl.tools:checkstyle to v9.2 ([#366](https://www.github.com/googleapis/java-shared-config/issues/366)) ([061df67](https://www.github.com/googleapis/java-shared-config/commit/061df676d8b2fef5bbb0ce9661d3c96fcb57e73a)) * update dependency com.puppycrawl.tools:checkstyle to v9.2.1 ([#382](https://www.github.com/googleapis/java-shared-config/issues/382)) ([1a182c5](https://www.github.com/googleapis/java-shared-config/commit/1a182c52e7c5431875296940d68c9bdfcf74be00)) * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.9 ([#379](https://www.github.com/googleapis/java-shared-config/issues/379)) ([0a2b05f](https://www.github.com/googleapis/java-shared-config/commit/0a2b05ff7f649331efbc4dd540705da10691a2f1)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.8 ([#372](https://www.github.com/googleapis/java-shared-config/issues/372)) ([6fe795e](https://www.github.com/googleapis/java-shared-config/commit/6fe795ede39575656ef1609bf7aac28c1d170976)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.9 ([#380](https://www.github.com/googleapis/java-shared-config/issues/380)) ([f2efad5](https://www.github.com/googleapis/java-shared-config/commit/f2efad585b431fe186c7900a8171a999c689405b)) * update dependency org.junit.vintage:junit-vintage-engine to v5.8.2 ([#365](https://www.github.com/googleapis/java-shared-config/issues/365)) ([604058d](https://www.github.com/googleapis/java-shared-config/commit/604058d52dc962db9a506762926576542687285e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modifies shared-config to only run integration tests during native image testing.
Notes:
This PR removes the line
--features=com.google.cloud.nativeimage.features.ProtobufMessageFeature
which will register all proto classes for reflection (i.e.CreateSecretRequest
,DeleteSecretRequest
, etc.). This is typically needed in unit tests when sometimes tests will setup some mock responses using method calls likeAny.pack(...)
which invokes reflection on the proto class that is specified. However, integration tests no longer need this. It is useful to remove this because it will make the native build run a few minutes faster.This PR also enables
<extensions>true</extensions>
for thenative-maven-plugin
. This is a required setting for using the plugin after version 0.9.6.