Repository navigation
boards/rv-virt: drop stale venv activate from citest64 run.sh - #21155
Conversation
|
jerpelea
left a comment
There was a problem hiding this comment.
please follow contributor guidelines
please explain :
Generated-by: Claude Code
a5a8399 to
1c7990c
Compare
|
Thanks @jerpelea, I’d used the ASF Generated-by: tag instead of the Assisted-by: format from CONTRIBUTING.md 1.5. I’ve updated the commits to Assisted-by: Claude Code:claude-sonnet-5-5 above my Signed-off-by. The code is unchanged. To explain: I used Claude Code to help analyse the code, run the local tests and draft the commit and PR text. I reviewed every line of the change and ran the tests myself, and the Signed-off-by is mine |
… run.sh
citest64/run.sh still activates a virtual environment around the NTFC
call:
source ${NTFCDIR}/venv/bin/activate
...
deactivate
4497bac ("boards: use NTFC from pip for citest configs") switched the
citest scripts to the ntfc installed by pip and removed these lines from
the sabre-6quad, qemu-armv8a, rv-virt:citest and sim scripts, but missed
this one. CI does not create ${NTFCDIR}/venv, so the log has
run.sh: line 32: .../nuttx-ntfc/venv/bin/activate: No such file or
directory
run.sh: line 44: deactivate: command not found
Both errors are harmless because the script does not use "set -e", and
the NTFC exit status is saved in $ret before the "deactivate" line. Remove
the two lines so that citest64/run.sh matches the other citest scripts.
The exit status and the saved artifacts are unchanged.
Assisted-by: Claude Code:claude-sonnet-5-5
Signed-off-by: Brijesh Thakkar <[email protected]>
1c7990c to
733ccb0
Compare
|
The risc-v and qemu-armv8a failures came from a -Werror=shadow break in lib_libvsprintf.c on master (introduced in fee2c2e, fixed shortly after). I’ve rebased onto current master to pick up the fix; no change to the commit itself. |
Summary
boards/risc-v/qemu-rv/rv-virt/configs/citest64/run.shstill hasaround the NTFC call. This is a dead leftover of 4497bac ("boards: use NTFC
from pip for citest configs"), which removed these lines from the sabre-6quad,
qemu-armv8a, rv-virt:citest and sim scripts but missed citest64. CI does not
create
${NTFCDIR}/venv, so every citest64 run prints two errors:Remove the two lines (and their comments) so that citest64/run.sh matches the
other citest scripts.
Impact
None besides cleaner logs. Both errors were already harmless: the script has no
set -e, and the NTFC exit status is saved in$retbefore thedeactivateline, so the exit status and the saved artifacts are the same as before. After
this change the remaining difference between
citest/run.shandcitest64/run.shis thefatfs.imgpreparation that rv32 needs.Testing
rv-virt:citest64built and run with./tools/ci/cibuild.sh -c -A -N -R -S(xPack riscv-none-elf-gcc 14.3.0, ntfc 0.0.3, nuttx-ntfc-testing
release-0.0.2, qemu-system-riscv64 10.2.1), log lines containingvenv/bin/activateordeactivate.Before (upstream/master):
After (this change, same flow, run on this branch): no such lines (0 matches).
The test results are unchanged, as expected: only the two harmless errors
disappear.
bash -n citest64/run.shpasses and./tools/checkpatch.sh -g upstream/master..HEADpasses.Assisted-by: Claude Code:claude-sonnet-5-5 (analysis, local test runs and drafting). I reviewed every change and ran the tests myself.