Skip to content

test(sync-v2): Fix seed in some sync-v2 tests while it's under testing #817

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

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

msbrogli
Copy link
Member

@msbrogli msbrogli commented Oct 18, 2023

Motivation

Sync-v2 is still under testing. It's already known that it fails in some edge cases. So, this PR fixes a seed for some sync-v2 tests that have been failing randomly.

Acceptance Criteria

  1. Fix seed in tests/p2p/test_sync_v2.py.
  2. Fix seed in tests/simulation/test_simulator.py::SyncV2RandomSimulatorTestCase.
  3. Fix seed in tests/simulation/test_simulator.py::SyncBridgeRandomSimulatorTestCase.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli requested a review from jansegre as a code owner October 18, 2023 01:24
@msbrogli msbrogli self-assigned this Oct 18, 2023
@msbrogli msbrogli requested a review from glevco October 18, 2023 01:24
@msbrogli msbrogli force-pushed the test/sync-v2-fixed-seed branch from e07b891 to 121a835 Compare October 18, 2023 01:25
@msbrogli msbrogli force-pushed the test/sync-v2-fixed-seed branch from 121a835 to bed37ef Compare October 18, 2023 02:54
glevco
glevco previously approved these changes Oct 18, 2023
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a9b2a4c) 84.60% compared to head (bed37ef) 84.56%.
Report is 3 commits behind head on master.

❗ Current head bed37ef differs from pull request most recent head dbfb9ec. Consider uploading reports for the commit dbfb9ec to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #817      +/-   ##
==========================================
- Coverage   84.60%   84.56%   -0.05%     
==========================================
  Files         266      266              
  Lines       22131    22131              
  Branches     3380     3380              
==========================================
- Hits        18723    18714       -9     
- Misses       2745     2752       +7     
- Partials      663      665       +2     

see 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msbrogli msbrogli force-pushed the test/fix-flaky-test_sync_enabled branch from a9b2a4c to 3c9bac8 Compare October 18, 2023 15:37
jansegre
jansegre previously approved these changes Oct 18, 2023
Base automatically changed from test/fix-flaky-test_sync_enabled to master October 18, 2023 15:38
@msbrogli msbrogli dismissed stale reviews from jansegre and glevco October 18, 2023 15:38

The base branch was changed.

jansegre
jansegre previously approved these changes Oct 18, 2023
@msbrogli msbrogli merged commit dbfb9ec into master Oct 18, 2023
@msbrogli msbrogli deleted the test/sync-v2-fixed-seed branch October 18, 2023 15:41
@jansegre jansegre mentioned this pull request Nov 13, 2023
2 tasks
This was referenced Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants