#pull-request #rtos #ci #nuttx

app nuttx-test-bot

Bot that Builds and Tests Pull Requests for Apache NuttX RTOS

5 stable releases

new 1.0.4 Mar 13, 2025
1.0.3 Mar 6, 2025
1.0.2 Feb 23, 2025
1.0.1 Feb 17, 2025
1.0.0 Feb 15, 2025

#755 in Command line utilities

Download history 239/week @ 2025-02-15 164/week @ 2025-02-22 131/week @ 2025-03-01 86/week @ 2025-03-08

620 downloads per month

Apache-2.0

33KB
365 lines

Test Bot for Pull Requests ... Tested on Real Hardware (Apache NuttX RTOS / Oz64 SG2000 RISC-V SBC)

Apache NuttX RTOS: Bot that will Build and Test a Pull Request

Read the article...

We might allow a PR Comment to trigger a Build + Test on QEMU. For example, this PR Comment...

@nuttxpr test rv-virt:knsh64

Will trigger our Test Bot to download the PR Code, and run Build + Test on QEMU RISC-V. Or on Real Hardware...

@nuttxpr test milkv_duos:nsh

Super helpful for Testing Pull Requests before Merging. But might have Security Implications 🤔

How To Run

See run.sh...

#!/usr/bin/env bash
## Build and Test PRs for NuttX Kernel and Apps

set -e  ## Stop on error

## Install QEMU Emulators
sudo apt install \
  qemu-system-riscv64 \
  qemu-system-aarch64

## Set the GitHub Token. Should have permission to Post PR Comments.
## export GITHUB_TOKEN=...
. $HOME/github-token.sh

## Set the GitLab Token for creating snippets
## export GITLAB_TOKEN=...
. $HOME/gitlab-token.sh

set -x  ## Echo commands

## Enable Rust Logging
export RUST_LOG=info 
export RUST_BACKTRACE=1

for (( ; ; ))
do
  cargo run
  sleep 300
done

Build + Test Bot is hosted on this hefty Ubuntu Xeon Workstation

Build + Test Bot is hosted on this hefty Ubuntu Xeon Workstation

Dependencies

~15–29MB
~442K SLoC