Repository navigation
Added a workflow that runs the RISC-V64 Erbium example in CI - #843
Merged
fdesbiens merged 2 commits intoDec 1, 2026
Merged
Conversation
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>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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