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

IF: Test: Increase allowed unlinkable block exceptions during syncing #82

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Apr 26, 2024

For this issue, just want to make the test more reliable and less sensitive to the number of unlinkable blocks that occurred during the test.

A separate issue #81 was created as a low-priority optimization to reduce the likelihood of these unlinkable blocks occurring during lib catchup syncing.

Resolves #69

@heifner heifner requested review from linh2931 and greg7mdp April 26, 2024 20:52
@heifner heifner added the OCI Work exclusive to OCI team label Apr 26, 2024
@heifner heifner linked an issue Apr 26, 2024 that may be closed by this pull request
@greg7mdp
Copy link
Contributor

Issue #69 mentioned 219 unlinkable block exceptions.
Wondering if 250 is enough to reliably avoid this test failure?

@heifner
Copy link
Member Author

heifner commented Apr 26, 2024

Issue #69 mentioned 219 unlinkable block exceptions. Wondering if 250 is enough to reliably avoid this test failure?

I thought I had reported that number incorrectly and it was actually 129. I looked again. The first failure was 219 and the second was 129. So, 500 might be a better option.

# See https://github.com/AntelopeIO/spring/issues/81 for fix to reduce the number of expected unlinkable blocks
# Test verifies LIB is advancing, check to see that not too many unlinkable block exceptions are generated
# while syncing up to head.
if contents.count("3030001 unlinkable_block_exception: Unlinkable block") > 500:
Copy link
Member

Choose a reason for hiding this comment

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

Can you log the count too so we know right away the number causing the violation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added print

@heifner heifner merged commit 22000e2 into savanna Apr 29, 2024
36 checks passed
@heifner heifner deleted the GH-69-test-fix branch April 29, 2024 11:09
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: TEST
summary: Increase allowed unlinkable block exceptions during syncing.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Failure: nodeos_startup_catchup_if_lr_test
4 participants