Skip to content

Fix nightly CI and RPC perf failures - #32

Merged
kiwidream merged 1 commit into
mainfrom
fix-nightly-rpc-perf-ci
Jun 28, 2026
Merged

kiwidream merged 1 commit into
mainfrom
fix-nightly-rpc-perf-ci

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Pin scanner cargo-audit installation to a Rust 1.75-compatible version, with an override for future updates.
  • Add an explicit supports_p2mronly TestNode capability and disable it for RPC perf Bitcoin Core reference nodes.
  • Split the Nightly ARM unit-test job into two CTest shards through a shared CTEST_INCLUDE_RANGE hook.

Root Cause

The Nightly scanner job installed the newest cargo-audit, which now requires a newer Rust compiler than the runner package provides. The RPC perf comparison failed because Bitcoin Core reference nodes inherited qbit-only -p2mronly=0 startup arguments. The ARM unit-test Nightly job reached the long CTest tail and timed out before completing all tests.

Validation

  • bash -n ci/scanners/install-scanner-tools.sh ci/test/00_setup_env.sh ci/test/03_test_script.sh
  • python3 -m py_compile test/functional/test_framework/test_node.py test/functional/feature_rpc_perf.py
  • docker run --rm -v "$PWD:/repo" -w /repo rhysd/actionlint:latest .github/workflows/ci-nightly-heavy.yml
  • git diff --check
  • Targeted Python sanity check for TestNode supports_p2mronly behavior

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

Low Risk
Changes are limited to CI scripts, scanner install pinning, and functional-test node startup flags; no production node or consensus logic is modified.

Overview
Fixes three CI/test failures: scanner installs, cross-target RPC perf startup, and ARM nightly unit-test timeouts.

Nightly ARM unit tests are split into two matrix jobs that pass CTEST_INCLUDE_RANGE (1,139 and 140,99999) into the workflow env. 00_setup_env.sh exports the variable and 03_test_script.sh forwards it to ctest -I when set, so each shard runs a subset of tests in parallel.

Scanner tooling pins cargo-audit to 0.21.1 (override QBIT_SCANNER_CARGO_AUDIT_VERSION) and reinstalls with --force when the runner has a mismatched version, avoiding builds that need a newer Rust than the host provides.

RPC perf vs Bitcoin Core reference adds an explicit supports_p2mronly flag on TestNode (default unchanged: qbit when version is None). feature_rpc_perf.py sets supports_p2mronly=False for reference fixture nodes so regtest startup no longer injects qbit-only -p2mronly=0 into upstream bitcoind.

Reviewed by Cursor Bugbot for commit b67b7e8. Bugbot is set up for automated code reviews on this repo. Configure here.

@kiwidream
kiwidream force-pushed the fix-nightly-rpc-perf-ci branch from 6cc7831 to 703a756 Compare June 28, 2026 15:13
@kiwidream
kiwidream changed the base branch from main to 0.1.x June 28, 2026 15:13
@kiwidream
kiwidream changed the base branch from 0.1.x to main June 28, 2026 15:14
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.

1 participant