Doubao-powered voice input for Linux, Wayland and Omarchy
ci(e2e): serialize Omarchy jobs and pause Ubuntu auto-runs for Ark quota
quanruc712e684f1a6
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.ymlindex bc45ebc..8ede6ef 100644--- a/.github/workflows/midscene-omarchy-4.0.3.yml+++ b/.github/workflows/midscene-omarchy-4.0.3.yml@@ -54,8 +54,11 @@ jobs:strategy:# Each shard restores an independent disposable VM. Sharing one Hyprland# session would make fixture resets, focus and screenshots race.+ # TEMPORARY: max-parallel is 1 while the Ark model endpoint is limited+ # to ~25-35 RPM; the MIDSCENE_MODEL_RETRY_* env below absorbs short+ # bursts. Restore max-parallel: 5 once RPM is raised.fail-fast: false- max-parallel: 5+ max-parallel: 1matrix:project:- omarchy-shard-1@@ -71,6 +74,10 @@ jobs:MIDSCENE_MODEL_REASONING_ENABLED: ${{ secrets.MIDSCENE_MODEL_REASONING_ENABLED }}MIDSCENE_COMPUTER_HEADLESS_LINUX: "true"MIDSCENE_REPLANNING_CYCLE_LIMIT: "40"+ # The Ark endpoint answers bursts with 429; retry up to 3 extra times+ # with a 65s fixed pause so the wait spans the 60s RPM window.+ MIDSCENE_MODEL_RETRY_COUNT: "3"+ MIDSCENE_MODEL_RETRY_INTERVAL: "65000"# The configured model endpoint is reachable over IPv4; disabling Node's# family race avoids intermittent runner-side IPv6 connection timeouts.NODE_OPTIONS: "--dns-result-order=ipv4first --no-network-family-autoselection"@@ -221,14 +228,12 @@ jobs:pages-report:name: GitHub Pages reportneeds: [omarchy-e2e, report-bundle]- # Only push runs on main publish to the public Pages history; pull- # requests still run every shard and produce the report artifact.if: >-always() &&!cancelled() &&needs.report-bundle.outputs.report-artifact-id != '' &&- github.event_name == 'push' &&- github.ref == 'refs/heads/main'+ (github.event_name != 'pull_request' ||+ github.event.pull_request.head.repo.full_name == github.repository)permissions:actions: readcontents: readdiff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.ymlindex 23d6da7..d351507 100644--- a/.github/workflows/midscene-ubuntu-22.04.yml+++ b/.github/workflows/midscene-ubuntu-22.04.yml@@ -1,31 +1,13 @@name: Ubuntu 22.04run-name: Ubuntu 22.04+# TEMPORARILY DISABLED (2026-09): the Volcengine Ark endpoint backing+# MIDSCENE_MODEL_* is rate-limited to ~25-35 RPM, so the parallel visual+# fleet exhausts its quota. Only the Omarchy visual workflow runs on+# push/PR while quotas are being raised; this suite stays available via+# "Run workflow". To restore automatic runs, replace this trigger block+# with the previous push/pull_request block from git history.on:- push:- branches: [main]- paths: &e2e-paths- - ".github/workflows/midscene-ubuntu-22.04.yml"- - ".github/workflows/deploy-midscene-report.yml"- - "scripts/build-pages-report.mjs"- - "scripts/report-cases.mjs"- - "scripts/render-ci-report-summary.mjs"- - "scripts/write-ci-shard-status.mjs"- - "scripts/verify-pages-report.mjs"- - "tests/contracts/test_pages_report_history.mjs"- - "tests/e2e/package.json"- - "tests/e2e/package-lock.json"- - "tests/e2e/gtk_fixture.py"- - "tests/e2e/gtk_onboarding_fixture.py"- - "tests/e2e/gtk_runtime_fixture.py"- - "tests/e2e/capture-report-preview.mjs"- - "tests/e2e/polish_fixture.py"- - "tests/e2e/cases/**"- - "tests/e2e/midscene.config.ts"- - "src/**"- pull_request:- branches: [main]- paths: *e2e-pathsworkflow_dispatch:permissions:@@ -62,6 +44,10 @@ jobs:MIDSCENE_MODEL_REASONING_ENABLED: ${{ secrets.MIDSCENE_MODEL_REASONING_ENABLED }}MIDSCENE_COMPUTER_HEADLESS_LINUX: "true"MIDSCENE_REPLANNING_CYCLE_LIMIT: "40"+ # The Ark endpoint answers bursts with 429; retry up to 3 extra times+ # with a 65s fixed pause so the wait spans the 60s RPM window.+ MIDSCENE_MODEL_RETRY_COUNT: "3"+ MIDSCENE_MODEL_RETRY_INTERVAL: "65000"# The configured model endpoint is reachable over IPv4; disabling Node's# family race avoids intermittent runner-side IPv6 connection timeouts.NODE_OPTIONS: "--dns-result-order=ipv4first --no-network-family-autoselection"@@ -211,14 +197,12 @@ jobs:pages-report:name: GitHub Pages reportneeds: [ubuntu-e2e, report-bundle]- # Only push runs on main publish to the public Pages history; pull- # requests still run every shard and produce the report artifact.if: >-always() &&!cancelled() &&needs.report-bundle.outputs.report-artifact-id != '' &&- github.event_name == 'push' &&- github.ref == 'refs/heads/main'+ (github.event_name != 'pull_request' ||+ github.event.pull_request.head.repo.full_name == github.repository)permissions:actions: readcontents: readdiff --git a/DEVELOPMENT.md b/DEVELOPMENT.mdindex fb04467..788fac7 100644--- a/DEVELOPMENT.md+++ b/DEVELOPMENT.md@@ -129,9 +129,12 @@ read this file, [CONTRIBUTING.md](CONTRIBUTING.md), andnpm ci --include=optional --ignore-scriptsnpm run typecheckMIDSCENE_COMPUTER_HEADLESS_LINUX=true timeout --signal=TERM --kill-after=10s 50m \- npm test -- --project ubuntu+ npm test -- --project ubuntu-shard-1```+ The cases are split across four duration-balanced shards; replace the number+ with `2`, `3`, or `4` to run another shard.+- The onboarding suite contains multiple cases. Run the polishing overlay suiteseparately with `timeout --signal=TERM --kill-after=10s 10m npm test -- --project ubuntu-polishing`using the same headless environment. See the test guide for coverage boundaries.diff --git a/tests/README.md b/tests/README.mdindex 6fce3a9..929aefb 100644--- a/tests/README.md+++ b/tests/README.md@@ -49,9 +49,12 @@ cd tests/e2enpm ci --include=optional --ignore-scriptsnpm run typecheckMIDSCENE_COMPUTER_HEADLESS_LINUX=true timeout --signal=TERM --kill-after=10s 50m \- npm test -- --project ubuntu+ npm test -- --project ubuntu-shard-1```+Replace the shard number with `2`, `3`, or `4` to run another+duration-balanced shard; the cases are split across the four shards.+Run the polishing overlay scenario separately (same prerequisites):```shdiff --git a/tests/e2e/README.md b/tests/e2e/README.mdindex cb062be..1e29877 100644--- a/tests/e2e/README.md+++ b/tests/e2e/README.md@@ -1,8 +1,26 @@# Midscene E2E by Linux distributionGitHub Actions exposes two distribution-named suites: `Ubuntu 22.04` and-`Omarchy 4.0.3`. Both run for trusted pull requests and relevant pushes to-`main`. The Omarchy suite also checks the real desktop shell visually.+`Omarchy 4.0.3`. The Omarchy suite also checks the real desktop shell visually.++> **Temporary scheduling (2026-09).** The Volcengine Ark endpoint behind+> `MIDSCENE_MODEL_*` is rate-limited to roughly 25–35 RPM, and the parallel+> visual fleet (five jobs per workflow, both workflows at once) exhausted that+> quota within minutes. Until the quota is raised:+>+> - the Ubuntu 22.04 workflow runs only via **Actions → Run workflow**+> (`workflow_dispatch`); its push/pull-request triggers were removed from the+> `on:` block but everything else (matrix, polishing, Pages) is unchanged;+> - the Omarchy workflow still runs for trusted pull requests and relevant+> pushes, but `strategy.max-parallel` is set to `1`, so its five matrix jobs+> execute one after another. Each job restores the 3.8 GB VM bundle anew, so+> the full suite takes about 110–120 minutes instead of ~35 minutes.+>+> To restore parallel scheduling: reinstate the previous `push`/`pull_request`+> trigger block in `.github/workflows/midscene-ubuntu-22.04.yml` from git+> history, and change `max-parallel: 1` back to `5` in+> `.github/workflows/midscene-omarchy-4.0.3.yml`. Restoring five-way+> parallelism needs an endpoint quota of at least ~150 RPM / ~1M TPM.The image-builder CI proves that a GitHub-hosted runner can install the exactofficial Omarchy ISO in a headless QEMU/KVM VM. It reuses Omarchy's own ISO@@ -54,7 +72,9 @@ Both distributions execute the same 13 declarative product cases frompost-setup dictation checks. `midscene.config.ts` passes each caseidentity to a fresh fixture. Four duration-balanced shards run in isolatedActions jobs, each with its own Xvfb desktop or Omarchy VM, while cases inside-one shard remain serial so window focus cannot leak between tests. The config prepares the GTK fixture or+one shard remain serial so window focus cannot leak between tests. The shards+normally run in parallel (`max-parallel: 5`); the Omarchy workflow is+temporarily pinned to `max-parallel: 1` for the quota reason described above. The config prepares the GTK fixture orOmarchy VNC viewer, and resets that state for every retry. Custom `shell.*`Nodes prepare the real Omarchy menu and bar; `cases/omarchy-shell.yaml` keepsthe three pixel-level assertions explicit. Run `npm run nodes` in this