Commit Graph
8 Commits
Author SHA1 Message Date
Zakk 8a4c2c8a44 ci(size): report the size budgets on every pull request
check:size --json writes each budget's worst entry and its largest
parts. The check job keeps that file as the size-report artifact on
every run, main's included, and writes the table to the run summary.

report.yml runs after Check from the default branch's code, reads the
artifact, compares it with main's measurement for the pull request's
base commit (else the newest one main has, labelled as such) and keeps
one comment per pull request up to date. CONTRIBUTING.md now says the
limits are fixed ceilings and raising one is a separate decision.
2026-11-04 23:15:27 +00:00
Zakk 2e477c0665 ci(release): package doona lite beside the standard edition 2026-10-27 01:48:59 +00:00
Zakk 696f4f59ca fix(release): bundle honk with the matching doona version
Publish the UI before building honk, then verify its embedded UI pins before attaching the bundle to the same release. Keep source provenance and preserve standalone assets during repairs.
2026-10-07 22:35:18 +11:00
Zakk b81f0ab632 chore(ci): balance the e2e shards by test
Playwright already splits by test (fullyParallel), but it cuts the ordered list of test groups into slices of equal test count, so the shards that hold the slow dashboard, mobile and nodes tests ran up to 90 s longer than the mean.

tools/e2e-shards.mjs turns the recorded time of each file in tools/e2e-durations.json into PWTEST_SHARD_WEIGHTS, so each contiguous slice costs about the same. It cuts on group borders: tools/e2e-groups-reporter.mjs lists the groups in Playwright's own order (worker hash, serial and beforeAll groups). A file that is not recorded is priced by its chromium entry, then by its project, so added, renamed and deleted tests need no list edits. The shard jobs now write their JSON report into test-results, and `node tools/e2e-shards.mjs record` rebuilds the durations from those reports.

If the weights cannot be computed the shard logs a warning and runs Playwright's default split. A fixture project with two projects, a beforeAll file and a worker-option override checks that Playwright still honours the variable and the group order, and that check stays strict. The shard count, workers, projects, retries and failOnFlakyTests are unchanged.
2026-10-05 16:32:43 +11:00
Zakk e2710db3b5 ci(release): build Alpine and OpenWrt apk packages
nfpm's apk output is rejected by apk-tools, so Alpine and OpenWrt 25.12
users had no package. Two new jobs build them from the existing recipes
against the archives of the same run: tools/package-alpine.sh runs abuild
in a pinned Alpine 3.24 container and tools/package-openwrt.sh runs the
pinned OpenWrt 25.12 SDK. Each run generates its own signing key and the
release attaches the public half; OpenWrt signs only its index, which is
attached as doona-openwrt.adb.

The nfpm packaging moves out of the build job and runs next to the two
apk jobs; it also builds doona-precompressed. A sums job collects every
package and writes SHA256SUMS, so the release job still only uploads.

workflow_dispatch packages package.json's version from a branch and keeps
the files as run artifacts, skipping the Check wait and the release.
2026-10-04 20:01:04 +11:00
Zakk fd69666655 ci(release): reuse main's check instead of a serial e2e run (#395)
The v0.1.0-beta.13 release spent over 31 minutes in one serial
`playwright test` run (Chromium, subpath, WebKit and WebKit PWA). main's
Check already runs exactly those projects in 9 shards on the commit a
release tag points at, so the release repeated it.

A new `verified` job requires Check (push event) to have concluded
success for the tagged commit, waiting for it if it is still running and
failing otherwise. `build` needs it and drops the e2e install and test
steps; pnpm check, build, check:size, packaging, the honk bundle and the
release job are unchanged. Expected release time: about 3 to 4 minutes
once Check is green.

Net: +23/−4. Checks: actionlint.
2026-10-03 22:00:44 +10:00
Zakk 9a8255fe9d ci(check): drop the unused matrix routing
No e2e spec carries the @matrix tag, so both branches ran the same shards. Every shard now runs the whole suite and the changes job only reports the lane.
2026-10-02 19:54:04 +10:00
Zakk fafb633708 ci(release): build with read-only access and publish from a separate job
The release build, tests and packaging no longer hold the contents write token; a dependent job downloads the assets and creates the draft release. Playwright reuses the checked build instead of building again.
2026-10-02 19:54:04 +10:00