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 common mrjar forbidden apis configuration to plugin #106385

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Mar 15, 2024

Since mrjars may use preview apis, forbidden apis must know about any preview apis from the jdk. However, we do not run forbidden apis with the preview enabled flag, nor in a separate jvm, so it does not know about these classes. Thus we ignore missing classes on source sets added by the mrjar plugin.

This commit configures all sourcesets added by mrjar plugin to ignore forbidden apis missing classes.

Since mrjars may use preview apis, forbidden apis must know about any
preview apis from the jdk. However, we do not run forbidden apis with
the preview enabled flag, nor in a separate jvm, so it does not know
about these classes. Thus we ignore missing classes on source sets added
by the mrjar plugin.

This commit configures all sourcesets added by mrjar plugin to ignore
forbidden apis missing classes.
@rjernst rjernst added :Delivery/Build Build or test infrastructure >refactoring labels Mar 15, 2024
@rjernst rjernst requested review from a team as code owners March 15, 2024 13:57
@elasticsearchmachine elasticsearchmachine added v8.14.0 Team:Delivery Meta label for Delivery team labels Mar 15, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@rjernst
Copy link
Member Author

rjernst commented Mar 15, 2024

cc @ChrisHegarty

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@mark-vieira
Copy link
Contributor

However, we do not run forbidden apis with the preview enabled flag, nor in a separate jvm, so it does not know about these classes.

FWIW, we could change this behavior.

@rjernst
Copy link
Member Author

rjernst commented Mar 19, 2024

I agree we could change the behavior, it's just not worth the complexity right now given we have so few uses of preview apis (and mr jars in general).

@rjernst rjernst added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 19, 2024
@elasticsearchmachine elasticsearchmachine merged commit 55c3357 into elastic:main Mar 19, 2024
14 checks passed
@rjernst rjernst deleted the build/mrjar_forbidden branch March 19, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants