-
Notifications
You must be signed in to change notification settings - Fork 7.5k
tests/posix/fs test show messages dropped in the logs #14903
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
Comments
same issue with tests/kernel/common
|
Noticing the same problem on qemu_nios2 and altera_max10 for samples/subsys/logging/logger/
Unfortunately for me, my test harness in sample.yaml is looking for the string |
I don't see any connection described here between logging messages being dropped and tests fail. Except for this one:
But then, your the harness is the culprit, and that's what needs to be fixed. Unassigning from myself. If there's need for logging contact, it's @nordic-krch. I don't assign to him myself, as again, I don't see how logging is involved with any actual problems reported here. |
@arun1joshi @cinlyooi-intel this is just a result of a buffer that is too small. You can increase the buffer size with:
in your Since there are memory constraints in some of the boards I don't want to increase that size for all boards. |
Expected behaviour, see previous comment. |
I am reopening this because the issue did not happen before. It just happens now. Previously we were happily seeing all console messages, including very long ones. |
Looks like a real bug to me. offending commit:
|
on this board, |
i'll take a look at that. As @nashif mentioned, it has to do with the fact that with RTT enabled printk obligatory goes through the logger. This commit (e980082) enabled RTT by default on nordic boards. There are then 2 options:
@jarz-nordic when you've done #12971, was your intention to enable RTT backend by default? What was the reasoning? |
@nordic-krch : Yes my intention was to enable RTT by default. Rationale behind is that these microcontrollers have a lot of memory so extra space for RTT won't hurt. In addition it enables a feature I need in shell tests for RTT backend. There was a github issue that file with this backend is not compiled and tested. |
@nordic-krch how about another option, which is enabling |
@carlescufi , yes, that could be an option. Timing of printk going through logger with |
raising to high, this is causing many tests to fail. |
That's what appears to be the issue. As discussed before, printk is one thing, logging is another. Trying to mix them up leads ... well, to weird mix-ups. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
suddenly, running tests/posix/fs test cases shows messages dropped in logs.
I can see the issue for nrf52840_pca10056 board, but the same test passes for qemu_x86.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
all test cases should be reported pass/fail
Impact
cannot judge if the test cases result is pass/fail?
Environment (please complete the following information):
Additional context
If I change to commit with the SDK v0.9.5, say [2320973], i don't see this issue and all test cases are reported pass.
The text was updated successfully, but these errors were encountered: