Skip to content

Added a workflow that runs the RISC-V64 Erbium example in CI - #843

Merged
fdesbiens merged 2 commits into
eclipse-threadx:devfrom
Dev10-sys:feature/ci-erbium-simulator
Dec 1, 2026
Merged

fdesbiens merged 2 commits into
eclipse-threadx:devfrom
Dev10-sys:feature/ci-erbium-simulator

Conversation

@Dev10-sys

@Dev10-sys Dev10-sys commented Nov 20, 2026 •

Copy link
Copy Markdown

Issue #788 points out that the Erbium example added in #787 has no CI coverage, so changes to shared RISC-V64 code could break it silently. To fix this, I added .github/workflows/erbium_simulator.yml modeled after r52_fvp.yml. The workflow builds demo_threadx.elf and runs it along with the regression test scripts on the erbium_emu simulator, caching both the toolchain and simulator build to save time.

Tested locally on Ubuntu: erbium_emu builds fine, demo_threadx.elf executes as expected, and test_uart_ticks / test_plic_race both pass.

Fixes: #788

Dev10-sys and others added 2 commits November 20, 2026 14:43
The Erbium board example added in eclipse-threadx#787 was not referenced by any workflow in
.github/workflows, so changes to the shared RISC-V64 port files or the example
could break unnoticed.

Add .github/workflows/erbium_simulator.yml following the simulator model in
r52_fvp.yml. The workflow builds demo_threadx.elf and executes it on the
et-platform functional simulator (erbium_emu) at revision 836a4ab, asserting
UART initialization and thread scheduling, and runs the regression tests in
ports/risc-v64/gnu/example_build/erbium/test/run_simulator_tests.sh. Both the
RISC-V64 GNU toolchain and erbium_emu are cached across runs.

Verified locally: built erbium_emu, compiled demo_threadx.elf with GCC 15.2.0,
executed the demo on the simulator, and confirmed that both test_uart_ticks and
test_plic_race pass.

Fixes: eclipse-threadx#788
Signed-off-by: Dev10-sys <kalpanagola9897@gmail.com>
The demo check accepted two startup messages even when the simulator
failed after printing them or the guest halted before completing the demo.

Require the expected cycle-limit exit and all six thread entry messages.
Reject guest traps and print the simulator and UART logs on failure.

The demo and both regression tests passed on the pinned Erbium simulator.
The check rejected six controlled failure cases. Actionlint passed.

Assisted-by: Codex (GPT-6.2-Sol) <noreply@openai.com>
@fdesbiens

Copy link
Copy Markdown
Contributor

Hi @Dev10-sys, thanks for adding CI for Erbium. The original demo check could pass if the simulator failed after printing the two startup messages. I updated it to require the expected cycle-limit exit and all six thread entry messages, fail on guest traps, and print both the simulator and UART logs on failure.

I ran the demo and both regressions on the pinned simulator. All three passed, and the updated check rejected six controlled failure cases.

@fdesbiens
fdesbiens merged commit e63400b into eclipse-threadx:dev Dec 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants