You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are tests out there that as part of their logic clear the kernel message ring buffer. This could render the dmesg check plugin useless, because it only checks the delta between test start and test end. In addition it's not always desired that the ring buffer is cleared when using the dmesg check plugin.
A good way to not be intrusive and get everything that was logged during test execution is getting the information from the journal, if the system has journald running.
An alternative to that is to watch and parse /dev/kmsg, but that means re-implementing partially what dmesg or journald do, so I think it's not the desired way.
The text was updated successfully, but these errors were encountered:
There are tests out there that as part of their logic clear the kernel message ring buffer. This could render the dmesg check plugin useless, because it only checks the delta between test start and test end.
I'm afraid cases like this will be hard to amend in general, as long as a test messes with what a check observes, there will always be space for misunderstanding and unexpected outcomes. Reading your comments below, there seems to be a way how to avoid such a problem in this case, but "you're on your own" might be valid answer.
In addition it's not always desired that the ring buffer is cleared when using the dmesg check plugin.
We can add a key to control this behavior. It is there to limit the scope of saved data to the duration of a single test.
A good way to not be intrusive and get everything that was logged during test execution is getting the information from the journal, if the system has journald running.
It could be the first option, but without (running) journald, dmesg check may very well fall back to the current implementation.
An alternative to that is to watch and parse /dev/kmsg, but that means re-implementing partially what dmesg or journald do, so I think it's not the desired way.
There are tests out there that as part of their logic clear the kernel message ring buffer. This could render the dmesg check plugin useless, because it only checks the delta between test start and test end. In addition it's not always desired that the ring buffer is cleared when using the dmesg check plugin.
A good way to not be intrusive and get everything that was logged during test execution is getting the information from the journal, if the system has journald running.
An alternative to that is to watch and parse
/dev/kmsg
, but that means re-implementing partially whatdmesg
orjournald
do, so I think it's not the desired way.The text was updated successfully, but these errors were encountered: