You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "pem70 (via GitHub)" <gi...@apache.org> on 2025/11/14 03:29:39 UTC

[PR] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "pem70 (via GitHub)" <gi...@apache.org>.
pem70 commented on PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018#issuecomment-3531267757

   > rebase to update jdk17 image name
   
   Rebased. Please review


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "pem70 (via GitHub)" <gi...@apache.org>.
pem70 commented on PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018#issuecomment-3587691968

   Merged newer main branch


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "chengyouling (via GitHub)" <gi...@apache.org>.
chengyouling commented on PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018#issuecomment-3531137379

   rebase to update jdk17 image name


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "SweetWuXiaoMei (via GitHub)" <gi...@apache.org>.
SweetWuXiaoMei merged PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "pem70 (via GitHub)" <gi...@apache.org>.
pem70 commented on PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018#issuecomment-3531620133

   I verified the CI failure and confirmed it comes from the Consul demo test (`ConsulIT.clientGetsNoError`). This PR only changes test code in the swagger module and does not touch any Consul or runtime components. I ran the failing test locally on the master branch, and it fails there as well. This indicates the CI failure is most likely pre-existing and unrelated to the changes in this PR.


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#5017] Fix `swagger/swagger-generator/generator-core` OD tests [servicecomb-java-chassis]

Posted by "pem70 (via GitHub)" <gi...@apache.org>.
pem70 commented on PR #5018:
URL: https://github.com/apache/servicecomb-java-chassis/pull/5018#issuecomment-3608665279

   Update to generate Swagger operations once per class instead of per method. This will improve performance and hopefully fix the CI error


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org