Skip to content

Audit 2026-09: Revive CI and register the O unit/functional tests (CMake lists + test_runner) #24

Open

Description

@cno127

Summary

CI is dead — zero workflow runs exist for the current tip of either branch (last runs Oct 2025, all failing) — and the O-specific tests that do exist are not wired into the build or the functional test runner. Reviving CI is the single highest-leverage action in the repo right now: it converts every consensus fix from this audit cycle into an enforceable regression.

Evidence (0128978 (main) / 04792b4 (ARCH-GlobalPaymentsV1))

  • Checks API returns no runs for either branch tip; .github/workflows/ci.yml exists but hasn't produced a run since Oct 2025.
  • src/test/o_integration_tests.cpp and src/test/o_rpc_tests.cpp exist but are absent from src/test/CMakeLists.txt — never compiled. (simple_o_tests.cpp, user_consensus_tests.cpp are listed and would run.)
  • test/functional/test_o_databases.py and test/functional/test_o_blockchain_sync.py are unregistered in test_runner.py — the project's own test-list checker exits 1 on this.
  • Verified independently: the Bitcoin test-framework unit suite passes (27/27) and all 353 repo .py files compile — the scaffolding is healthy; it just isn't running anywhere.

Deliverables

  • Minimal Linux build + unit-test job green on main (even single-config)
  • o_integration_tests.cpp / o_rpc_tests.cpp added to src/test/CMakeLists.txt (fix compile breaks that surface)
  • Both O functional tests registered in test_runner.py (checker exits 0)
  • Sanitizer (ASan) variant job — needed to regression-test the script-check lifetime fix
  • CI required before merge on main

No design decisions involved; this is pure infrastructure and very contributor-friendly.

Found during the September 2026 full-code review (static trace + compiled micro-reproductions against unmodified repo sources). Want to work on this? Comment to claim it.

Activity

  1. added
    help wanted
    good first issue
    testing
    on Sep 12, 2026
  2. cno127 commented on Sep 12, 2026

    @cno127
    OwnerAuthor

    Status — 2026-09-12, PR #26 opened for the first two deliverables.

    ⚠️ Blocker for a repo admin — nothing runs until this is flipped: GitHub Actions is disabled at the repository level (GET /repos/cno127/o-blockchain/actions/permissions → "enabled": false). That — not just red jobs — is why there has been no run since Oct 2025. Enabling it needs the Administration permission (PUT …/actions/permissions → 403 for the tokens available to me).

    Steps (Settings → Actions → General):

    1. Actions permissions: Allow all actions and reusable workflows (or "Allow cno127 actions and select non-cno127" + GitHub-owned — ci: revive CI — one Linux build+test job; register the O functional tests (refs #24) #26 only uses actions/checkout, actions/cache, actions/upload-artifact).
    2. Workflow permissions: Read repository contents and packages permissions; leave "Allow GitHub Actions to create and approve pull requests" unchecked. (ci: revive CI — one Linux build+test job; register the O functional tests (refs #24) #26 also declares permissions: contents: read itself.)
    3. Then re-trigger ci: revive CI — one Linux build+test job; register the O functional tests (refs #24) #26 (close/reopen or push) — enabling Actions does not retroactively run existing PRs.

    The first run of #26 is the real test: main has not been compiled by CI in eleven months, so a red build there is expected information, not a reason to widen the matrix. Fixes go as follow-up commits on the same branch.

  3. added
    status: pr-open
    on Sep 13, 2026
  4. added
    model: fast
    on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wantedmodel: faststatus: pr-opentesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions