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: improve the signal/noise ratio of the test logs by 63% #85

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

muxator
Copy link

@muxator muxator commented Sep 10, 2024

Before this change, the logs of the tests were littered with messages from Pillow:

2024-09-10 18:04:55 [   DEBUG] STREAM b'IHDR' 16 13 (PngImagePlugin.py:197)
2024-09-10 18:04:55 [   DEBUG] STREAM b'sBIT' 41 4 (PngImagePlugin.py:197)
2024-09-10 18:04:55 [   DEBUG] b'sBIT' 41 4 (unknown) (PngImagePlugin.py:753)
2024-09-10 18:04:55 [   DEBUG] STREAM b'pHYs' 57 9 (PngImagePlugin.py:197)

After this change, on my machine, the size of the log produced by running "make test" goes from 1405 to 513 lines, a 63% reduction, that hopefully increases the signal noise ratio of the test logs.

This PR should be merged after #84.

Before this change, the log of the tests were littered with messages from
Pillow:
    2024-09-10 18:04:55 [   DEBUG] STREAM b'IHDR' 16 13 (PngImagePlugin.py:197)
    2024-09-10 18:04:55 [   DEBUG] STREAM b'sBIT' 41 4 (PngImagePlugin.py:197)
    2024-09-10 18:04:55 [   DEBUG] b'sBIT' 41 4 (unknown) (PngImagePlugin.py:753)
    2024-09-10 18:04:55 [   DEBUG] STREAM b'pHYs' 57 9 (PngImagePlugin.py:197)

After this change, on my machine, the size of the log produced by running
"make test" goes from 1405 to 513 lines, a 63% reduction, that hopefully
increases the signal noise ratio of the test logs.
@muxator muxator force-pushed the tests-logs-remove-littering-by-pillow branch 2 times, most recently from cf86f1a to 8d5afd6 Compare September 11, 2024 12:12
@muxator muxator force-pushed the tests-logs-remove-littering-by-pillow branch from 8d5afd6 to 4c49640 Compare September 13, 2024 08:52
@AldoGl
Copy link
Contributor

AldoGl commented Sep 13, 2024

Small changes and a big effect on test clarity, can be merged for me!

@muxator muxator force-pushed the tests-logs-remove-littering-by-pillow branch from 4c49640 to 9c51d6c Compare September 13, 2024 11:00
@muxator muxator merged commit 7f083a5 into main Sep 13, 2024
13 checks passed
@muxator muxator deleted the tests-logs-remove-littering-by-pillow branch September 13, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants