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

Quarkus project compilation fails when && is present in path - e.g. 'RHEL8 && large' #10214

Closed
rsvoboda opened this issue Jun 24, 2020 · 3 comments · Fixed by #10886
Closed
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@rsvoboda
Copy link
Member

Quarkus project compilation fails when && is present in path - e.g. 'RHEL8 && large'
I have Jenkins matrix job running on RHEL 8 slaves with large size and Quarkus compilation fails.

Reproducer:

mkdir 'RHEL8 && large'
cd 'RHEL8 && large'
git clone [email protected]:quarkusio/quarkus.git
cd quarkus
mvn clean install -DskipTests -DskipITs -DskipDocs

Quite interesting observation is that the build passes when only the extensions/grpc/runtime module is picked, but it fails when extensions/grpc or full build is executed

mvn clean install -DskipTests -DskipITs -DskipDocs -f extensions/grpc/runtime => PASS
mvn clean install -DskipTests -DskipITs -DskipDocs -f extensions/grpc => FAIL

Details:

[INFO] ----------------------< io.quarkus:quarkus-grpc >-----------------------
[INFO] Building Quarkus - gRPC - Runtime 999-SNAPSHOT                 [278/646]
[INFO] --------------------------------[ jar ]---------------------------------
...
[INFO] --- protobuf-maven-plugin:0.6.1:compile (compile) @ quarkus-grpc ---
[INFO] Building protoc plugin: quarkus-grpc-protoc-plugin
[INFO] Compiling 2 proto file(s) to /Users/rsvoboda/tmp/RHEL8 && large/quarkus/extensions/grpc/runtime/target/generated-sources/protobuf/java
[ERROR] PROTOC FAILED: Error: Could not find or load main class &&
Caused by: java.lang.ClassNotFoundException: &&
--quarkus-grpc-protoc-plugin_out: protoc-gen-quarkus-grpc-protoc-plugin: Plugin failed with status code 1.

[ERROR] /Users/rsvoboda/tmp/RHEL8 && large/quarkus/extensions/grpc/runtime/src/main/proto/health/v1/health.proto [0:0]: Error: Could not find or load main class &&
Caused by: java.lang.ClassNotFoundException: &&
--quarkus-grpc-protoc-plugin_out: protoc-gen-quarkus-grpc-protoc-plugin: Plugin failed with status code 1.

[ERROR] /Users/rsvoboda/tmp/RHEL8 && large/quarkus/extensions/grpc/runtime/src/main/proto/reflection/v1alpha/reflection.proto [0:0]: Error: Could not find or load main class &&
Caused by: java.lang.ClassNotFoundException: &&
--quarkus-grpc-protoc-plugin_out: protoc-gen-quarkus-grpc-protoc-plugin: Plugin failed with status code 1.
@rsvoboda rsvoboda added the kind/bug Something isn't working label Jun 24, 2020
@michalszynkiewicz
Copy link
Member

@rsvoboda how did you come up with such testing scenario? 🤣

I should be able to take a look at it next week.

@rsvoboda
Copy link
Member Author

rsvoboda commented Jul 8, 2020

This scenario is side effect of our Jenkins setup :) Executor nodes has several labels and I created matrix job to run some Quarkus tests on nodes defined by combination of the labels.

@michalszynkiewicz
Copy link
Member

for me a space in the path is enough to cause the failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants