RandomX's cmake-rs build script panics with "is cmake not installed?"
in the rust:bookworm job container once cuprate-daemon is a default
feature. Install cmake and build-essential in the root test, release,
and fuzz containers. Android jobs already did this.
Three sources of wasted Pi time, measured over a two-week window
(353 workflow runs, 694 job runs): ~78% of CI wall-clock was spent on
work that did not need to happen.
1. Nothing was ever cancelled. Every `concurrency:` block in the repo
had `cancel-in-progress: false`, and 279 of 353 runs sat in the
queue behind a newer commit on the same branch. The comment
justifying it ("shared the container name `onionwire-ci`") was
stale — the name has been per-run-id for a while — but the real
constraint is the shared cargo target volume, which two concurrent
writers corrupt (`Permission denied (os error 13)` on
/target/debug/deps). So the flag stays false and superseded runs
instead stand down at a new gate: compare GITHUB_SHA against the
remote branch tip and skip. Seconds, not minutes, and it cannot
release the concurrency group into a volume race. Added to
ci.yml (test, sdk) and android-ci.yml (android).
Verified against the run history: Forgejo's pull_request GITHUB_SHA
is the branch head, never a synthetic merge commit (245/245 recorded
PR runs match a refs/pull/*/head tip), so the gate cannot skip a
live run. It fails open — an unresolvable ref runs the job. 232 of
477 historical PR runs would have been skipped.
2. `fuzz` ran on almost every push. A job cannot narrow a
workflow-level path filter, so `fuzz/**` sat in ci.yml's list
beside `src/**` and `crates/**`: 80 of 84 recorded runs touched
nothing in fuzz/, each paying a nightly toolchain install and
`cargo install cargo-fuzz` for 15 seconds of actual fuzzing. Moved
to its own workflow, schedule-only (03:30 UTC, off the arti-watch
slot) plus workflow_dispatch. The build/run single-container fix
and the PATH export from #106/#107 come along unchanged.
3. android-ci built a full APK for commits that touched no android/
file — 95 of 143 runs, at ~11 minutes each. The PR trigger now
covers android/**, crates/onionwire-sdk/**, Cargo.toml, Cargo.lock
and the build script. The push-to-main trigger keeps src/** and
crates/**, so every merge still runs the in-APK checks that earn
their keep (the target_max_memory marker gate, the .so listing, the
sha256 round-trip) — a Rust-only PR now finds out at merge instead
of before it, and nothing reaches a release untested.
Also drops `fetch-depth: 0` from android-ci: nothing in the build
reads git history (PUBLISH_TAG comes from the environment).
ci.yml's `push: [main]` trigger is unchanged. It re-tests trees a PR
already tested identically (73 job runs in the window), but branch
protection is empty, so it is not a merge gate — it is the "CI green
on main" signal docs/RELEASING.md's readiness gate reads, and a merge
commit has a different sha so statuses do not carry over. The
staleness gate already removes most of its cost.
docs/RELEASING.md describes all of the above; its android-ci path
list and its fuzz-job account were both wrong after this change.
The fuzz job's two CI steps ran in separate Docker containers, so the
cargo-fuzz binary installed in step 1 was gone by step 2: run-fuzz.sh
failed with 'error: no such command: fuzz'. Merge the nightly toolchain
install, cargo-fuzz install, fuzz build, fuzz list, and run-fuzz.sh into
a single container step so the installed binary and built targets survive.
Carry the /target/tmp mkdir from 1b2c63b (rustup self-update needs TMPDIR
to exist before its temp dir creation).
Co-authored-by: agent <agent@local>
All CI Docker jobs set TMPDIR=/target/tmp (via -e), but the directory
was never created inside the container before rustup ran. The /target
volume mount doesn't include a tmp/ subdir, so rustup's temp dir
creation failed with ENOENT.
Fix: add /target/tmp to the mkdir -p in all four Docker shell commands
(test, sdk, fuzz-build, fuzz-run).
Add a job to .forgejo/workflows/ci.yml that builds the four
libFuzzer targets on nightly (ratchet_frame, qr_decode,
dispatch_classify, file_decode) and runs each for 15s. Own registry
and target volumes (onionwire-cargo-registry-fuzz /
onionwire-target-ci-fuzz), TMPDIR=/target/tmp, own concurrency group
(onionwire-ci-pi-fuzz) so the ~12min cold build does not serialize the
test/sdk jobs. Path allowlist extended with fuzz/** and
scripts/run-fuzz.sh so fuzz-only PRs actually trigger it.
Job is a no-op until PR #103 lands on main; the fuzz/ crate is a
detached workspace that root cargo test/clippy never sees.
Arti's TLS backends are non-additive; the root crate defaulted to
`native-tls` (OpenSSL). Switch `default = ["rustls"]` and pin the `rustls`
crate with its `ring` feature — `tor-rtcompat` pulls rustls in with
`default-features = false`, so without that pin the backend compiles with no
`CryptoProvider` and the first TLS config fails (same reason already recorded
in crates/onionwire-sdk/Cargo.toml).
`native-tls` stays as an opt-in feature. SQLCipher still builds vendored
OpenSSL (`bundled-sqlcipher-vendored-openssl`); that is unrelated to TLS.
- tests/tls_backend.rs: compile-time pin that the default features select
rustls, plus a runtime check that rustls resolves a provider with no manual
install.
- ci.yml: the root `test` job no longer installs pkg-config/libssl-dev (the
SDK job keeps it).
- docs: README build deps, ARTI_UPGRADE backend table, release-body and the
SDK README now describe the rustls default; the false "binaries link
libssl.so.3 dynamically" claim is corrected.
- crates/onionwire-sdk/Cargo.lock: regenerated for the root crate's new
dependency (separate workspace, --locked would otherwise fail).
Node::send() became Result<OutboxStatus, String> in the local-outbox work,
which broke crates/onionwire-sdk — and nothing noticed, because the SDK is a
separate cargo workspace that root CI never compiles.
- Wire::send() returns WResult<SendState> (Sent | Queued)
- ChatMessage.delivery for outgoing rows
- New sdk job in ci.yml (own target volume; rustls workspace)
- Refresh SDK Cargo.lock + README (SQLCipher / outbox facts)
Rebased onto main after #50/#54: no src/node.rs changes (WAL checkpoint lives
in Store now). README at-rest claims kept from #55.
Path allowlist on push-to-main and pull_request: src/, crates/, tests/,
Cargo.toml, Cargo.lock, and this workflow. workflow_dispatch still always
runs. No branch protections, so a skipped run is not a merge trap.
Overlapping Actions used a fixed docker name onionwire-ci (Conflict)
and OOM-killed with 137. Unique run_id names + one-at-a-time
concurrency. F1 ingest test still used 8+B*94 which F4 checksums reject.
Two separate breakages from the first green-ish CI run:
1. tests/hs.rs asserted on a constant, which clippy rejects under
-D warnings (clippy::assertions_on_constants) because the compiler
folds the assert away. Compare through a runtime binding instead.
2. The release workflow built the aarch64 binary fine (13m02s, verified
ARM ELF) but the publish step died with:
/var/run/act/workflow/3: line 6: scripts/publish-release.sh: No such file or directory
run: steps execute with act's cwd, not the repo root, so relative
paths miss. Pin every run step with cd "${GITHUB_WORKSPACE}" (the
pattern the osint-dashboard workflow already relies on).
Verified locally before pushing: cargo test 41 passed, cargo clippy
--all-targets -- -D warnings clean.
rust:1.91-bookworm ships without clippy, so the clippy step died with
'cargo-clippy is not installed for the toolchain' after all 39 tests
passed. Also pushes the watcher fix (1=success 2=failure in Forgejo job
statuses, not action_run's numbering).
The rust:1.87-bookworm job image failed every builder step with
'tor-*@0.46.0 requires rustc 1.91 ... either upgrade rustc or select
compatible dependency versions'. Cargo.toml declared rust-version 1.87,
which was simply wrong: cargo 1.87 could not even resolve the lockfile.
- rust-version 1.87 -> 1.91 (README requirement text too)
- RUST_IMAGE rust:1.87-bookworm -> rust:1.91-bookworm in ci and release
The GitHub workflows could never run on this instance: jobs asked for
ubuntu-24.04 runners (the Pi runner only registers the 'docker' label, so
every job sat in waiting), and release.yml published to github.com, which
is not a remote of this repo.
- .forgejo/workflows/ci.yml — cargo test + clippy on the 'docker' label,
Rust work in a rust:1.87-bookworm sibling container (aarch64 native)
- .forgejo/workflows/release.yml — on v*.*.* tags, build aarch64, strip,
sha256, publish to the Forgejo release; workflow_dispatch takes a tag
to re-publish
- scripts/publish-release.sh — idempotent create-or-update release +
asset upload via the Forgejo API (replaces same-named assets)
- scripts/build-release-local.sh — x86_64 path (no x86_64 runner exists)
- scripts/release-body.md — release notes template (@TAG@ substituted)
- README: install URLs -> Forgejo, accurate maintainer release procedure
- remove .github/workflows/*