Skip to content

Releasing

A release is what an appliance is updated to: the Updates page offers the newest one, and nothing else. So a release is made on purpose - never by a push - and how soon depends on what waits.

When

what waits when it is released
a fix - something that was broken on an appliance and is not any more as soon as it is merged and checked on the appliance it was broken on: a fix waits for nothing else
improvements and additions gathered, and released together once ten are waiting or the oldest has waited thirty days - whichever comes first
documentation only with the next release of either kind; it changes nothing on an appliance

A daily workflow (.github/workflows/release-due.yml) keeps one issue open, A release is due, whenever either rule says so, and closes it when a release has taken what was waiting - so neither a fix nor a batch is forgotten.

The number

MAJOR.MINOR.PATCH, with -alpha.N while the project is in alpha - and the steps kept small (since 2026-10-18), so the numbers are not used up quickly:

what is released how the number moves example
a small update - a fix, or one small improvement a fourth part is added or raised 0.1.0-alpha.1, then 0.1.0-alpha.1.1, 0.1.0-alpha.1.2
a gathered release - improvements and additions together the alpha number is raised, the fourth part dropped 0.1.0-alpha.2
a stage - a step in what the project is the minor number is raised and the count starts again 0.2.0-alpha.1
leaving alpha the owner's decision alone 1.0.0

a fix release raises the last number: 0.1.0-alpha.1, then 0.1.0-alpha.2; a gathered release raises the minor number and starts the count again: 0.2.0-alpha.1 - the steps above replace these two. Every number is valid semantic versioning and sorts as it should - alpha.1 before alpha.1.1 before alpha.2 - and the changelog, the installer, the Updates page and the release badge take it as it is.

  • the release is named by its number and nothing else, and while it carries -alpha it is published as a pre-release it is published as the latest release - the -alpha in the number is what says alpha. A pre-release is never GitHub's latest, so the repository's page showed only its tags (2026-10-18).

Leaving alpha - 1.0.0 - is the owner's decision, the day the notice at the top of the README is lifted. The work-in-progress notice was lifted on 2026-10-18 without it: the main part of the work is done, and the number stays alpha until the owner says otherwise.

How

  1. Make sure every change since the last release is merged and its checks passed.
  2. On a branch: python3 tools/changelog.py --release 0.1.0-alpha.1.1 - this moves what the commits since the last tag say into a section of its own, dated today, under the right headings. Read it, and correct a line that says less than the change did. Below what it wrote, it names each line a later change of the same release may have made untrue - one that says it fixes the same issue, or names it - so that line is read against that change.
  3. Open a pull request titled Release 0.1.0-alpha.1.1 with CHANGELOG.md and nothing else.
  4. Merge it once its checks pass. On that push the release workflow (.github/workflows/release.yml) finds a version in CHANGELOG.md that has no tag yet, tags the merge commit v0.1.0-alpha.1.1 and makes the release a draft, with that version's section as its notes.
  5. It is signed and published. The release workflow starts the owner's private signing repository, AbdelmonemAwad/os-xgs-npu-release-signing, as soon as the draft is made - given SIGNING_DISPATCH_TOKEN here, a fine-grained token with Actions read and write on that repository alone; without it, that repository's own look every six hours finds the draft. A start that fails fails the release run, red, and the draft waits for that look; the release workflow run by hand with sign set to the tag starts the signing again, and nothing else (2026-11-07: v0.1.0-alpha.15's start failed - the token could not see the signing repository - and the run said success). It signs the release, adds the three files below to the draft and then publishes it, marked the latest: this repository's releases are immutable, and a published one takes no file more, so a release is signed before it is published or never (v0.1.0-alpha.14, published before, could not be). A release whose signing fails stays a draft, which no appliance and no visitor sees. The key and the token that puts the files up and publishes are that repository's secrets, set from the owner's signing tool; the signature is checked there with the public keys main holds before anything goes up, and what goes up is read back and compared. The owner can sign on the owner's own machine instead, with the same tool; this repository's CI never signs. Once the release is published, .github/workflows/released.yml does what follows it: the site built again, the issues it fixes told, "A release is due" closed, the ready-made images started, Software Heritage asked to save the repository. The three files:
  6. os-xgs-npu-<tag>.tar.gz: git archive --format=tar.gz --prefix=os-xgs-npu-<tag>/ <tag>, made from a clone whose tag is the commit GitHub's own tag names (git ls-remote origin refs/tags/<tag>);
  7. release.json: the manifest - format 1, repository, tag, commit (40 hex digits), date (the commit's, git log -1 --format=%cI <tag>), archive (that file's name), sha256 and size (its bytes);
  8. release.json.sig: the manifest's Ed25519 signature, openssl pkeyutl -sign -inkey <key> -rawin -in release.json -out release.json.sig.

gh release upload <tag> <the three files> puts them up on the draft, and gh release edit <tag> --draft=false --latest publishes it. The public keys an appliance accepts are in src/opnsense/scripts/xgs/release-keys/, each named by the start of its fingerprint (the SHA-256 of the key's DER form): 13ed7f86a4a7669bdaee666d01894443e151da4051c1f500cb6406d7888fd33b since 2026-11-07.

The Updates page on every appliance offers it from then on - once it is signed: an appliance whose update.py checks the signature (from the release after 0.1.0-alpha.14 on) does not offer a release until its three files are up, and installs only the archive its signed manifest names (update.py, SIGNED RELEASES). A new key is added the same way a fix is: in a release signed with a key the appliances already hold.

Each issue a pull request in the release says it fixes is told so, once, with a link to the release (tools/release-notice.py, run by released.yml once it is published). A pull request says it in a line of its own, Fix for #N - several as Fix for #N, #M - which GitHub does not take as an order to close, so the issue stays open until its reporter says the fix works; GitHub's Fixes #N is heard too, and closes it on merge. An issue only mentioned in passing is not told.

What keeps a fault from coming back

A fault found once is given a check that would have caught it, where it can be caught earliest:

  • In every pull request (checks.yml): among the tests, tools/test-verify.py holds verify.sh's summary to naming what failed - it told an XGS 3100 with twelve working ports that it had none (issue 957) - and tools/test-assign-mgmt.py holds the first boot to giving MGMT back after a factory reset (the same issue). A step refuses any snprintf return added to an offset unchecked, and CodeQL reads the drivers' C as well as the rest; a pull request that brings a new security alert of high severity or above, or a new error, cannot be merged (the ruleset CodeQL merge protection, since 2026-11-01).
  • In every build of a driver: every warning is fatal, and what may refuse to free memory a receive servicer still uses - octep's stop, its quiesce, its removal of the interfaces - carries __result_use_check, so a caller that drops the refusal does not build.
  • On the lab, first on the old XGS 3300, before a release that changes a driver: sh install/verify.sh on each family, and after any change to octep's stop or detach, sh contrib/octep/test-detach-refusal.sh, which holds a ring the way a stuck servicer would and checks that everything that would free under it refuses, then sh contrib/octep/test-stop-writes.sh with frames arriving at a front port, which stops the datapath and checks that the coprocessor writes nothing into a ring once it is stopped (issue 962) - the front ports stay down until a restart. After any change to npuep's module event handler, its IPsec interposition or reload.sh, on the lab XGS 136 with a tunnel up through a front port, sh contrib/npuep/test-unload-refusal.sh, which asks kldunload and reload.sh to take the driver away and checks that both refuse and change nothing (issue 1230).
  • In every pull request, too: tools/test-unload-guard.py holds npuep and octep to a module event handler that refuses kldunload once an IPsec association's transform points into the module, and npuep's reload.sh to asking before it unloads anything (pull request 830, issue 1230).
  • On a change to the connection path, before the merge: either driver's connection table and its closing check (contrib/npuep/npuflow.c, contrib/octep/octep_dp.c), where each driver asks pf whether a connection may go to hardware (contrib/npuep/npupf.c, contrib/octep/octep_pf.c), the lines of contrib/octep/octep.h that name the connection table or the closing check, and the ARMADA front ports' rings (contrib/npuep/npugiu.c) are soaked on a lab appliance of each family the change touches: 30 minutes or more of connections opened and closed without a pause - hundreds of thousands of them - beside connections that live a few seconds, long enough to be made in hardware and closed there, and long-lived streams, read every minute for the closings the driver refused, a front port that stops receiving, how full the connection table is, the coprocessor's memory and the appliance's health. A soak that leaves the connection table nearly empty says nothing of it and is not a pass. The test machine's adapters are checked first, five minutes each at line rate, and again after the soak, so a fault of the bench is not taken for the appliance's. The soak ends with one line, Soak record: PASS - XGS 136 (...), 30 min, ... connections, ..., which goes into the pull request's body, and tools/check-soak-record.py refuses a pull request that changes these files without one, or with one that failed. A fix for issue 679 passed every check and every short lab point, and refused ordinary FINs only under a long load: 312,782 refused against 17,411 passed in a two-hour run.

The plugins

Each plugin lives in its own repository and is released there, from an annotated tag its release.yml builds the package from. When what an appliance installs from a plugin - its src/, pkg/, install/ or Makefile - changes on main, the pull request for its next release opens by itself: PLUGIN_VERSION up by one, a first changelog block in pkg-descr from the changes' titles, the plugin's checks started on it (.github/workflows/plugin-release-pr.yml, called by each plugin's release-pr.yml). Since 2026-12-01 each job of that run is also set on the pull request's commit as a commit status of the job's name, which is what its required checks read: a run the workflow dispatches never counts toward them, and the pull_request run of a pull request the workflow's own token opened waits for a person's approval, so until then each release pull request waited for a person to push to its branch. Its text is a first draft: putting it right, merging, and the tag stay with a person. A change to a plugin's README or pages alone makes no release.

A plugin's release is signed as this repository's is, since 2026-11-07 (os-netreport's pull request 43, then the other ten). Its self-update.py installs a release only as signed, with the public keys installed beside it from the plugin's own release-keys/, the same key as here. Pushing the annotated tag starts the plugin's release.yml, which builds the package, makes the release a draft with it, and starts the signing repository, given SIGNING_DISPATCH_TOKEN in the plugin's repository too. That repository adds <plugin>-<tag>.tar.gz, release.json and release.json.sig, and publishes the release. The two plugins with no package - opnsense-arabic and opnsense-rtl - have a release.yml that makes the draft from the tag and starts the signing, and nothing else. A plugin's release is never made by hand with gh release create: published unsigned, it can take no file more, and no appliance takes it. The signing repository's RELEASE_TOKEN reaches every plugin's repository; a run for one it does not reach fails, by name, since GitHub would not show it that repository's drafts. Measured on the first XGS 3300: the plugins' signed releases.

What a plugin relies on in OPNsense - the files and paths under /usr/local, the classes and methods it uses or extends, the configd actions it calls, its hooks, the templates it reloads, the captive portal's columns, Suricata's and ipfw's paths - is written in its contract.json, at its repository's root, since 2026-12-01. tools/contract-scan.py writes a first one from the plugin's source, which is read and put right by hand; tools/contract-check.py reads every entry against opnsense/core and opnsense/plugins at a release's tag, and has PHP load the plugin's classes against them. A plugin's own checks call .github/workflows/plugin-contract.yml against the release compat.json records, never a newer one, so that no OPNsense release turns a plugin's main red by itself; when a newer release comes out, upstream.yml reads every plugin's contract against it and the issue it raises says, a line a plugin, what no longer holds. This repository has its own contract.json as well, for its pages, hooks and models, which its checks read and upstream.yml reads with the plugins'. PHP is 8.5 in all three, as OPNsense 26.7 has it, and a check asked for the PHP lint where there is no PHP fails rather than pass without it.

Once a release is published, Software Heritage is asked to save the repository, so that a copy of it as the release left it is kept there, dated, for good (since 2026-12-02): released.yml here, and each plugin's own released.yml through .github/workflows/plugin-archive.yml - both run tools/software-heritage.py, which asks the archive's "save code now" API anonymously, naming its client - the archive refuses Python's default agent with 403 - and says its answer, in the run's log and in a line of its summary. An archive's error is a warning there and never undoes or fails a release; the visit itself follows as the archive's queue allows, and python3 tools/software-heritage.py --status <repository> reads, changing nothing, the newest save request the archive holds - its visit's date and its snapshot's SWHID once the visit is done.

What a release is not

  • A push to main never makes one: only a new version heading in CHANGELOG.md does.
  • A tag pushed by hand is not the way either: the workflow owns the tags, so the changelog and the releases cannot disagree.
  • Nothing in a release is claimed beyond what its pages measured; the changelog links each change to the pull request that carries its evidence.
  • The site is not in a release. A change to npuforge.org (website/) or to the problem reports' relay (relay/) alone is deployed by its own workflow, is left out of the changelog and of what makes a release due, and is not in the archive an appliance downloads (.gitattributes, export-ignore). Since 2026-10-22.
  • Nor is anything an appliance does not read: the documentation and its photographs, the workflows, the files about the project itself, and the repository's own tools. What an appliance carries - an update's tarball, and an image's copy since xgs-image-builder takes git archive - is the driver, the plugin, their install, and the tools run on a firewall; .gitattributes lists the rest and why. A file an appliance starts to read must leave that list in the same change. Since 2026-10-22.
  • A release gets its ready-made images with nothing done here: within six hours xgs-image-builder's release-images.yml sees the new tag, A main release - a gathered one, a stage, or leaving alpha
  • gets its ready-made images with nothing done here: the release workflow starts xgs-image-builder's release-images.yml as it publishes (with the secret IMAGES_DISPATCH_TOKEN; without it, the builder's own look every six hours finds the release), which builds four images with it - serial, 38400 and 115200 baud, each with the front panel plugin and without - and publishes them as its release images-<tag>, which build.npuforge.org the build page, on npuforge.org since 2026-11-01, offers first. Since 2026-10-23; a main release at once, and a small release - its number has a fourth part - with no images of its own, since 2026-10-24. An appliance installed from the images of a main release takes the small releases after it from XGS: Updates.
  • The first release that carries install/image-fchemmc.sh needs its images asked for, in this order: merge xgs-image-builder's change first (its build guest moves to FreeBSD 15.1; on the 14.2 guest the script refuses and the image build fails), publish the release here, then run the builder's release-images.yml with project_tag set to that tag. A small release gets no images by itself.