Overview
When an error is encountered during AOT processing in TestContextAotGenerator
, a DEBUG
or WARN
message is logged, and processing will continue.
This behavior is acceptable at build-time; however, such errors will be silently ignored within our own integration tests since we do not have a mechanism for checking the log output.
We should therefore introduce a mechanism to "fail on error" during test AOT processing.
NOTE: This feature is currently targeted for internal use only.
Related Issues
-
29579
-
30977
Deliverables
- [x] Introduce a
failOnError
flag inTestContextAotGenerator
. - When set to
true
, any error encountered during AOT processing should result in an exception that fails the overall process. When set tofalse
(the default), the previous behavior remains unchanged: aDEBUG
orWARN
message will be logged, and processing will continue.