54 Commits
Author SHA1 Message Date
Zakk 0ed10b68c7 ci(check): fix two flaky e2e tests and trim the nightly run (#705)
## 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.
2026-11-25 21:47:50 +11:00
Zakk 3b7845b076 chore(github): close bug reports that carry no log
A bug report whose log field is a placeholder or under 40 characters, with no screenshot attached, now fails the template check, so it is labelled, closed, and reopened once a log or screenshot is added. The form says where to find the log instead of inviting "none".
2026-11-13 20:21:57 +11:00
dependabot[bot] c942c87312 build(deps): bump pnpm/action-setup from 6.1.0 to 6.1.1
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-12 13:30:04 +11:00
dependabot[bot] 55cd030829 build(deps): bump softprops/action-gh-release from 3.0.3 to 3.0.4
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/efb35369e0ad2afab669f228072c1b0d510eae64...8a0cd651e5b2365bd640854a3fa5dfc70e4875f3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-12 13:29:39 +11:00
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 69c5441345 chore(github): make issue and PR templates bilingual and stricter 2026-10-30 08:13:36 +00:00
Zakk c91bf35df4 docs(readme): default to Traditional Chinese
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.
2026-10-27 08:36:24 +00:00
Zakk 2e477c0665 ci(release): package doona lite beside the standard edition 2026-10-27 01:48:59 +00:00
Zakk fbe1779c79 feat(lite): add doona lite, a simple config editor
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.
2026-10-27 01:37:20 +00:00
dependabot[bot] ea61a97e15 build(deps): bump actions/upload-artifact from 7.0.1 to 7.0.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a...cf430e030ddbb5b0abf93d22962f4752f3646cd9)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-20 04:33:07 +11:00
dependabot[bot] 41bc063109 build(deps): bump actions/setup-node from 7.0.0 to 7.1.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-20 04:33:01 +11:00
dependabot[bot] 01d73f5701 build(deps): bump actions/download-artifact from 8.0.1 to 8.0.2
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c...9000827ccba6bdab643e8b6fd33ac0654aef8333)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 8.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-20 04:32:55 +11: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 d29068b93c chore(packaging): slim the licence files in the program archive
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.
2026-10-04 22:20:58 +11:00
Zakk b66f1ecb7a build(package): follow aports and openwrt/packages conventions
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.
2026-10-04 20:01:04 +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 ac7270ca87 chore(ci): cancel a superseded run on main
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.
2026-10-04 15:20:49 +11:00
Zakk 09a3ea3e46 feat(changelog): collect per-pr release fragments
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.
2026-10-03 22:47:03 +10: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 3b4bba24d2 fix(release): fetch honk from the pinned tag's release 2026-10-03 19:34:17 +10:00
Zakk 36b5687c59 fix(packaging): rename the deb to doona-web
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.
2026-10-03 18:44:00 +10:00
Zakk aafdd56d8e docs: sync repository text with the code
Bring the READMEs, CONTRIBUTING, PR templates, install notes and recipe usage text, flag notes and page metadata in line with the current code: CI lanes, repository layout with mock/ at the root, engine selection, the native API ui setting, the removed Backend actions card and the per-row DNS actions. Fix make install-fonts, which looked for the licence file in public/fonts instead of dist/fonts.
2026-10-03 06:53:04 +10:00
Zakk 754ee835b6 ci: run checks on arm64 runners 2026-10-02 23:25:59 +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
Zakk f4e22d47c5 ci(e2e): split browsers across nine hosted shards
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.
2026-10-02 10:55:16 +10:00
Zakk 70d27588bf chore(deps): bump github actions to their current majors
Apply the adjacent Dependabot updates together to avoid workflow conflicts:
- actions/upload-artifact v4 -> v7.0.1
- actions/setup-node v4 -> v7.0.0
- actions/checkout v4 -> v7.0.1
- pnpm/action-setup v4 -> v6.1.0
- softprops/action-gh-release v2.5.0 -> v3.0.3
- actions/download-artifact v4 -> v8.0.1 for upload-artifact v7 compatibility
- actions/github-script v7 -> v9.0.0 for the Node 24 runtime

Pin every action to its release SHA and retain exact version comments.
Keep pnpm sourced from packageManager, explicit pnpm caching, unique shard
artifact names, zipped uploads and merge-multiple report extraction.
Keep gh-release's draft, prerelease, files and unmatched-file inputs.
Group release environment writes and separate SOURCE_DATE_EPOCH assignment
from export so shellcheck passes without masking git failures.
2026-10-02 04:02:11 +10:00
Zakk 8362cb8677 ci(check): pin actions by sha and write shard summaries
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.
2026-10-02 00:59:03 +10:00
Zakk 1f6c99e240 ci(check): run matrices and firefox nightly with a failure issue
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.
2026-10-02 00:59:03 +10:00
Zakk 978715e0de ci(check): route docs-only prs to a light check behind a ci-ok gate
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.
2026-10-02 00:59:03 +10:00
Zakk 245fc36128 ci(check): cancel superseded pr runs and set job timeouts
Cancel older runs of the same pull request and bound each existing lane to its measured runtime budget.
2026-10-02 00:59:03 +10:00
Zakk 4a76167a9a ci(e2e): use preinstalled browser dependencies and merge shard reports
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.
2026-10-01 04:02:07 +10:00
Zakk 45649cfb62 fix(release): install every licence file in the packages
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.
2026-09-30 12:14:28 +10:00
Zakk 2616fb7101 ci: split the browser suite over four parallel runners 2026-09-29 21:20:54 +10:00
Zakk c7f15d67a7 fix(i18n): tighten check:i18n and its --missing flag
--missing <id> now works before the language's catalogue exists, and
fails with usage when the id is absent or unknown. An absent catalogue
is reported by path instead of a bare ENOENT. A blank message fails the
check. The pull request templates ask for en.json and every complete
language instead of three fixed locales.
2026-09-28 13:41:03 +10:00
Zakk f01c21ffb1 ci(release): pin the bundled honk commit
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.
2026-09-28 04:08:35 +10:00
Zakk 9402af2bd8 ci(release): attach the honk source archive of the bundled commit
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.
2026-09-28 02:36:01 +10:00
Zakk d7eb844f83 ci(release): attach honk-core debug builds to each release
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.
2026-09-28 02:36:01 +10:00
Zakk 923527343c ci(check): run each check once
pnpm check ran the unit tests and test:coverage ran them again; CI now runs check's other steps one by one and the tests once under coverage.
2026-09-26 04:47:54 +10:00
Zakk 67a50450c0 ci(check): run once per PR and label flaky e2e tests
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.
2026-09-25 22:59:36 +10:00
Zakk 04650cd752 build(release): name packages by each ecosystem's version rules
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.
2026-09-24 15:26:19 +10:00
Zakk 3d1e9a9b92 fix: address feedback on 0.1.0-beta.2
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.
2026-09-24 14:27:28 +10:00
Zakk b749bd9c0c docs(github): add accountable issue and pull request templates
Require a named human reviewer and observed evidence in English and Simplified Chinese submission forms.
2026-09-24 09:55:41 +10:00
Zakk 73db15940a fix(ui): clarify loading failures and selected states
Keep each tab bound to its loaded backend and surface group-arrange failures. Correct labels and disclosures and extend browser smoke checks to WebKit.
2026-09-23 10:59:25 +10:00
Zakk 6333b757d6 feat(settings): expose recorder modes and source details
Add recorder settings and an unmasked configuration surface, and link module cards to source sections. Update the guide, control motion and list rendering thresholds.
2026-09-23 01:22:42 +10:00
Zakk 37d724d2e2 build(install): validate distribution recipes
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.
2026-09-22 15:49:07 +10:00
Zakk 47a48a1a89 feat(config): edit modules one section at a time
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.
2026-09-22 10:49:44 +10:00
Zakk d153e8a88d refactor(ui): split the kit, store and feature controllers
Separate UI families, resource state and page controllers to reduce shared module size. Adjust glass surfaces, loading behavior and store scheduling during the split.
2026-09-21 20:53:42 +10:00
Zakk b3cd99173e build(install): add Alpine and Nix source packages
Add Alpine and Nix recipes and expand offline dependency archives across Linux architectures. Keep nfpm focused on the install directory and clarify package documentation.
2026-09-21 18:58:37 +10:00