1996fanrui opened a new pull request, #27902:
URL: https://github.com/apache/flink/pull/27902

   ## Summary
   
   After FLINK-39124 migrated modules to JUnit 5, `TestNameProvider` (a JUnit 4 
`TestRule`) is never triggered. This causes 
`PseudoRandomValueSelector.randomize()` to always get `null` from 
`getCurrentTestName()`, making all boolean config randomizations (e.g. 
`ENABLE_UNALIGNED`, `UNALIGNED_DURING_RECOVERY_ENABLED`, 
`SNAPSHOT_COMPRESSION`) select the same fixed value across all tests.
   
   **Fix:**
   - Make `TestNameProvider` also implement JUnit 5 `BeforeEachCallback` / 
`AfterEachCallback`
   - Register it globally via 
`META-INF/services/org.junit.jupiter.api.extension.Extension` in all modules
   
   ## Test plan
   
   - [x] Verified that `PseudoRandomValueSelector` log output now shows varied 
`true`/`false` values instead of all `false`
   


-- 
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