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
Do we need to fail the case if we could not get the logger?
I think what you're asking is: "is the logger a low priority feature"? I read the description of this request as a pretty clear "no" but I'd like to hear more from others.
As we have standalone test case for logger.
It's risky to rely on a single test, if the test is broken then the feature can be broken and no one will notice. Even if the test is not broken, the logger could be broken only in some scenarios not tested by the logger test. I think the links above are some real-world examples of either.
A test is never meant to test only one thing, the more extras each test can test (in no extra time) and the better. Unexpected failures mean extra bugs are found which is great.
These questions sounds strange to me at a time when the logger seems to be working fine, I mean all tests in #373 pass right now. I mean it sounds very strange to worry about failures we don't even have right now (this reminds me of recent #372) It almost sounds like like a desire to find FEWER bugs / and have more "green failures"?
@marc-hb What I want to make clarify about is the criterion for our test case pass/fail.
Should we make aplay test fail if a debug feature is not working?
A test is never meant to test only one thing, the more extras each test can test (in no extra time) and the better.
I do not think we are adding test cases in this way. Each test case in this repo is focusing in a single feature. This will help us to narrow down the issue.
I do not think we are adding test cases in this way. Each test case in this repo is focusing in a single feature. This will help us to narrow down the issue.
This is :
neither possible because sof-test are not unit tests. They all run from user space so each test involves many lines of code
nor desirable unless you want to find fewer bugs - as it happened in the links above and elsewhere.
They didn't pass, they only appear to pass because I misused exit_failure=2 in #373 where 2 means "Not Applicable" and Not Applicable is green. I didn't know 2 was a special value.
I mean it sounds very strange to worry about [logger] failures we don't even have right now
2020-09-18 05:13:41 UTC [REMOTE_INFO] nlines=1 /home/ubuntu/sof-test/logs/multiple-pipeline-playback/2020-09-18-05:13:29-16938/slogger.txt
2020-09-18 05:13:41 UTC [REMOTE_ERROR] Empty logger trace
2020-09-18 05:13:41 UTC [REMOTE_INFO] Test Result: FAIL!
@marc-hb Yes, they are related. without #359, these two case are actually testing nothing, and always pass. It is the sof-logger issue which makes the multiple-pipeline-playback/capture failed after your #373 patch
Activity
marc-hb commentedon Sep 11, 2020
First part submitted in #373, please help review.
marc-hb commentedon Sep 15, 2020
From @xiulipan in #373
marc-hb commentedon Sep 15, 2020
I think what you're asking is: "is the logger a low priority feature"? I read the description of this request as a pretty clear "no" but I'd like to hear more from others.
It's risky to rely on a single test, if the test is broken then the feature can be broken and no one will notice. Even if the test is not broken, the logger could be broken only in some scenarios not tested by the logger test. I think the links above are some real-world examples of either.
A test is never meant to test only one thing, the more extras each test can test (in no extra time) and the better. Unexpected failures mean extra bugs are found which is great.
These questions sounds strange to me at a time when the logger seems to be working fine, I mean all tests in #373 pass right now. I mean it sounds very strange to worry about failures we don't even have right now (this reminds me of recent #372) It almost sounds like like a desire to find FEWER bugs / and have more "green failures"?
xiulipan commentedon Sep 15, 2020
@marc-hb What I want to make clarify about is the criterion for our test case pass/fail.
Should we make aplay test fail if a debug feature is not working?
I do not think we are adding test cases in this way. Each test case in this repo is focusing in a single feature. This will help us to narrow down the issue.
marc-hb commentedon Sep 15, 2020
This is :
marc-hb commentedon Sep 18, 2020
They didn't pass, they only appear to pass because I misused
exit_failure=2in #373 where 2 means "Not Applicable" and Not Applicable is green. I didn't know 2 was a special value.Now we have one: pretty much all tests involving the logger fail to kill -INT it at the end, see new bug https://github.com/thesofproject/sof/issues/3433 [
BUG] sof-logger resisted pkill -INT, using -KILLmarc-hb commentedon Sep 18, 2020
multipipeline tests returning an empty trace: #380 (comment)
hijack.sh: fail if the logger trace is empty
hijack.sh: fail if the logger trace is empty
marc-hb commentedon Sep 18, 2020
multiple-pipeline-capture.shandmultiple-pipeline-playback.shhave a consistently empty trace on about half the platforms: https://sof-ci.01.org/softestpr/PR383/build194/devicetest/@aiChaoSONG does this seem related to your #359 PR?
hijack.sh: fail if the logger trace is empty
aiChaoSONG commentedon Sep 18, 2020
@marc-hb Yes, they are related. without #359, these two case are actually testing nothing, and always pass. It is the sof-logger issue which makes the multiple-pipeline-playback/capture failed after your #373 patch
15 remaining items
debugability: logger: add note on DMA trace limitations
debugability: logger: add note on DMA trace limitations
debugability: logger: add note on DMA trace limitations
marc-hb commentedon Jan 21, 2022
More DMA unreliability:
mengdonglin commentedon Mar 20, 2022
Low priority to P2 as SOF is going to use native Zephyr log implementation. @marc-hb @plbossart
marc-hb commentedon Mar 29, 2022
I don't understand, Zephyr bugs can be solved without any logs?
marc-hb commentedon Jul 26, 2022
... should finish this but it's currently blocking, triggering some failures.
mengdonglin commentedon Sep 21, 2022
Blocked by mtrace enabling atm.
marc-hb commentedon Sep 28, 2023
This has been finally fixed by @kv2019i:
And it does catch mtrace issues like thesofproject/linux#4618 and others.
The test works, closing.