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

[Merged by Bors] - Fix swallowing ActiveSet creation errors during updates #5924

Closed
wants to merge 1 commit into from

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented May 9, 2024

Motivation

When processing an update and creating an ActiveSets, database related errors could be swallowed

Description

Provide proper error handling for ActiveSet creation

Test Plan

Tested on a mainnet node

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 80.6%. Comparing base (06ec6d0) to head (d4e6240).
Report is 2 commits behind head on develop.

Files Patch % Lines
node/node.go 0.0% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #5924     +/-   ##
=========================================
- Coverage     80.7%   80.6%   -0.1%     
=========================================
  Files          289     289             
  Lines        29868   29871      +3     
=========================================
- Hits         24107   24102      -5     
- Misses        4164    4172      +8     
  Partials      1597    1597             

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

Copy link
Contributor

@poszu poszu left a comment

Choose a reason for hiding this comment

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

It's a pity that listenToUpdates (and lots of other code in node.go) is not tested whatsoever.

@ivan4th
Copy link
Contributor Author

ivan4th commented May 10, 2024

@poszu agree, will try to improve that at some point

@ivan4th
Copy link
Contributor Author

ivan4th commented May 10, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request May 10, 2024
## Motivation

When processing an update and creating an ActiveSets, database related errors could be swallowed
@spacemesh-bors
Copy link

Build failed:

@ivan4th
Copy link
Contributor Author

ivan4th commented May 10, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request May 10, 2024
## Motivation

When processing an update and creating an ActiveSets, database related errors could be swallowed
@spacemesh-bors
Copy link

Build failed:

  • systest-status

@ivan4th
Copy link
Contributor Author

ivan4th commented May 10, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request May 10, 2024
## Motivation

When processing an update and creating an ActiveSets, database related errors could be swallowed
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Fix swallowing ActiveSet creation errors during updates [Merged by Bors] - Fix swallowing ActiveSet creation errors during updates May 10, 2024
@spacemesh-bors spacemesh-bors bot closed this May 10, 2024
@spacemesh-bors spacemesh-bors bot deleted the fix/as-update-errors branch May 10, 2024 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants