| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Your PR has attempted to merge for 3 hours. Please check that all required checks have passed, you have an automerge label, and that all your reviewers have approved the PR |
Sorry, something went wrong.
|
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
Sorry, something went wrong.
Java 11@chingor13 @stephaniewang526 @sethvargo PTAL - same problem as secrets manager ------------------------------------------------------------ - testing kms ------------------------------------------------------------ [ERROR] COMPILATION ERROR : [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveLabels.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveRotation.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyUpdateLabels.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/EnableKeyVersion.java:[25,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/DisableKeyVersion.java:[25,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyAddRotation.java:[29,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveLabels.java:[53,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.UpdateKeyRemoveLabels [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveRotation.java:[58,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.UpdateKeyRemoveRotation [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyUpdateLabels.java:[64,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.UpdateKeyUpdateLabels [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/EnableKeyVersion.java:[62,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.EnableKeyVersion [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/DisableKeyVersion.java:[62,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.DisableKeyVersion [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyAddRotation.java:[76,29] cannot find symbol symbol: variable FieldMaskUtil location: class kms.UpdateKeyAddRotation [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project kms-samples: Compilation failure: Compilation failure: [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveLabels.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveRotation.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyUpdateLabels.java:[24,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/EnableKeyVersion.java:[25,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/DisableKeyVersion.java:[25,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyAddRotation.java:[29,32] package com.google.protobuf.util does not exist [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveLabels.java:[53,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.UpdateKeyRemoveLabels [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyRemoveRotation.java:[58,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.UpdateKeyRemoveRotation [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyUpdateLabels.java:[64,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.UpdateKeyUpdateLabels [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/EnableKeyVersion.java:[62,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.EnableKeyVersion [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/DisableKeyVersion.java:[62,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.DisableKeyVersion [ERROR] /tmpfs/src/github/java-docs-samples/kms/src/main/java/kms/UpdateKeyAddRotation.java:[76,29] cannot find symbol [ERROR] symbol: variable FieldMaskUtil [ERROR] location: class kms.UpdateKeyAddRotation [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Testing failed: Maven returned a non-zero exit code. |
Sorry, something went wrong.
|
@lesv Is that class deprecated or removed? |
Sorry, something went wrong.
|
@lesv Is that class deprecated or removed? |
Sorry, something went wrong.
Upon checking java-kms code, FieldMaskUtil class has been removed from the client -- the samples need to be rewritten/removed. |
Sorry, something went wrong.
|
@stephaniewang526 that class is used everywhere across all the client libraries. Why was it removed? It's also the only reasonable way to build a field mask as far as I know. |
Sorry, something went wrong.
|
@sethvargo actually I'm checking and seeing that FieldMaskUtil is still in protobuf-java-util jar and java-kms is pulling that artifact in. let's re-run the tests again to see if it picks it up. |
Sorry, something went wrong.
|
This keeps failing and has been run 3 times now. |
Sorry, something went wrong.
|
Since this is affecting multiple packages, I'm relatively confident it's not unique to the java or secret manager samples, and is likely an indication of a larger, upstream breaking change. |
Sorry, something went wrong.
|
This is happening because protobuf-java-utils was changed from a compile dependency to runtime dependency (it's not used at compile time by google-cloud-kms). The flatten-maven-plugin likely has something to do with this (@stephaniewang526). In any case, these sample are using protobuf-java-utils directly and thus should be explicitly declaring that dependency. |
Sorry, something went wrong.
Regardless, this is a breaking change and should be reverted. |
Sorry, something went wrong.
|
It's not a breaking change as that class is not part of the google-cloud-kms library and is not necessary to run the library. Removing an unnecessary dependency is actually a bugfix. google-cloud-kms should not force applications to install libraries that are not necessary. The reason it looks like a breaking change is that this sample is relying on a transitive dependency when it should be declared explicitly. |
Sorry, something went wrong.
|
At t0, it worked. At t1, it's broken. Nothing in this repository has changed between t0 and t1. That's definitionally a breaking change. I'm not an expert in the Java ecosystem, but what caused the dependency to be dropped? |
Sorry, something went wrong.
|
As a user, previously I added the following to my pom.xml: <dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-kms</artifactId>
<version>1.38.1</version>
</dependency>And I had access to the FieldMaskUtil class. Upon upgrading to 1.39.0 (a minor increase), I no longer have access to that class. This, to me, is a breaking change. All our customers now have to update their pom.xml files to add this additional dependency. As far as I know, this was not communicated broadly, and this feels very inappropriate in a minor version bump. |
Sorry, something went wrong.
|
@chingor13 If you remove something from the library, you should bump the major version. |
Sorry, something went wrong.
|
It doesn't seem anything was removed from the library. This sample was depending on transitive dependencies, which is always a bad idea. In google3 this isn't allowed at all, and blaze would fail the build. Maven isn't quite so strict, though there might be an enforcer rule that can check this. |
Sorry, something went wrong.
|
protobuf-java-util was brought in transitively through gax-grpc before, that's why samples did not have to declare directly. [INFO] | +- com.google.api:gax-grpc:jar:1.56.0:compile [INFO] | | +- com.google.auth:google-auth-library-credentials:jar:0.20.0:compile [INFO] | | +- io.grpc:grpc-netty-shaded:jar:1.28.1:compile [INFO] | | | \- io.grpc:grpc-core:jar:1.28.1:compile (version selected from constraint [1.28.1,1.28.1]) [INFO] | | | +- com.google.code.gson:gson:jar:2.8.6:compile [INFO] | | | +- com.google.android:annotations:jar:4.1.1.4:compile [INFO] | | | \- io.perfmark:perfmark-api:jar:0.19.0:compile [INFO] | | \- io.grpc:grpc-alts:jar:1.28.1:compile [INFO] | | +- io.grpc:grpc-grpclb:jar:1.28.1:compile [INFO] | | | \- com.google.protobuf:protobuf-java-util:jar:3.11.0:compile Since samples/ is using it, it should directly declare it as compile scope dep. No breaking change was made on the client library side -- this exposes a problem on the consuming side. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR contains the following updates:
Release Notes
googleapis/java-kmsv1.39.0
Compare Source
Features
Bug Fixes
Dependencies
Documentation
1.38.1 (2020-04-20)
Dependencies
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.