-
Notifications
You must be signed in to change notification settings - Fork 723
Fix tests pool failing #3602
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
Fix tests pool failing #3602
Conversation
|
LGTM. I'm gonna try something locally before I approve, but the essence of it is something like this: for ((i = 0 ; i < 100 ; i++)); do
cargo test --release #argument only for these tests here
done |
|
I will fix the tests that are not related to this PR but as it's a test fixing PR let's make everything here. |
|
I'm still getting some failures, but they are much less common: for ((i = 0 ; i < 100 ; i++)) ; do
cargo test test_pool -F testing --release
doneerror output: improvement today is better than perfect tomorrow though. Mention this PR in the parent issue, then merge (subject to #3602 (comment)) |
|
Would it be constructive to add a comment to one of the sleeps that provides this context (not a merge-blocking suggestion)
|
|
It shouldn't fail anymore will check on that also |
|
@Ben-PH Can you re-review I have fixed all the tests. I don't have any fail now. |
Co-authored-by: Ben <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Those were bothering me, and didn't have much clue as to how to fix.
Just apply the same comment change "Allow some time for...", and for CI to finish and merge it.
3489: Testnet 20 r=AurelienFT a=AurelienFT Merged in this testnet: - #3475 - #3549 - #3562 - #3462 - #3492 - #3502 - #3495 - #3556 - #3511 - #3498 - #3566 - #3557 - #3576 - #3579 - #3507 - #3585 - #3587 - #3580 - #3590 - #3549 - #3455 - #3601 - #3602 - #3606 - #3588 - #3603 - #3554 Co-authored-by: AurelienFT <[email protected]> Co-authored-by: Ben PHL <[email protected]> Co-authored-by: Modship <[email protected]> Co-authored-by: Ben <[email protected]> Co-authored-by: Eitu33 <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: modship <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]>
The tests were failing because
add_operationsis managed in an other thread and so the tests don't wait that the ops are inserted before trying to fetch them. So sometimes it was fast enough sometimes not. With the new sleep it's always fast enough.The
test_poolfailed after this change because it was wrong by design. Fixed it.Fix #3509 and #3584