Skip to content

boards/rv-virt: drop stale venv activate from citest64 run.sh - #21155

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Brijesh-Thakkar:boards/rv-virt-citest64-runsh
Nov 1, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
Brijesh-Thakkar:boards/rv-virt-citest64-runsh

Conversation

@Brijesh-Thakkar

@Brijesh-Thakkar Brijesh-Thakkar commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

boards/risc-v/qemu-rv/rv-virt/configs/citest64/run.sh still has

# enable venv
source ${NTFCDIR}/venv/bin/activate
...
# disable venv
deactivate

around 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:

run.sh: line 32: .../nuttx-ntfc/venv/bin/activate: No such file or directory
run.sh: line 44: deactivate: command not found

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 $ret before the deactivate
line, so the exit status and the saved artifacts are the same as before. After
this change the remaining difference between citest/run.sh and
citest64/run.sh is the fatfs.img preparation that rv32 needs.

Testing

rv-virt:citest64 built 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 containing
venv/bin/activate or deactivate.

Before (upstream/master):

80:  + source .../nuttx-ntfc/venv/bin/activate
81:  .../citest64/run.sh: line 32: .../nuttx-ntfc/venv/bin/activate: No such file or directory
334: + deactivate
335: .../citest64/run.sh: line 44: deactivate: command not found

After (this change, same flow, run on this branch): no such lines (0 matches).

before after
passed / failed / skipped 71 / 0 / 7 71 / 0 / 7
NTFC session time 296.5 s 300.2 s
exit status of the build and test flow 0 0

The test results are unchanged, as expected: only the two harmless errors
disappear.

bash -n citest64/run.sh passes and ./tools/checkpatch.sh -g upstream/master..HEAD passes.

Assisted-by: Claude Code:claude-sonnet-5-5 (analysis, local test runs and drafting). I reviewed every change and ran the tests myself.

Copilot AI balanced review requested due to automatic review settings October 30, 2026 07:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: risc-v labels Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@jerpelea jerpelea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please follow contributor guidelines

please explain :
Generated-by: Claude Code

@Brijesh-Thakkar
Brijesh-Thakkar force-pushed the boards/rv-virt-citest64-runsh branch from a5a8399 to 1c7990c Compare October 30, 2026 15:33
@Brijesh-Thakkar

Copy link
Copy Markdown
Contributor Author

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]>
@Brijesh-Thakkar
Brijesh-Thakkar force-pushed the boards/rv-virt-citest64-runsh branch from 1c7990c to 733ccb0 Compare October 31, 2026 06:19
@Brijesh-Thakkar

Copy link
Copy Markdown
Contributor Author

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.

@xiaoxiang781216
xiaoxiang781216 merged commit 5c44169 into apache:master Nov 1, 2026
31 checks passed
@Brijesh-Thakkar
Brijesh-Thakkar deleted the boards/rv-virt-citest64-runsh branch November 2, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: risc-v Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants