Skip to content

Fix scanner decoding and ARM byte compare - #61

Merged
kiwidream merged 1 commit into
mainfrom
qbit-ci-failure-remediation-main
Jun 30, 2026
Merged

kiwidream merged 1 commit into
mainfrom
qbit-ci-failure-remediation-main

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes two CI failure modes from Nightly CI:

  • Harden scanner subprocess output decoding so non-UTF-8 bytes in captured stderr cannot crash evidence collection.
  • Align the libbitcoinpqc vendored provenance scanner with the documented public Qbit-Org/qbit-libbitcoinpqc v0.3.0 tag and verify the vendored tree directly against the recorded git-subtree-split tree.
  • Avoid the GCC 13 armhf -Werror=stringop-overread path in the P2MR wallet signing retry test by replacing std::vector<unsigned char> relational comparison with an explicit byte comparator.

Testing

  • Built locally.
  • Ran focused unit or functional tests for the changed area.
  • Ran lint or formatting checks relevant to this change.
  • Not run. Reason:

Focused checks run:

  • python3 -m py_compile ci/scanners/run-scanners.py
  • Decode smoke test for invalid byte 0x9d
  • python3 ci/scanners/run-scanners.py --mode nightly --scanner vendored_inventory --source . --output-root .context/ci-run-28426727155/main-vendored-inventory --fail-policy infra-only
  • git diff --check
  • Minimal c++ -std=c++20 compile smoke for the byte comparator

Target Branch

  • This PR targets main or a maintainer-requested release branch such as 0.1.x.

Risk / Review Notes

  • Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.
  • No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.

Notes:

This is limited to CI scanner robustness/provenance validation and test-only wallet code.

Docs / Process Impact

Choose exactly one:

  • I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation.
  • No public docs update needed. Reason:

libbitcoinpqc Subtree Checklist (if src/libbitcoinpqc changed)

  • Upstream fix is merged into the maintained libbitcoinpqc branch used by qbit.
  • Curated branch qbit-subtree was refreshed with prune.
  • Subtree update was done with contrib/devtools/update-libbitcoinpqc-subtree.sh.
  • test/lint/git-subtree-check.sh -r src/libbitcoinpqc passes locally.
  • Followed doc/subtrees/libbitcoinpqc.md.

Not applicable: this PR does not change src/libbitcoinpqc. It changes the scanner’s provenance check to match the existing documented public tag workflow.


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 scanner robustness/provenance validation and test-only wallet ordering; no consensus, wallet production, or crypto behavior changes.

Overview
Addresses Nightly CI failures by making scanner subprocess capture tolerate invalid UTF-8 in stdout/stderr, and by aligning vendored libbitcoinpqc provenance with the documented public Qbit-Org/qbit-libbitcoinpqc v0.3.0 tag instead of the old private libbitcoinpqc-qbit / curated-branch workflow.

The vendored inventory scanner now pins refs/tags/v0.3.0, drops the curated ref when unused, prefers peeled tag commits in git ls-remote, and checks that HEAD:src/libbitcoinpqc matches the recorded git-subtree-split tree instead of invoking git-subtree-check.sh. README text no longer describes token-based upstream reads as the primary path.

In wallet_tests, P2MR leaf ordering uses an explicit byte-by-byte comparator instead of std::vector relational operators to avoid GCC 13 armhf -Werror=stringop-overread.

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

@kiwidream
kiwidream merged commit 5d9c564 into main Jun 30, 2026
33 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