Skip to content

❤️ a little bit of love#204

Merged
EricWittmann merged 4 commits into
Apitomy:mainfrom
andreaTP:some-love
Oct 23, 2023
Merged

❤️ a little bit of love#204
EricWittmann merged 4 commits into
Apitomy:mainfrom
andreaTP:some-love

Conversation

@andreaTP
Copy link
Copy Markdown
Contributor

Attempt to give a little bit of love to this project:

  • switched to using a Maven Wrapper instead of specify fixed versions in each and every CI workflow
  • fixed a problem happening on Mac + Java 17 where SimpleName was retrieving null for .... reasons, now it's possible to run the tests, still they don't succeed 100% of the times 😞
  • removed the unused Quarkus Native CLI
  • added a test to generate Quarkus for the Apicurio Registry OpenAPI on a different namespace (comments below)


@Override
protected String getResourceName(String name) {
return "_OpenApi2Quarkus/" + name; // simpleName fails in the tests with Java 17
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was constantly failing on my machine 🤷

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the codegen produces different output with jdk 17 vs 11. So it's failing because the expected output is different from the actual. The pom.xml includes the target java version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, we should revisit the "file by file"/"line by line" approach for those tests, but it should be ok for this iteration.

@@ -0,0 +1,48 @@

package io.apicurio.registry.types;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those types are still generated in the io.apicurio.registry.types package, I think this is a bug, cc. @EricWittmann

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you think this is a bug?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -168 to -180
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.release-version}}
files: |
apicurio-codegen-macos
apicurio-codegen-linux
apicurio-codegen-win.exe
- uses: lakto/gren-action@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
options: '--override'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to bring this over, but without the attached binary files.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ook 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@EricWittmann EricWittmann merged commit 6bcec4f into Apitomy:main Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants