Skip to content

test(mempool): Allow custom log levels on reactor tests#3719

Merged
hvanz merged 16 commits intomainfrom
hvanz/log-level-testing
Aug 19, 2024
Merged

test(mempool): Allow custom log levels on reactor tests#3719
hvanz merged 16 commits intomainfrom
hvanz/log-level-testing

Conversation

@hvanz
Copy link
Collaborator

@hvanz hvanz commented Aug 16, 2024

Also disable the P2P log messages on the switches, which are not relevant for mempool.

In particular, this PR changes the log level of TestReactor_MaxTxBytes, which is very verbose and it currently could take 12s with the default "debug" level. With "info" level it takes 300ms.

For reviewers, the PR can be reviewed commit by commit.

@hvanz hvanz added mempool testing related to unit testing in general labels Aug 16, 2024
@hvanz hvanz self-assigned this Aug 16, 2024
@hvanz hvanz requested a review from a team as a code owner August 16, 2024 08:28
@hvanz hvanz requested a review from a team August 16, 2024 08:28
Copy link
Collaborator

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@hvanz hvanz enabled auto-merge August 19, 2024 07:27
@hvanz hvanz added this pull request to the merge queue Aug 19, 2024
Merged via the queue into main with commit 4c598bf Aug 19, 2024
@hvanz hvanz deleted the hvanz/log-level-testing branch August 19, 2024 07:31
mergify bot pushed a commit that referenced this pull request Aug 19, 2024
Also disable the P2P log messages on the switches, which are not
relevant for mempool.

In particular, this PR changes the log level of
`TestReactor_MaxTxBytes`, which is very verbose and it currently could
take 12s with the default "debug" level. With "info" level it takes
300ms.

For reviewers, the PR can be reviewed commit by commit.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 4c598bf)

# Conflicts:
#	mempool/reactor_test.go
melekes pushed a commit that referenced this pull request Aug 19, 2024
…) (#3753)

Also disable the P2P log messages on the switches, which are not
relevant for mempool.

In particular, this PR changes the log level of
`TestReactor_MaxTxBytes`, which is very verbose and it currently could
take 12s with the default "debug" level. With "info" level it takes
300ms.

For reviewers, the PR can be reviewed commit by commit.
<hr>This is an automatic backport of pull request #3719 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Hernán Vanzetto <15466498+hvanz@users.noreply.github.com>
Co-authored-by: hvanz <hernan.vanzetto@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@hvanz hvanz added the logs Anything relating to logging label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logs Anything relating to logging mempool testing related to unit testing in general

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants