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

tests: decrease tests duration #756

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Aug 24, 2023

Motivation

PR #753 introduced the new pause_after_exactly() miner simulator ability, and changed Feature Activation mining simulation tests to use it instead of the StopAfterNMinedBlocks, removing flakiness. Since the trigger was removed, the test running times were unnecessarily too long.

Acceptance Criteria

  • Decrease running times of Feature Activation mining simulation tests
  • Increase miner hash rate to make sure enough blocks are found

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

@glevco glevco added the tests label Aug 24, 2023
@glevco glevco self-assigned this Aug 24, 2023
@glevco glevco marked this pull request as ready for review August 24, 2023 19:45
msbrogli
msbrogli previously approved these changes Aug 24, 2023
jansegre
jansegre previously approved these changes Aug 24, 2023
@glevco glevco marked this pull request as draft August 24, 2023 22:42
@glevco glevco dismissed stale reviews from jansegre and msbrogli via 4a0cd00 August 25, 2023 03:21
@glevco glevco force-pushed the tests/decrease_tests_duration branch from 4a0cd00 to 925fe90 Compare August 25, 2023 03:22
@glevco glevco marked this pull request as ready for review August 25, 2023 03:24
@glevco glevco requested review from msbrogli and jansegre August 25, 2023 03:24
@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (0f78923) 84.73% compared to head (a847f51) 84.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #756      +/-   ##
==========================================
+ Coverage   84.73%   84.74%   +0.01%     
==========================================
  Files         259      259              
  Lines       21912    21912              
  Branches     2963     2963              
==========================================
+ Hits        18567    18570       +3     
+ Misses       2698     2696       -2     
+ Partials      647      646       -1     

see 4 files with indirect coverage changes

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

@glevco glevco force-pushed the tests/decrease_tests_duration branch from 925fe90 to 2fdc1d0 Compare August 30, 2023 15:19
Copy link
Member

@jansegre jansegre left a comment

Choose a reason for hiding this comment

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

All tests are failing, is this ready for review?

@glevco
Copy link
Contributor Author

glevco commented Sep 1, 2023

All tests are failing, is this ready for review?

@jansegre yes, it's just my bad luck. Only one passed, actually, 3.11 on Windows. I'll rerun them anyway

@jansegre
Copy link
Member

jansegre commented Sep 1, 2023

All tests are failing, is this ready for review?

@jansegre yes, it's just my bad luck. Only one passed, actually, 3.11 on Windows. I'll rerun them anyway

@glevco Is it possible that the tests that were changed here have become flaky? If they did I think it's better not to merge this changes.

@glevco
Copy link
Contributor Author

glevco commented Sep 1, 2023

@glevco Is it possible that the tests that were changed here have become flaky? If they did I think it's better not to merge this changes.

@jansegre I don't think so, I've looked at the failures and it looks like they're all either from the test_simulator or p2p. But let's wait for the rerun, to make sure

@glevco glevco force-pushed the tests/decrease_tests_duration branch from 2fdc1d0 to a847f51 Compare September 11, 2023 01:20
@jansegre jansegre merged commit d56924e into master Sep 11, 2023
@jansegre jansegre deleted the tests/decrease_tests_duration branch September 11, 2023 15:40
This was referenced Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants