Repository navigation
Description
Description / Steps to reproduce the issue
Since yesterday: rv-virt/citest has been failing test_hello onwards, or test_pipe onwards, hanging our CI Checks in GitHub and Build Farm. (GitHub will cancel it after 6 hours)
It might have been caused by one of these NuttX Commits:
- arch/toochain: Add toochain to gcc
- mps3-an547:ap: Disable cmd_wait() as it depends on procfs currently
- Earlier commits were OK
Or maybe one of these NuttX Apps Commits:
- nshlib/pipeline: Concat variable arguments failed
- nshlib/nsh_parse: Fix variable arguments concat error of nsh_execute()
- Earlier commits were OK
Also when one test fails: Why do the rest of the tests take a loooong time to fail, hanging our CI Checks in GitHub and Build Farm?
Fail at test_hello onwards: https://github.com/NuttX/nuttx/actions/runs/11833005280/job/32970891697#step:7:143
Configuration/Tool: rv-virt/citest
$ cd /github/workspace/sources/nuttx/tools/ci/testrun/script
$ python3 -m pytest -m 'qemu or rv_virt' ./ -B rv-virt -P /github/workspace/sources/nuttx -L /github/workspace/sources/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu -R qemu -C --json=/github/workspace/sources/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/pytest.json
test_framework/test_cmocka.py::test_cmocka PASSED [ 0%]
test_example/test_example.py::test_hello FAILED [ 0%]
test_example/test_example.py::test_helloxx FAILED [ 0%]
test_example/test_example.py::test_pipe FAILED [ 0%]
test_example/test_example.py::test_popen FAILED [ 0%]
test_example/test_example.py::test_usrsocktest FAILED [ 0%]
[ Everything fails very slowly ]
Fail at test_pipe onwards: https://github.com/NuttX/nuttx/actions/runs/11850442831/job/33025374105#step:7:145
test_framework/test_cmocka.py::test_cmocka PASSED [ 0%]
test_example/test_example.py::test_hello PASSED [ 0%]
test_example/test_example.py::test_helloxx PASSED [ 0%]
test_example/test_example.py::test_pipe FAILED [ 0%]
test_example/test_example.py::test_popen FAILED [ 0%]
test_example/test_example.py::test_usrsocktest FAILED [ 0%]
[ Everything fails very slowly ]
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu LTS at GitHub Actions
NuttX Version
master
Issue Architecture
[Arch: risc-v]
Issue Area
[Area: Build System]
Verification
- I have verified before submitting the report.
Activity
lupyuen commentedon Nov 16, 2024
The Timeout Values are configured to One Minute or longer for some Python Tests. What if we reduce the Timeout Values? https://github.com/search?q=repo%3Aapache%2Fnuttx+timeout%3D+language%3APython+path%3A%2F%5Etools%5C%2Fci%5C%2Ftestrun%5C%2F%2F&type=code
Update: Nope, doesn't work: https://github.com/lupyuen/nuttx-build-farm/blob/main/run-job-macos.sh#L107-L131
Somehow the Timeout Value is hard-coded inside
expect? https://github.com/apache/nuttx/blob/master/tools/ci/testrun/utils/common.py#L229-L288lupyuen commentedon Nov 16, 2024
For now we patched the NuttX Mirror Repo: Kill the CI Test if it exceeds 2 hours. Also for Ubuntu Build Farm and macOS Build Farm.
CI: Kill CI Test after 2 hours
CI: Kill CI Test after 2 hours
CI: Kill CI Test after 2 hours
xiaoxiang781216 commentedon Dec 4, 2024
@lupyuen is it still broken after #14950
lupyuen commentedon Dec 4, 2024
@xiaoxiang781216 Yep CI Test is still failing, according to NuttX Dashboard:
https://nuttx-dashboard.org/d/fe2q876wubc3kc/nuttx-build-history?from=now-7d&to=now&timezone=browser&var-arch=$__all&var-subarch=$__all&var-board=rv-virt&var-config=citest&var-group=$__all&var-Filters=
https://github.com/NuttX/nuttx/actions/runs/12156309894/job/33899821697#step:7:88
lupyuen commentedon Dec 11, 2024
NuttX
psis crashing inside QEMU RISC-V 32-bit, causing CI Test to fail. But why ispscrashing forrv-virt:citest, but not other configs? 🤔See the Complete Log
See the CI Test Log
tmedicci commentedon Dec 12, 2024
Apparently, #15075 decreased the size of the available stack size and this makes
psfail onrv-virt:citest. I'm running some tests to confirm and submit a PR increasing the init task stack size.tmedicci commentedon Dec 12, 2024
As I have said earlier at #15165, it didn't fix the problem of the failing CI, but fixed the problem related to
pscommand crashing.I continued to investigate it and I was able to check that the commit that broke the CI was 656883f. I couldn't investigate it further, but I think this gives us a start point.
xiaoxiang781216 commentedon Dec 12, 2024
656883f just modify arm specific files, it's very strange that this patch could break RISCV chip, @tmedicci .
tmedicci commentedon Dec 12, 2024
I will double-check. You can verify it with:
(and then substitute
git checkout 656883fec5561ca91502a26bf018473ca0229aa4togit checkout 656883fec5561ca91502a26bf018473ca0229aa4~1)tmedicci commentedon Dec 12, 2024
Yes, the test is not conclusive. I ran it twice and the results are different...
lupyuen commentedon Dec 13, 2024
Thank you so much Tiago! I created a new Bug Report for the Load Access Fault at ltp_interfaces_pthread_barrierattr_init_2_1:
CI: Kill CI Test after 2 hours