You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Component spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config
Describe the bug
Some tests in alibaba-nacos-config are order-dependent flaky. They can pass or fail under different tests running orders. Some tests are always failed when running individually. The detailed related tests list is linked in this pr.
Reason
The environments are not properly set up for every test.
Simplest demo
The URL of the simplest demo to reproduce the problem.
To Reproduce
Steps to reproduce the behavior:
Build the module using ./mvnw clean install -DskipTests -pl spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config -am
Run a flaky test like ./mvnw -pl spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config test -Dtest=com.alibaba.cloud.nacos.configdata.NacosConfigDataLocationResolverTest#testStartWithASlashIsOK
See error
If using a test order randomizer (or simply using @TestMethodOrder(OrderAnnotation.class) and @Order(1)), running the whole test class could also fail depending on the test execution order.
Expected behavior
All the tests should pass under any order, regardless of whether they are run individually or combined.
This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.
Which Component
spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config
Describe the bug
Some tests in alibaba-nacos-config are order-dependent flaky. They can pass or fail under different tests running orders. Some tests are always failed when running individually. The detailed related tests list is linked in this pr.
Reason
The environments are not properly set up for every test.
Simplest demo
The URL of the simplest demo to reproduce the problem.
To Reproduce
Steps to reproduce the behavior:
./mvnw clean install -DskipTests -pl spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config -am
./mvnw -pl spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-config test -Dtest=com.alibaba.cloud.nacos.configdata.NacosConfigDataLocationResolverTest#testStartWithASlashIsOK
@TestMethodOrder(OrderAnnotation.class)
and@Order(1)
), running the whole test class could also fail depending on the test execution order.Expected behavior
All the tests should pass under any order, regardless of whether they are run individually or combined.
Screenshots
Additional context
Java version: 17.0.9
Maven version: 3.9.0
The text was updated successfully, but these errors were encountered: