Jason Huebert 6d5ae80c4e ci: promote stable deliberately, and make releases say what they contain
Stable was promoted by the weekly schedule: every missing filter commit was
cherry-picked unattended, and on a conflict the pick was aborted, the loop
`break` out, and the branch was pushed anyway. That publishes a half-applied
feature series as the stable release users install.

Stable is now promoted only by dispatching with promote_stable. The promotion
runs entirely on a scratch branch and touches the real branch exactly once, at
the end: upstream main is merged, the fork-owned README is restored BEFORE the
merge commit exists, the filter commits are picked, the native test gate runs,
and only then is stable pushed — never with --force, so a non-fast-forward
rejection is the correct outcome if something else moved meanwhile. A conflict
at any step fails the job with stable untouched, and the merge's bare
`|| true` is gone: a git error that leaves no merge in progress is now an error
rather than being mistaken for "already up to date". Only the channel that
actually moved gets built.

Release integrity:

- Dev publishes what built, with a per-target manifest naming the target, the
  source SHA and the SHA-256 of every file produced; the release notes list the
  boards included. Stable blocks on any requested board failing, because it is
  what users install. Neither is silently a complete release.
- `sh build.sh list` -> `bash build.sh list`; the script uses bash arrays and
  /bin/sh is not a contract (it worked locally only because this machine's sh is
  bash).
- Branch, targets and the repo variable are passed through env, never spliced
  into shell text: an input containing a quote was becoming shell syntax.
- Every build clears `out/` first and uploads with if-no-files-found: error, so
  a stale artifact or an empty one cannot pass for a successful build.
- Dev tag numbers come from the highest existing suffix, not count+1, which
  collided once a tag was deleted.
- The changes block uses a generated delimiter; a commit subject containing the
  fixed CHANGES_EOF line truncated the release notes.
- build.sh appends its own -<short sha>, so the workflow no longer doubles it.
- The build gate no longer uses --no-merges, which hid merge-only conflict
  resolutions from it.
- Job permissions are contents: read, with contents: write only on the release
  job; the release names the exact source SHA it was built from.

Validated against fixture repos, never a production release: a clean
multi-commit promotion, a series whose second pick conflicts, and a series
whose first pick succeeds and second conflicts. The last is the regression —
the old logic publishes that partial series (confirmed by running it), the new
one leaves stable byte-identical.
2026-10-03 15:27:37 -05:00
2026-04-28 21:39:34 +10:00
2026-09-20 15:25:18 -04:00
2025-01-13 14:07:48 +11:00
2025-06-05 20:35:40 +12:00
2026-02-03 13:47:43 +13:00
2026-03-23 14:26:56 +01:00
2025-01-20 10:20:42 +11:00
2025-01-25 23:09:09 +11:00
2026-03-31 00:51:15 +13:00
2025-03-03 18:08:00 +13:00
2026-06-05 21:25:25 +12:00

MeshCore — Repeater Firmware with a Remote-Configurable Packet Filter

This is a feature fork of MeshCore. It tracks upstream automatically (synced weekly) and adds two repeater-focused capabilities on top of stock firmware. Everything else — supported boards, clients, protocols, build system — is identical to upstream; see the upstream README for the general project, hardware support, and getting-started guide.

What this fork adds

📡 Packet filter

A remote-configurable drop-rule engine for the simple_repeater firmware. Rules match on packet type, route type, region, hop count, channel, and — on decrypted payloads — channel identity and sender/text patterns. Rules are managed over the repeater CLI, locally via serial or remotely over the mesh by an authenticated admin. No rebuild, no physical access.

Independently of the rules, flood-route adverts can be rate-limited per originating node: each node's advert is forwarded at most once per window (up to 30 days), taming advert storms on busy channels while every node stays discoverable.

→ Full guide, including the complete predicate reference and CLI commands: FILTER.md

🔋 Battery gate

A configurable low-battery cut-off: below a set voltage the repeater stops forwarding (but stays reachable and keeps advertising); when the battery recovers it resumes automatically. Debounce + hysteresis keep it from flapping, and the admin can check voltage and tune thresholds over the mesh.

→ Full guide: BATTERY.md

Why run this instead of stock repeater firmware?

Stock repeaters forward everything they hear, until the battery dies. This fork is for operators who want policy and resilience at the node:

  • Shared / community nodes — mute noisy senders or channels that eat your airtime, without asking anyone to change their setup.
  • OpenHop-style policy, nothing extra to run — the rule engine is modelled after the policy filters in OpenHop and lives entirely in the repeater firmware, so you get about the same functionality with just the node itself — no computer, companion app, or other hardware needed.
  • Solar / off-grid sites — the node goes quiet while it can still answer you, instead of disappearing dark, and wakes itself when there's sun again.

Getting the firmware

Prebuilt binaries for all supported boards are on the Releases page. Two channels:

Channel Branch Based on Tags
dev repeater-filter upstream dev (merged weekly by CI) filter-v*-dev.N
stable repeater-filter-stable upstream main releases filter-v*

Flash as you would stock firmware, then follow FILTER.md to set your first rules over the CLI.

S
Description
No description provided
Readme MIT
21 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 56.4%
C 40.9%
Python 1.7%
Shell 0.9%