Skip to content
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

Update ReleaseMessageServiceWithCacheTest.java #4314

Merged
merged 2 commits into from
Apr 17, 2022

Conversation

plzdoo
Copy link
Contributor

@plzdoo plzdoo commented Apr 15, 2022

Test testWhenReleaseMsgSizeBiggerThan500 in class ReleaseMessageServiceWithCacheTest is flaky due to the iteration of hashset used in method findLatestReleaseMessagesGroupByMessages in class ReleaseMessageServiceWithCache. It may occasionally fail in different JVM's or in different Java versions.

I modify the test so this test won't be affect by the flakiness of indeterministic order of iteration of hashset.

reproduce:
mvn -pl apollo-configservice edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=ReleaseMessageServiceWithCacheTest#testWhenReleaseMsgSizeBiggerThan500 -DnondexRuns=10

@codecov-commenter
Copy link

Codecov Report

Merging #4314 (fe5d2c1) into master (a42b793) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4314   +/-   ##
=========================================
  Coverage     53.17%   53.17%           
  Complexity     2668     2668           
=========================================
  Files           488      488           
  Lines         15253    15253           
  Branches       1577     1577           
=========================================
  Hits           8111     8111           
  Misses         6587     6587           
  Partials        555      555           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a42b793...fe5d2c1. Read the comment docs.

Copy link
Member

@nobodyiam nobodyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nobodyiam nobodyiam merged commit 512d7cf into apolloconfig:master Apr 17, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2022
@nobodyiam nobodyiam added this to the 2.0.0 milestone May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants