-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
re-augmentation causes information to get lost in 2.0.0.CR2 #17592
Comments
/cc @evanchooly |
@stuartwdouglas looks like something for you. |
I just tested the reproducer and it appeared to work fine. |
Hi @stuartwdouglas, |
What I can reproduce though is:
Start Quarkus
Do re-augmentation
Start Quarkus
-> There are RESTEAY DEBUG logs due to the missing |
I build the reproducer as-is and looked at the openapi document, and it seemed to be the same before and after. |
Ok, I see the beans change. |
Can you test out #17689 and see if it fixes your issue? |
Yes, I will as soon as I can. |
I tried to retest. Unfortunately on 999-SNAPSHOT the re-augmentation didn't work for other reasons (see Zulip Chat). |
Fixes quarkusio#17592 (cherry picked from commit 2e28b51)
Describe the bug
Some of the generated code in
/quarkus-app/quarkus/generated-bytecode.jar
gets lost if the project is re-augmented after the build.Expected behavior
I can run re-augmentation any number of time and will always get the original if no build time properties have changed.
Actual behavior
The augmentation output after re-augmentation is reduced and leads to a different runtime behavior.
To Reproduce
https://github.com/renegrob/reproducer-base/tree/reaugmentation-issue
./gradlew clean :app:quarkusBuild -Dquarkus.package.type=mutable-jar
app/build/quarkus-app/quarkus/
away.java -jar -Dquarkus.launch.rebuild=true app/build/quarkus-app/quarkus-run.jar
If you compare the initial augmentation output and the one after re-augmentation you notice that:
reproducer-base/app/build/quarkus-app/quarkus/generated-bytecode.jar!/META-INF/quarkus-generated-openapi-doc.YAML
(See also https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/2.2E0.2E0.2ECR2.20NullPointerExceptions.20after.20Reagumentation)
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
https://github.com/renegrob/reproducer-base/tree/reaugmentation-issue
Or attach an archive containing the reproducer to the issue.
Environment (please complete the following information):
Output of
uname -a
orver
Linux automatix 5.8.0-53-generic #60~20.04.1-Ubuntu
Output of
java -version
GraalVM version (if different from Java)
n/a
Quarkus version or git rev
2.0.0.CR2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
n/a
The text was updated successfully, but these errors were encountered: