Commit graph onionwire/docs/RELEASING.md
Author SHA1 Message Date
agent
404ceea0f8
ci: skip superseded runs, move fuzz to nightly, trim the android PR trigger
All checks were successful
ci / test (pull_request) Successful in 6m33s
ci / sdk (pull_request) Successful in 1m27s
android-ci / android (pull_request) Successful in 12m47s
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.
2026-09-27 15:34:58 -04:00
agent
f95c1e7ca7
docs: rewrite README and living docs to match the tree
Audit the operator docs against the source: pin downloads to v0.14.0,
document the real CLI/flags/env/F-keys (including F9, no F7), keep 18081
as the app-owned daemon port, describe the local chat outbox vs a
server-side one, and stop implying SECURITY_AUDIT.md is a third-party
audit. Spike reports stay; they get a status header only.
2026-09-20 00:31:07 -04:00
ef1248e730
ci(android): build the APK+AAR on android/, src/ and crates/ changes
All checks were successful
android-ci / android (pull_request) Successful in 9m30s
An android-only PR ran zero jobs: ci.yml's path allowlist never matches
android/**, and android-release.yml is dispatch-driven. #70 merged on an
empty check list.

android-ci.yml runs the release's gradle targets through the release's own
script (scripts/build-android-local.sh) on the amd64 runner, debug-signed,
publishing nothing. Same concurrency group and runner volumes as
android-release.yml so the build is warm and cannot collide with a release.
2026-09-14 12:16:40 -04:00
2cf055c1e8
ci(release): android-release is dispatch-only; a CI-created tag cannot wake it
Neither decoupled trigger fires on Forgejo 10.0.3: a tag created by the CI
(API or git push) is an Actions-user push and is not dispatched back into
Actions, and reusable workflows need Forgejo >= 12. The release procedure is
therefore two dispatches: release.yml, then android-release with that tag.
2026-09-12 18:55:58 -04:00
6c9fd00b8a
ci(release): manual, batched releases — no release on merge
All checks were successful
ci / test (pull_request) Successful in 3m49s
Drop `push: branches: [main]` from both release workflows. release.yml now
runs only via workflow_dispatch, with bump (default minor), version, tag and
dry_run inputs; contradictory input is rejected instead of guessed at.

android-release.yml keeps the Android assets on the same tag by subscribing to
`push: tags: v*.*.*`: creating a tag over the API sends the same push
notification a git push does, so the core's tag wakes it. No workflow_call —
this Forgejo is 10.0.3, where reusable workflows are not supported.

docs/RELEASING.md is the policy and procedure.
2026-09-12 17:57:15 -04:00