MartijnVisser opened a new pull request, #30113:
URL: https://github.com/apache/flink/pull/30113

   ## What is the purpose of the change
   
   Surefire 3.2.2 reports every invocation of a `ParameterizedTestExtension` 
template or `@TestFactory` under the bare method name, so a failed invocation 
can't be told apart from the passing ones in the XML reports and on Azure. An 
error in `@BeforeAll` gets an empty test name. 3.6.1 reports them as 
`testFoo()[n]` and `initializationError`. Names of `@ParameterizedTest` and 
`@RepeatedTest` invocations don't change.
   
   ## Brief change log
   
     - Bump maven-surefire-plugin from 3.2.2 to 3.6.1, on master only.
   
   ## Verifying this change
   
   I compared the XML reports per class between the parent commit and this one: 
flink-core, flink-runtime, flink-streaming-java, flink-table-common and 
flink-table-runtime on JDK 17, 21 and 25, flink-core and flink-runtime on JDK 
11, and flink-table-planner and flink-tests on JDK 17. On JDK 11 
ProfilingServiceTest crashes the fork on macOS with and without this change, 
which stopped that run at flink-runtime. Test cases and outcomes are the same, 
apart from one-off flaky failures on both sides, and the effective POM only 
differs in the plugin version.
   
   What changes in the reports:
     - 181 classes in the core modules, 116 in the planner and 39 in 
flink-tests go from bare names to `()[n]`.
     - ArchUnit rules are reported under `TestCodeArchitectureTest` instead of 
`ITCaseRules`, `TestNamingRules` and so on (apache/maven-surefire#3226).
     - `tests=` matches the test cases. 3.2.2 writes 2 for 
`DoubleAccumulatorTest`, which has 6.
   
   3.6.1 has one known regression, apache/maven-surefire#3548: 
`-Dtest='Outer$Inner#method'` selects no tests when `Inner` is a 
`@ParameterizedClass`. Flink has no nested `@ParameterizedClass`, and CI only 
passes `-Dtest` with top-level classes (the Kubernetes ITCases). The fix goes 
into 3.7.0. I'll bump once that is released.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): yes
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Claude Opus 5.5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to