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

core/tracker: improve failed duty message #972

Merged
merged 5 commits into from
Aug 16, 2022

Conversation

xenowits
Copy link
Contributor

Improve failed duty message.

category: refactor
ticket: #866

@xenowits xenowits marked this pull request as draft August 15, 2022 06:17
@codecov
Copy link

codecov bot commented Aug 15, 2022

Codecov Report

Merging #972 (de30103) into main (b18e172) will increase coverage by 0.15%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##             main     #972      +/-   ##
==========================================
+ Coverage   54.21%   54.36%   +0.15%     
==========================================
  Files         116      116              
  Lines       12846    12883      +37     
==========================================
+ Hits         6964     7004      +40     
+ Misses       4860     4859       -1     
+ Partials     1022     1020       -2     
Impacted Files Coverage Δ
core/tracker/tracker.go 70.68% <95.45%> (+6.07%) ⬆️
core/qbft/qbft.go 81.97% <0.00%> (+0.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@xenowits xenowits changed the title improve failed duty message core/tracker: improve failed duty message Aug 15, 2022
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
@xenowits xenowits force-pushed the xenowits/improve-failed-duty-message branch from b2b6cf4 to 26d083e Compare August 16, 2022 07:11
@xenowits xenowits force-pushed the xenowits/improve-failed-duty-message branch from 26d083e to 9f325db Compare August 16, 2022 07:13
Copy link
Contributor

@corverroos corverroos left a comment

Choose a reason for hiding this comment

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

Tests?

core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
core/tracker/tracker.go Outdated Show resolved Hide resolved
@xenowits
Copy link
Contributor Author

Tests?

Added tests

@xenowits xenowits marked this pull request as ready for review August 16, 2022 13:14
}
}
case consensus:
msg = "consensus algorithm didn't complete"
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make these constants, so comparison and tests and updates are trivial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed, great idea

@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 16, 2022
@obol-bulldozer obol-bulldozer bot merged commit 30c387a into main Aug 16, 2022
@obol-bulldozer obol-bulldozer bot deleted the xenowits/improve-failed-duty-message branch August 16, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants