Skip to content

Use precompiled RISC-V test artifacts - #542

Merged
mohanson merged 3 commits into
nervosnetwork:release-0.24from
mohanson-fork:test_artifact
Sep 20, 2026
Merged

mohanson merged 3 commits into
nervosnetwork:release-0.24from
mohanson-fork:test_artifact

Conversation

@mohanson

@mohanson mohanson commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Replace generated RISC-V test binaries with precompiled artifacts covering architecture, cryptography, and specification tests. Simplify machine_build by consolidating multiple version- and ISA-specific helpers into generic asm and int functions, and update affected tests to pass the required VM version, ISA, and arguments explicitly.

@chainTe

chainTe commented Sep 20, 2026

Copy link
Copy Markdown

Security review

Result: 1 confirmed finding (Low)

Reviewed range: e1b4f3e642d531bdce342bcce798bdff4eb1b139..9307752dfdcaf24a8d1eabb0f6a141c4b26320e7

Review model: GPT-5 Codex

Finding

All 141 instruction-named tests/artifact/arch/*.elf fixtures have empty test spans (rvtest_code_begin == rvtest_code_end) and immediately exit with status 0. The new runner only requires successful exit, so these fixtures pass in both interpreter and ASM configurations without exercising their advertised instructions. This creates a test/release-integrity gap in consensus-sensitive ISA coverage, although no production VM runtime change or deployed CKB impact was identified in this test-only PR.

Please regenerate the architecture fixtures from reviewed source and add reproducible provenance plus structural checks that reject empty test spans, unexpected duplicate hashes, and missing instruction-specific expectations.

Validation

  • Statically inspected all 256 added ELF artifacts.
  • cargo test --test test_artifact: passed.
  • cargo test --features asm --test test_artifact: passed.
  • Broad existing suites were not run locally; CI remains the broad regression gate.

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 review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Replaces generated RISC-V test binaries with precompiled artifacts and simplifies test machine construction.

Changes:

  • Adds architecture, cryptography, and specification artifact coverage.
  • Consolidates interpreter and assembly helpers.
  • Updates tests with explicit VM versions, ISAs, and arguments.
File Description
tests/​test_signal_pause.rs Updates pause tests.
tests/​test_resume.rs Updates snapshot test setup.
tests/​test_mop.rs Updates MOP test configurations.
tests/​test_b_extension.rs Updates bit-extension tests.
tests/​test_artifact.rs Runs precompiled artifact suites.
tests/​test_a_extension.rs Updates atomic-extension tests.
tests/​machine_build.rs Provides generic interpreter and assembly builders.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mohanson
mohanson merged commit 495de44 into nervosnetwork:release-0.24 Sep 20, 2026
7 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.

4 participants