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

tools: goal logging send fixes #4281

Merged
merged 2 commits into from
Aug 1, 2022
Merged

Conversation

brianolson
Copy link
Contributor

Summary

Send only as many bytes as exist in the log when we stat() it (log may still be growing) otherwise S3 breaks.
If any action within goal logging send fails, return error and exit with error.

Test Plan

Problems found during development. Development tool works better now.

send only as many bytes as exist in the log when we stat() it (log may still be growing) otherwise S3 breaks
if any action within `goal logging send` fails, return error and exit with error
Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

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

Looks great!
Thanks for fixing these.

@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

Merging #4281 (e16a30b) into master (f44c162) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #4281      +/-   ##
==========================================
- Coverage   55.29%   55.25%   -0.04%     
==========================================
  Files         395      395              
  Lines       50334    50341       +7     
==========================================
- Hits        27833    27817      -16     
- Misses      20117    20137      +20     
- Partials     2384     2387       +3     
Impacted Files Coverage Δ
cmd/goal/logging.go 7.93% <0.00%> (-1.00%) ⬇️
logging/collector.go 0.00% <0.00%> (ø)
crypto/merkletrie/trie.go 66.42% <0.00%> (-2.19%) ⬇️
agreement/cryptoVerifier.go 67.60% <0.00%> (-2.12%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
crypto/merkletrie/node.go 91.62% <0.00%> (-1.87%) ⬇️
data/abi/abi_type.go 87.67% <0.00%> (-0.95%) ⬇️
ledger/tracker.go 78.44% <0.00%> (-0.87%) ⬇️
catchup/service.go 69.38% <0.00%> (-0.75%) ⬇️
ledger/acctupdates.go 69.92% <0.00%> (-0.61%) ⬇️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

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

Successfully merging this pull request may close these issues.

4 participants