The GitHub Actions job "Nightly (beta)" on flink.git/master has failed.
Run started by GitHub user github-actions[bot] (triggered by 
github-actions[bot]).

Head commit for run:
62cb6c5fc379e40fe4ca3d4f5ed6ab2beb367f92 / Rui Fan <[email protected]>
[FLINK-39408][tests] Fix TestNameProvider broken after JUnit 5 migration

TestNameProvider is a JUnit 4 TestRule that stores the test name in a
ThreadLocal. After FLINK-39124 migrated modules to JUnit 5, the @Rule
is never triggered, so PseudoRandomValueSelector.randomize() always
gets null from getCurrentTestName(), causing all boolean config
randomizations to select the same fixed value.

Fix: add TestNameProviderExtension (JUnit 5 BeforeEachCallback /
AfterEachCallback) that delegates to TestNameProvider's static methods.
TestNameProvider itself does not depend on JUnit 5 APIs, avoiding
ClassNotFoundException in non-test runtime environments (e.g. PyFlink).
Register TestNameProviderExtension globally via META-INF/services in
all modules.

Report URL: https://github.com/apache/flink/actions/runs/24169974697

With regards,
GitHub Actions via GitBox

Reply via email to