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

tests(pcli): 🔇 make large tracing event trace-level #3989

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

cratelyn
Copy link
Contributor

there are two issues at hand:

  • we log undelegation_result twice
  • undelegation_result can be many thousands of lines long

this means that the delegate_and_undelegate pcli network integration test thrashes the test output somewhat severely, and test logs aren't fully viewable in e.g. tmux, when running this locally.

https://github.com/penumbra-zone/penumbra/actions/runs/8210700115/job/22458602964#step:11:18

as of main at the time of writing, this CI job logs an event that is...

; xclip -o -selection clipboard | wc --bytes
243775

243Kb is disruptively long. (let alone 486Kb!)

so, let's make this field an opt-in field to display. we only log it once, and do so at the trace level.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label.

there are two issues at hand:
- we log `undelegation_result` twice
- `undelegation_result` can be many thousands of lines long

this means that the `delegate_and_undelegate` pcli network integration
test thrashes the test output somewhat severely, and test logs aren't
fully viewable in e.g. tmux, when running this locally.

https://github.com/penumbra-zone/penumbra/actions/runs/8210700115/job/22458602964#step:11:18

as of `main` at the time of writing, this CI job logs an event that
is...

```
; xclip -o -selection clipboard | wc --bytes
243775
```

243Kb is disruptively long. (_let alone 486Kb!_)

so, let's make this field an opt-in field to display. we only log it
once, and do so at the trace level.
@cratelyn cratelyn added C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking. A-testing Area: Relates to testing of Penumbra labels Mar 10, 2024
@cratelyn cratelyn self-assigned this Mar 10, 2024
@cratelyn cratelyn added this to the Sprint 2 milestone Mar 10, 2024
Copy link
Member

@erwanor erwanor left a comment

Choose a reason for hiding this comment

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

+1, in fact we could remove it completely, it was used to debug spurious errors

@cratelyn
Copy link
Contributor Author

+1, in fact we could remove it completely, it was used to debug spurious errors

nice! i removed it in 85fa01b, thank you for the suggestion!

@cratelyn cratelyn merged commit 5cb7aac into main Mar 11, 2024
6 checks passed
@cratelyn cratelyn deleted the kate/shush-undelegation-output branch March 11, 2024 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testing Area: Relates to testing of Penumbra C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants