pem70 opened a new pull request, #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018

   ### Issue
   Several tests (`TestApiResponse`, `TestOperationGenerator`, and 
`OperationMethodAnnotationProcessorTest`) were identified as order-dependent 
(OD) flaky tests. See #5017 
   
   ### Fix
   This PR removes the shared `static SwaggerOperations` field and ensures that 
each test method receives a fresh instance by creating it in `@BeforeEach` and 
clearing it in `@AfterEach`. This isolates state between test methods and 
prevents failures caused by execution-order differences. The intent of all 
affected tests remains unchanged—each still validates the correct 
Swagger/OpenAPI generation—while eliminating the order-dependent behavior 
reported by iDFlakies.
   
   
   ### Checklist
    - [x] Each commit in the pull request should have a meaningful subject line 
and body.
    - [x] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
    - [x] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
    - [x] Run `mvn clean install -Pit` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
    - [x] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   
   


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