Skip to content

Release Process

Brent Cordis edited this page Nov 17, 2026 · 9 revisions

Release Process

How a Proclaim version is cut. The validation gate in Step 1 is required — it exists because the entire 10.3.0–10.3.2 line shipped with broken fresh installs that no automated check would have caught (issue #1306).

Step 1 — Validate the release candidate (REQUIRED)

Build the package, install it into a real test site, upgrade from the previous release, and confirm the schema migrations actually landed. Do not run composer release until this is green.

composer test:release        # clean install + upgrade + migration assertions, then licence + E2E

or the pieces:

Command What it does
composer test:install Reset test site → build pkg → install fresh → assert migrations
composer test:upgrade Reset → install last-release baseline → install new build → assert migrations
composer test:accept-license Accept Proclaim's licence on the role = test install, and fail unless it reads back. A clean install leaves it unaccepted, and the admin sends every Proclaim view to the licence screen until it is. It is kept out of test:install on purpose, because that check must still see the gate.
composer test:e2e Playwright suites, including the API project against the role = test install
composer test:migrations Assert-only, against an already-installed test site
composer test:reset-testsite Clean slate on the role = test install

What "green" means: the install/upgrade completes with no fatal and no spurious warnings, and build/verify-migrations.php reports every expected table/column/index for the version, with #__schemas advanced.

Prerequisites & current limitations

  • A role = test install must be declared in build.properties (a real, non-symlinked Joomla install, separate from your dev sites). See the j6-test example in build.dist.properties.
  • Reset with a DB snapshot for a truly clean baseline — MAMP Pro snapshot or a mysqldump reload. Row/file deletion alone leaves Joomla treating the extension as installed (it keys on on-disk manifests and the api/ component dir, not just #__extensions), which makes a "fresh" install run the update SQL and fail.
  • The install step is not yet headless. Joomla's CLI extension:install fails opaquely for this package, so drive the actual install/upgrade through the web admin (Extensions → Install → Install from Folder, pointing at the extracted pkg), then run composer test:migrations to assert the DDL.
  • Upgrade baseline is 10.2.x, not 10.3.x — no shipped 10.3.x version fresh-installs cleanly (#1306), so use the last pre-split release as the "before" state.
  • When adding migrations in a release, add a matching entry to the $EXPECTATIONS map in build/verify-migrations.php.

Step 2 — Cut the release

composer release -- X.Y.Z     # version bump → build → GitHub release → ARS publish
composer release:wiki         # sync Home.md version table (cwm-release does NOT touch the wiki)

Must be on main with a clean working tree. Add a changelog entry first if missing: composer changelog -- X.Y.Z.

Step 3 — Post-release

Verify the published stream first — everything in Step 1 runs before publish and cannot see what ARS actually serves.

composer verify:update-stream     # after ARS has the new item

It asserts three things, each of which fails silently — valid XML, clean release, and a whole population of sites is simply never offered an update:

  1. a pkg_proclaim entry exists at the released version;
  2. a com_proclaim entry exists at that version and sorts before it — see Delivering updates to component-only sites below;
  3. php_minimum and targetplatform are populated (null ARS environments mis-shipped 10.3.4–10.4.0: published fine, offered to nobody).

Then confirm the update is genuinely offered: on a role=test site at the previous release, force a check in Extensions → Update and confirm a row appears. ARS accepting a publish is not the same as Joomla offering the update.

  • Write / update What's-New-vX.Y.md (manual — the tooling doesn't create it).
  • Check off completed items in Tasks.md.

Confirm the next cycle opened

As of cwm/build-tools v1.32.0 this is automatic: cwm-release advances active_development to the next patch version when it writes current and next.*. Check it landed:

python3 -c "import json;d=json.load(open('build/versions.json'));print(d['active_development']['version'])"
# expect the NEXT version — never the one just released

If it still names the released version, open the cycle by hand and find out why the release step did not:

composer version -- -v <next.patch>      # e.g. 10.5.12

Cycles run on the plain version — no -dev suffix. @since 10.5.12 is already correct while 10.5.12 is in development, and build/test-upgrade.sh gates on the manifest matching active_development and differing from current, which the plain version satisfies. The suffix only ever added a rename step before each release.

Warning

Do not reintroduce -dev for an edge build. cwm_maturity_for_version() recognises only -alpha, -beta and -rc, and classifies everything else as stable — so a published -dev build is offered to every site as a normal update (cwm-build-tools#155). Use -alpha1 for an edge release: it takes the same GitHub pre-release path and gets alpha maturity in ARS, which Joomla hides from sites that have not opted into pre-release updates.

Why the pointer matters: active_development is what @since __DEPLOY_VERSION__ resolves to. Left on the released version, every tag written afterwards names something already published, and nothing fails — the build succeeds, the release publishes, and the tags are simply wrong in merged code until someone reads them. VersionTracker's docblock records three such releases before v10.5.10 made it four, which prompted cwm-build-tools#153.

Close the milestone

Note

Milestones carry the v prefix — v10.5.11 — while versions.json and the manifests do not. Same number, two conventions, and neither takes a suffix.

Close the milestone for the released version. If the milestone convention is being followed it holds no open issues, because a milestone is applied when work is committed to a release, not when an issue is filed — so there is nothing to roll forward.

If it does hold open issues, move them to the next milestone rather than closing over them. An issue filed shortly before a cut is stale on arrival, and that is a signal the milestone was applied too early rather than something the release should absorb.

Delivering updates to component-only sites

Sites that installed the old standalone com_proclaim component (rather than the pkg_proclaim package) don't match the package update and are stranded. The ARS Migration Plugin runs on the download server and injects a component update entry into the stream‑1 feed so those sites are offered the package and auto-migrate. Keep it enabled until the fleet has migrated.

Because the plugin clones the newest pkg_proclaim block on every request, the injected entry can't go stale and can't be reordered by hand — it is always at the current version and always first. What can happen is that it stops appearing at all: the plugin gets disabled during maintenance, its configured stream id drifts, or an ARS upgrade breaks the onAfterRender hook. Nothing on the release side would notice — the feed stays valid and the package entry is still served — so component-only sites would quietly go back to seeing "no updates".

composer verify:update-stream (Step 3) is the check for exactly that: it fetches the published feed and fails if the component entry is missing or no longer first. Run it after every release while the plugin is still needed.

The check carries a sunset date (COMPONENT_ENTRY_SUNSET, currently 2027-08-09) after which it stops requiring the entry, so retiring the plugin is a deliberate decision rather than a warning that gets ignored. The window covers one update check per stranded site — taking a single update installs the package and converts the site permanently.

Clone this wiki locally