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

Fix seldom failing tests in hb v2 #5205

Merged
merged 3 commits into from May 4, 2023

Conversation

iulianpascalau
Copy link
Contributor

Reasoning behind the pull request

  • some unit tests for the peerAuthenticationRequestsProcessor component were seldom failing

Proposed changes

  • added new unit tests
  • reworked tests that tested logic to work on a component that did not launched go routines
  • minor production code refactoring

Testing procedure

  • standard system test
  • when analyzing the logs, we should find prints like:
received enough messages, closing peerAuthenticationRequestsProcessor go routine

or

closing peerAuthenticationRequestsProcessor...
closing peerAuthenticationRequestsProcessor go routine

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@iulianpascalau iulianpascalau changed the base branch from master to rc/v1.6.0 April 27, 2023 13:05
@sstanculeanu sstanculeanu self-requested a review April 27, 2023 13:06
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.04 ⚠️

Comparison is base (723c557) 79.01% compared to head (50872b7) 78.98%.

❗ Current head 50872b7 differs from pull request most recent head 050d918. Consider uploading reports for the commit 050d918 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##           rc/v1.6.0    #5205      +/-   ##
=============================================
- Coverage      79.01%   78.98%   -0.04%     
=============================================
  Files            680      680              
  Lines          88018    88023       +5     
=============================================
- Hits           69550    69526      -24     
- Misses         13259    13290      +31     
+ Partials        5209     5207       -2     
Impacted Files Coverage Δ
...t/processor/peerAuthenticationRequestsProcessor.go 95.04% <100.00%> (+0.21%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.
@@ Log scanner @@

fix-seldom-failing-tests-in-hb-v2

================================================================================

  • Known Warnings 18
  • New Warnings 9
  • Known Errors 0
  • New Errors 2
  • Panics 0
    ================================================================================
  • block hash does not match 42204
  • wrong nonce in block 14262
  • miniblocks does not match 0
  • num miniblocks does not match 0
  • miniblock hash does not match 0
  • block bodies does not match 0
  • receipts hash missmatch 0
    ================================================================================

@iulianpascalau iulianpascalau merged commit d78732a into rc/v1.6.0 May 4, 2023
5 checks passed
@iulianpascalau iulianpascalau deleted the fix-seldom-failing-tests-in-hb-v2 branch May 4, 2023 06:44
@schimih schimih added the type:bug Something isn't working label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants