-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-38442][test] Make ProfilingServiceTest.testRollingDeletion more stable #27047
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
Conversation
@flinkbot run azure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the stability of ProfilingServiceTest.testRollingDeletion
by ensuring unique prefixes per test method. The issue was that all tests used the same resource ID prefix, causing race conditions when tests run in parallel during ./mvnw clean install
.
- Modified test methods to accept
TestInfo
parameter for unique identification - Updated resource ID generation to include test method name as suffix
- Enhanced rolling deletion verification to use test-specific resource IDs
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@yuchen-ecnu , @Myasuka may I ask you to take a look since you were working on this in past |
profilingService.requestProfiling(RESOURCE_ID, duration, mode).get(); | ||
profilingService | ||
.requestProfiling( | ||
RESOURCE_ID + "_" + testInfo.getTestMethod().get().getName(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just use test name as part of prefix to make it unique per test and to avoid tests impacting each other while concurrent execution
What is the purpose of the change
The PR make the test more stable by making prefix unique per test.
The problem with the test that all use same prefix and at some point it counts items in profiling list by prefix which is same for all in this test. The problem could be reproduced while running tests in parallel (usually happens while
./mvnw clean install
)Brief change log
Make prefixes unique per test
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: ( no)Documentation