-
Notifications
You must be signed in to change notification settings - Fork 205
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
Prevent unnecessary linebreak in cache service logging #4601
Prevent unnecessary linebreak in cache service logging #4601
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4601 +/- ##
=======================================
Coverage 97.99% 97.99%
=======================================
Files 375 375
Lines 34440 34442 +2
=======================================
+ Hits 33748 33750 +2
Misses 692 692
Continue to review full report at Codecov.
|
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.
The log in the verification run now misses line breaks, e.g. look at this section:
[2022-04-09T18:45:07.696242+02:00] [info] Download of openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220408-Media.iso.sha256 processed:
[info] [#710] Cache size of "/var/lib/openqa/cache" is 108 GiB, with limit 180 GiB [info] [#710] Downloading "openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220408-Media.iso.sha256" from "[http://openqa1-opensuse/tests/2288695/asset/other/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220408-Media.iso.sha256"](http://openqa1-opensuse/tests/2288695/asset/other/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220408-Media.iso.sha256) [info] [#710] Content of "/var/lib/openqa/cache/openqa1-opensuse/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220408-Media.iso.sha256" has not changed, updating last use
[2022-04-09T18:45:07.698938+02:00] [debug] Found HDD_1, caching opensuse-Tumbleweed-x86_64-20220408-textmode@64bit.qcow2
Hmpf, so what's the opposite of |
Also I hoped that a test would fail so that I could extend something. |
7ae03d4
to
efdfedc
Compare
Updated after pair-programming session with Martchus, hotpatched on w7 with:
|
The cache service log output looks like this: ``` [2021-05-20T06:08:43.0426 CEST] [info] Download of Tumbleweed.x86_64-1.0-virtualbox-Snapshot20210519.vagrant.virtualbox.box processed: [info] [os-autoinst#51] Cache size of "/var/lib/openqa/cache" is 17GiB, with limit 180GiB [info] [os-autoinst#51] Downloading "Tumbleweed.x86_64-1.0-virtualbox-Snapshot20210519.vagrant.virtualbox.box" from "http://openqa1-opensuse/tests/1750006/asset/other/Tumbleweed.x86_64-1.0-virtualbox-Snapshot20210519.vagrant.virtualbox.box" [info] [os-autoinst#51] Size of "/var/lib/openqa/cache/openqa1-opensuse/Tumbleweed.x86_64-1.0-virtualbox-Snapshot20210519.vagrant.virtualbox.box" is 312MiB, with ETag ""137afea0-5c2b8033306c0"" [info] [os-autoinst#51] Download of "/var/lib/openqa/cache/openqa1-opensuse/Tumbleweed.x86_64-1.0-virtualbox-Snapshot20210519.vagrant.virtualbox.box" successful, new cache size is 19GiB ``` So there is a redundant linebreak after every `[info] [os-autoinst#51]` which we can prevent. Related progress issue: https://progress.opensuse.org/issues/92902
efdfedc
to
210dbf6
Compare
Updated, see verified in https://openqa.opensuse.org/tests/2291609/logfile?filename=autoinst-log.txt Now the output looks like this:
so no redundant linebreaks, no redundant markers, every line is properly prefixed and every block is terminated by a blank line. |
The cache service log output looks like this:
So there is a redundant linebreak after every
[info] [#51]
which we can prevent.Verified in https://openqa.opensuse.org/tests/2291609/logfile?filename=autoinst-log.txt
Now the output looks like this:
so no redundant linebreaks, no redundant markers, every line is properly prefixed and every block is terminated by a blank line.
Related progress issue: https://progress.opensuse.org/issues/92902