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

Move afterburner registration to dedicated method #369

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jul 28, 2020

Description of changes:

This makes it a lot easier for frameworks that want
to use the module in GraalVM, to exclude Afterburner
(which does not work in GraalVM native image because
it generated classes at runtime)

By submitting this pull request

  • [ x ] I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • [ x ] I confirm that I've made a best effort attempt to update all relevant documentation.

@sapessi
Copy link
Collaborator

sapessi commented Jul 28, 2020

Hi @geoand, could you explain here why moving the afterburner registration to a separate static method helps with GraalVM support? Isn't it executed anyway when GraalVM starts the application at compile time? I would like to keep the full explanation in this PR for tracking purposes.

If you don't mind, I'll merge this PR to the graalvm branch rather than master. I have been running some experiments there.

@sapessi sapessi changed the base branch from master to graalvm July 28, 2020 15:02
@geoand
Copy link
Contributor Author

geoand commented Jul 28, 2020

Sure thing @sapessi.

Basically by having a dedicated method, it is super easy for a framework like Quarkus to provide a GraalVM substitution that simply makes the method a no-op.
If that is done, afterburner can also be excluded as a dependency.

Does that make sense?

@sapessi
Copy link
Collaborator

sapessi commented Jul 28, 2020

Thanks @geoand, as soon as the CI checks are done I'll merge in the graalvm branch.

@geoand
Copy link
Contributor Author

geoand commented Jul 28, 2020

Thanks!

@patriot1burke
Copy link

Bump. On Quarkus end, issues are starting to roll in more over this issue.

@snowe2010
Copy link

Bump on this again. Any progress yet?

@deki
Copy link
Collaborator

deki commented Jul 22, 2021

I started merging open PRs yesterday. As we were not progressing with the graalvm branch as expected, it's probably best to just merge 3a04d8c for now.
Any objections?

@geoand
Copy link
Contributor Author

geoand commented Jul 22, 2021

From my outsider's POV, that would be great

@deki deki changed the base branch from graalvm to dev July 23, 2021 07:54
# API Gateway regional endpoints
EndpointConfiguration: REGIONAL

Resources:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

StageName contains invalid characters (Pattern: ^[a-zA-Z0-9-_]+$) at Resources/ServerlessHttpApiApiGatewayDefaultStage/Properties/StageName

@deki
Copy link
Collaborator

deki commented Jul 23, 2021

Ok let's do that. Would you mind to rebase your branch on the dev branch? I'll merge it afterwards...

This makes it a lot easier for frameworks that want
to use the module in GraalVM, to exclude Afterburner
(which does not work in GraalVM native image because
it generated classes at runtime)
@geoand
Copy link
Contributor Author

geoand commented Jul 23, 2021

Do you want me to do that?

Asking because I saw that one of the maintainer of the project pushed commits into the PR's branch

@deki
Copy link
Collaborator

deki commented Jul 23, 2021

@geoand yeah, I think @sapessi pushed the commits from the graalvm branch to it (to combine it). Would be great if you could restore the original version based on the current dev branch. Sorry for the inconvenience.

@geoand geoand force-pushed the after-burner-native branch from 7a3954f to be47441 Compare July 23, 2021 12:16
@geoand
Copy link
Contributor Author

geoand commented Jul 23, 2021

Not a problem at all.

Done :)

@deki deki merged commit 9553bb2 into aws:dev Jul 23, 2021
@deki
Copy link
Collaborator

deki commented Jul 23, 2021

Thank you!

@geoand geoand deleted the after-burner-native branch July 23, 2021 17:52
@geoand
Copy link
Contributor Author

geoand commented Jul 23, 2021

You are welcome!

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.

5 participants