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
Remove some oversized logs #14054
Remove some oversized logs #14054
Conversation
!ci-build-me |
fed95d4
to
5008593
Compare
!ci-build-me |
, `List | ||
(List.map user_cmds | ||
~f:(With_status.to_yojson User_command.Valid.to_yojson) ) ) | ||
, `List (List.map user_cmds ~f:(With_status.to_yojson tx_hash_json)) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is this change that's causing the verification key test to fail. You'll want to find using transaction hash here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepthiskumar I believe I do now exactly as you say: https://github.com/MinaProtocol/mina/pull/14054/files#diff-76bbbeef12ee2aa92308935beebc5d6b45b2343aeb90e561b3e3cbe76e7aa045R289
Also, awkwardly, although nearly all intg tests and other sections of verify test rely on the same zkapp_to_be_included_in_frontier
function, only last two sections of verification-key test fail.
5008593
to
e402644
Compare
!ci-build-me |
5 similar comments
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
There are many logs emitted by Mina which are unnecessarily large and in some case become oversized. This PR aims to fix many of such logs, reducing the amount of data printed.
c8653bd
to
9324696
Compare
!ci-build-me |
!ci-nightly-me |
https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/510 <- integration tests too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have fee payer part of transactions to help with debugging. We can have a summary type for transactions and display fee payer pk, nonce, fee and signature. Resource_pool.Diff.t
already has one, maybe we can add transaction summary to it?
[ ( "parent_hash" | ||
, Breadcrumb.parent_hash crumb |> State_hash.to_yojson ) | ||
] | ||
"Producing new block with parent $parent_hash%!" ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add protocol state please? These logs are useful when debugging
src/lib/mina_graphql/itn_zkapps.ml
Outdated
~metadata: | ||
[ ("command", Zkapp_command.to_yojson zkapp_command) | ||
; ("error", `String e) | ||
[ ( "signature" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the entire fee payer account update (pk and nonce) might be helpful?
else state_hash_data ) ) ) ; | ||
[ ( "state_hash" | ||
, `String (State_hash.to_base58_check hash) ) | ||
] ) ) ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add protocol state here as well?
@@ -9,8 +9,7 @@ exception No_initial_peers | |||
|
|||
type Structured_log_events.t += | |||
| Gossip_new_state of { state_hash : State_hash.t } | |||
| Gossip_transaction_pool_diff of | |||
{ txns : Transaction_pool.Resource_pool.Diff.t } | |||
| Gossip_transaction_pool_diff of { fee_payer_sigs : Signature.t list } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add fee payer key and nonce as well? Helps when debugging
src/lib/network_pool/intf.ml
Outdated
@@ -366,7 +366,8 @@ module type Transaction_pool_diff_intf = sig | |||
end | |||
|
|||
type Structured_log_events.t += | |||
| Transactions_received of { txns : t; sender : Envelope.Sender.t } | |||
| Transactions_received of | |||
{ fee_payer_sigs : Signature.t list; sender : Envelope.Sender.t } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well, fee payer key and nonce.
; ("diff", summary) | ||
] | ||
"exceeded capacity from $sender" ; | ||
[%log debug] ~metadata "exceeded capacity from $sender" ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have used these logs a lot when debugging missed/lost transactions. I'd prefer if we can include at least fee payer part of a transaction.
[%log debug] "Verified diff: $verified_diff" | ||
~metadata: | ||
[ ( "verified_diff" | ||
, Diff.verified_to_yojson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
!ci-build-me |
!ci-nightly-me |
https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/514 <- integration tests run |
!approved-for-mainnet |
There are many logs emitted by Mina which are unnecessarily large and in some case become oversized.
This PR aims to fix many of such logs, reducing the amount of data printed.
Explain your changes:
Explain how you tested your changes:
.mina-config/mina.log*
and oversized logs in.mina-config/mina-oversized-logs.log*
Checklist: