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

AotTestExecutionListener should not be invoked for a @DisabledInAotMode test class #33589

Closed
sbrannen opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@sbrannen
Copy link
Member

Currently, if a test class is annotated with @DisabledInAotMode, registered AotTestExecutionListener implementations will still be invoked, which can lead to AOT processing failures if the AotTestExecutionListener throws an exception -- for example, because it attempts to do something that is not supported during AOT processing.

We should therefore disable AotTestExecutionListener processing for any test class annotated with @DisabledInAotMode.

@sbrannen sbrannen added in: test Issues in the test module type: bug A general bug theme: aot An issue related to Ahead-of-time processing labels Sep 24, 2024
@sbrannen sbrannen added this to the 6.1.14 milestone Sep 24, 2024
@sbrannen sbrannen self-assigned this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant