## Problem / 问题
A CI audit of the last ~200 Check runs (owner's report) found two more
intermittent e2e failures and a wasteful schedule:
- `e2e/dashboard.spec.ts:160` failed on WebKit on 11-08, 11-24 and
11-25. It measured the dashboard while the dnsAnswers and policyGroups
cards could still be titles only, and the level-column check passed on
the half-loaded page.
- `e2e/qiangguo.spec.ts:12` failed twice on main. It could scroll while
the startup frame was showing. `heldScroll.ts` then restored that offset
and undid the scripted scroll to the top, as designed.
- 25 of 26 nightly runs re-ran `check` and all nine e2e shards on a main
head its push had already checked, about 510 job minutes a week.
## How I fixed it / 解决方法
- The dashboard test waits for every card's content and for no loading
state before measuring.
- The Qiangguo test waits for the page's loading states to clear before
scrolling.
- On the schedule, `changes` and `ci-ok` are skipped, so only `nightly`
(Firefox) runs. `notify-nightly` treats a skipped `ci-ok` as not failed.
Push, PR and manual dispatch behave as before.
Assertions are unchanged. `failOnFlakyTests` stays on.
## Verified / 验证
- `pnpm format:check`, `lint`, `typecheck` and `test` exit 0.
- e2e in the CI image (`playwright:v1.63.0-noble`) with `CI=1
--retries=0`:
- dashboard: before, 1/200 at 2 workers and 6/80 at 4; after, 300/300 at
2 and at 4 workers.
- Qiangguo: before, failed 6/6 with the CI error when the page chunk is
held back past the first scroll; after, 600/600 at 2 and at 4 workers,
and 20/20 with the chunk delayed 1.5 s.
- actionlint 1.7.7 reports nothing. The scheduled path has not run on
GitHub yet.
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.
README.md is now the Traditional Chinese text and the English text moves to README.en.md. The archives, Makefile install, rpm list and Gentoo ebuild ship both files.
apps/lite is a separate Vite app (Astryx, React 19, StyleX) on the same
honk API, for people who want to switch nodes and edit groups,
subscriptions, nodes, routing and DNS without the observability pages.
Every change goes into a draft and one review dialog shows it in plain
words before it is written; dae syntax stays in the text editor. It has
light and dark themes and a demo mode backed by an in-browser mock.
Browser, motion and performance checks in apps/lite/scripts run under
Playwright, CI runs `pnpm -C apps/lite check`, and the UI rules are in
apps/lite/UI-RULES.md. It is linted with the repository config.
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.
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.
NOTICE links the CC BY 3.0, CC BY 4.0 and CC BY-SA 4.0 licences by URI,
which the licences allow, so the archive drops their texts and the CC0
one; the repository keeps them for REUSE. THIRD-PARTY-NOTICES.txt groups
packages whose licence texts match apart from copyright lines, wrapping
and indentation, and prints each text once under every package and
copyright line it covers. CHANGELOG.md leaves the archive; the nfpm
packages copy it from the checkout, and the ebuild stops installing it.
The archive shrinks from 3.47 MB to 3.21 MB unpacked.
The OpenWrt Makefile pins doona-precompressed to the same doona with
EXTRA_DEPENDS, as utils/vim does for vim-runtime, derives PKG_VERSION
from PKG_REAL_VERSION and downloads every archive unconditionally, as
net/v2raya does. The APKBUILD derives the tag from pkgver, names its
split functions with a leading underscore and moves the fonts with
amove, per the aports coding style.
Neither repository has a placeholder hash, so the packaging scripts
fill the hashes with `make package/doona/check FIXUP=1` and `abuild
checksum`, and the release run keeps the filled recipes as artifacts
under the default retention.
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.
Merging several pull requests in a row pushed main once per merge, and every push ran the full suite to the end even after a newer commit had started its own run. A push to main now cancels the run still going on the older commit, as pull requests already do. Scheduled and manual runs keep their own groups.
Keep pull requests out of the shared Unreleased section. Resolve PR numbers from fragment-adding commits, collect release notes with comparison links, and require fragments in the existing CI lane.
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.
Debian and Ubuntu ship an unrelated doona 1.0, a network fuzzer that
owns /usr/share/doona and /usr/share/doc/doona. Its version sorts above
our 0.1.0~beta.N, so apt upgrade replaced our deb with it and deleted
the web files.
The deb is now doona-web with doona-web-fonts, installed under
/usr/share/doona-web and /usr/share/doc/doona-web, so it can sit beside
the fuzzer. Both replace, break and conflict with doona and doona-fonts
below 1.0, which clears the old 0.1 packages and never matches the
fuzzer. One nfpm config per package still builds every format: the
release workflow sets PACKAGE_SUFFIX=-web for the deb, and the deb's
contents come from a packager override. rpm, ipk, Arch and the release
archives keep the name doona and their paths.
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.
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.
Keep checks and report merging on ubuntu-latest. Increase browser parallelism with nine two-worker shards using the pinned Playwright image. Same-commit hybrid measurements did not meet the required 60-second improvement, so retain the hosted fallback for every event.
Pin the existing action major versions to resolved commits and let Dependabot update them weekly. Write Playwright duration and passed, failed and flaky counts for each shard.
Run the full matrix on nightly and dispatch events, plus Firefox connections and router coverage. Keep one failure tracking issue with write access isolated to its notification job.
Use the event merge base and an explicit docs allowlist, checking both rename ends. Require the chosen lane to succeed and skip browser report merging only when e2e did not run.
Ubuntu package downloads held successful shards for up to 21 minutes while
the tests finished within six minutes. Run the four shards in the matching
Playwright image and keep two workers per runner. Upload blob reports and
merge them into one HTML report so test durations and retries are available.
Allow CI branches to exercise the workflow without opening a pull request.
The deb, rpm, ipk and Arch packages and the Alpine recipe took only
LICENSES/Apache-2.0.txt. They now take the whole LICENSES directory and
THIRD-PARTY-NOTICES.txt, and the release job fails if the documentation
directory holds a file the rpm list in install/nfpm/doona.yaml leaves out.
The release workflow bundled whatever honk's rolling debug pre-release
held when it ran. honk overwrites that release on every debug tag, so a
debug build published between the honk tag and the doona tag slipped
into the doona release unnoticed.
tools/honk-commit.txt now names the honk commit a doona release ships,
and the release pull request bumps it. fetch-honk.mjs reads it by
default (--commit overrides it) and fails unless the release body, the
release target when it is a commit, and the source tag all name that
commit. It is pinned to 7449f4e2, tag debug.2026.9.28.native-api.2.
GPL-3.0 section 6 asks for the corresponding source beside the binaries. fetch-honk now also downloads the archive of the commit the debug builds came from as honk-source-<commit>.tar.gz, records its sha256 in HONK-SOURCE.txt, and the release sums it and attaches it.
honk has no release with the native API yet, so doona users had to find
the rolling debug pre-release on their own. tools/fetch-honk.mjs downloads
its eight honk-core archives, checks each against the digest the GitHub
API reports, and writes HONK-SOURCE.txt with the source tag, commit and
the GPL-3.0-only source link. The release job adds them to SHA256SUMS
and the draft release. The step is marked temporary.
Every branch push ran the check twice, once for push and once for
pull_request. Push now runs on main only.
CI retries a failed e2e test once. A test that passes only on retry is
reported as flaky and still fails the run, so a flake is told apart from
a regression without being hidden.
Name release assets with upstream SemVer while preserving each package manager's version ordering in its metadata. Add revision 1 to deb and ipk, and apply nfpm's default epoch workaround only to Arch. Update archive consumers and document the mapping.
Stop shipping a node_modules archive with releases; package recipes now
install the prebuilt program and font tarballs. State in the READMEs and
guides that the native API exists only on the feat/native-api branch of
Glassyiris/honk, and show a clear message when an engine answers 404 for
both discovery and capabilities instead of asking for a token.
Report the page language to the service worker only after it activates,
so an updated build keeps the language for offline start. Keep secondary
facts on a caption line under card values, keep cards in a row equal in
height, lay the capabilities list out in columns, frost sticky headers and
overlays in the glass palette, and fit Overview, DNS and the routing map on
tablets and phones. Localize backend datapath errors and the rule editor's
must switch.
List events received before the Events page opened. Fill the mock
backend with realistic connections, DNS records, logs, events, notices
and history for the public demo, with traffic shaped by destination.
Link the demo from the READMEs and refresh the screenshots.
Keep each tab bound to its loaded backend and surface group-arrange failures. Correct labels and disclosures and extend browser smoke checks to WebKit.
Exercise APK and IPK recipes and install packages on supported distributions. Align Gentoo and other recipes with their target repositories while correcting page and store behavior.
Add a modules tab for focused source edits. Tighten capability and session handling, align tests and move store and dae code into their top-level modules.
Add Alpine and Nix recipes and expand offline dependency archives across Linux architectures. Keep nfpm focused on the install directory and clarify package documentation.
Add the About dialog and update the engine-facing documentation. Build distribution archives and package recipes, set the beta version and correct release checksum filenames.
Add release packaging, multilingual READMEs, templates, license annotations and coverage setup. Standardize the pages on the shared kit and remove the legacy backend mode.
Consolidate the product tree, share in-flight reads and define one invalidation table. Add a live API conformance tool, repository guidance and browser checks.
Add a hash router, lint and format checks and a selectable build directory. Update the vendored contract and remove machine-local package configuration.