-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
What version of gRPC-Java are you using?
incremental build from 0376de1 to 1f90e0e but happened before also
What is your environment?
ubuntu-18.04, openJDK-11
What did you expect to see?
build should succeed cleanly
What did you see instead?
$ git fetch github
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 40 (delta 15), reused 25 (delta 8), pack-reused 0
Unpacking objects: 100% (40/40), done.
From https://github.com/grpc/grpc-java
0376de15b..1f90e0e28 master -> github/master
$ git merge --ff-only
Updating 0376de15b..1f90e0e28
Fast-forward
core/src/main/java/io/grpc/util/CertificateUtils.java | 18 +++++++--
core/src/test/java/io/grpc/util/CertificateUtilsTest.java | 10 +++++
testing/src/main/resources/certs/README | 5 +++
testing/src/main/resources/certs/ecdsa.key | 5 +++
xds/src/main/java/io/grpc/xds/Bootstrapper.java | 93 +++++++++++++++++++++++++++++++++++++++++++-
xds/src/main/java/io/grpc/xds/BootstrapperImpl.java | 135 +++++++++++++++++++++++++++++++++++++++++++++-------------------
xds/src/test/java/io/grpc/xds/BootstrapperImplTest.java | 96 +++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 318 insertions(+), 44 deletions(-)
create mode 100644 testing/src/main/resources/certs/ecdsa.key
$ ./gradlew -PskipAndroid=true -PskipCodegen=true build
Starting a Gradle Daemon (subsequent builds will be faster)
*** Skipping the build of codegen and compilation of proto files because skipCodegen=true
* Skipping the build of Android projects because skipAndroid=true
> Task :grpc-core:compileJava FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/home/morgwai/projects/upstreamProjects/grpc-java/core/build.gradle' line: 68
* What went wrong:
Execution failed for task ':grpc-core:compileJava'.
> assert i != -1
| |
| false
-1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
9 actionable tasks: 5 executed, 4 up-to-date
simply repeating the build command made it succeed:
$ ./gradlew -PskipAndroid=true -PskipCodegen=true build
*** Skipping the build of codegen and compilation of proto files because skipCodegen=true
* Skipping the build of Android projects because skipAndroid=true
> Task :grpc-xds:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :grpc-interop-testing:test
[jetty-alpn-agent][ warn] Could not find a matching alpn-boot jar for Java version: 11.0.11
> Task :grpc-netty:test
[jetty-alpn-agent][ warn] Could not find a matching alpn-boot jar for Java version: 11.0.11
BUILD SUCCESSFUL in 6m 31s
324 actionable tasks: 139 executed, 185 up-to-date
Steps to reproduce the bug
very hard to reproduce reliably: happened to me like 2 times across about 30 builds during last 2 months. As far as I remember the previous time it also happened during an incremental build, but not 100% sure.
Reactions are currently unavailable