Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

ci: finalize distribution-named Midscene workflows

quanru603951df2452
diff --git a/.github/workflows/midscene-experimental.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
similarity index 71%
rename from .github/workflows/midscene-experimental.yml
rename to .github/workflows/midscene-omarchy-4.0.3.yml
index f1d4730..814c74b 100644
--- a/.github/workflows/midscene-experimental.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -1,19 +1,57 @@
-name: Midscene E2E · Omarchy 4.0.3
-run-name: Omarchy 4.0.3 · Midscene E2E
+name: Omarchy 4.0.3
+run-name: Omarchy 4.0.3
-on: workflow_dispatch
+on:
+ push:
+ branches: [main]
+ paths:
+ - ".github/workflows/midscene-omarchy-4.0.3.yml"
+ - "tests/midscene/package.json"
+ - "tests/midscene/package-lock.json"
+ - "tests/midscene/gtk_fixture.py"
+ - "tests/midscene/e2e/**"
+ - "tests/midscene/run-omarchy-midscene.sh"
+ - "tests/midscene/restore-omarchy-vm.sh"
+ - "tests/midscene/omarchy-vm.env"
+ - "src/**"
+ - "manifest.json"
+ - "install.sh"
+ - "install-user.sh"
+ - "setup-omarchy.sh"
+ - "start.sh"
+ - "omarchy/**"
+ pull_request:
+ branches: [main]
+ paths:
+ - ".github/workflows/midscene-omarchy-4.0.3.yml"
+ - "tests/midscene/package.json"
+ - "tests/midscene/package-lock.json"
+ - "tests/midscene/gtk_fixture.py"
+ - "tests/midscene/e2e/**"
+ - "tests/midscene/run-omarchy-midscene.sh"
+ - "tests/midscene/restore-omarchy-vm.sh"
+ - "tests/midscene/omarchy-vm.env"
+ - "src/**"
+ - "manifest.json"
+ - "install.sh"
+ - "install-user.sh"
+ - "setup-omarchy.sh"
+ - "start.sh"
+ - "omarchy/**"
+ workflow_dispatch:
permissions:
contents: read
packages: read
concurrency:
- group: midscene-omarchy-4-0-3-${{ github.ref }}
+ group: omarchy-4-0-3-${{ github.ref }}
cancel-in-progress: true
jobs:
omarchy-vm:
- name: Omarchy 4.0.3
+ name: Midscene onboarding
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
timeout-minutes: 70
env:
diff --git a/.github/workflows/midscene-e2e.yml b/.github/workflows/midscene-ubuntu-22.04.yml
similarity index 82%
rename from .github/workflows/midscene-e2e.yml
rename to .github/workflows/midscene-ubuntu-22.04.yml
index 186eff6..a50e618 100644
--- a/.github/workflows/midscene-e2e.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -1,28 +1,38 @@
-name: Midscene E2E · Ubuntu 22.04
-run-name: Ubuntu 22.04 · Midscene E2E
+name: Ubuntu 22.04
+run-name: Ubuntu 22.04
on:
push:
- branches: [ci/midscene-e2e]
+ branches: [main]
paths:
- - ".github/workflows/midscene-e2e.yml"
+ - ".github/workflows/midscene-ubuntu-22.04.yml"
- "tests/midscene/package.json"
- "tests/midscene/package-lock.json"
- "tests/midscene/gtk_fixture.py"
- "tests/midscene/e2e/**"
- - "src/doubao_input/ui/**"
+ - "src/**"
+ pull_request:
+ branches: [main]
+ paths:
+ - ".github/workflows/midscene-ubuntu-22.04.yml"
+ - "tests/midscene/package.json"
+ - "tests/midscene/package-lock.json"
+ - "tests/midscene/gtk_fixture.py"
+ - "tests/midscene/e2e/**"
+ - "src/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
- group: midscene-ubuntu-22-04-${{ github.ref }}
+ group: ubuntu-22-04-${{ github.ref }}
cancel-in-progress: true
jobs:
ubuntu-gtk:
- name: Ubuntu 22.04
+ name: Midscene onboarding
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-22.04
timeout-minutes: 15
env:
diff --git a/tests/midscene/README.md b/tests/midscene/README.md
index dc2a37f..f5501e9 100644
--- a/tests/midscene/README.md
+++ b/tests/midscene/README.md
@@ -1,8 +1,8 @@
# Midscene E2E by Linux distribution
-Everything under this directory is developed on `ci/midscene-e2e`; it is not
-part of the release branch. GitHub Actions names the two suites after their
-tested distributions: Ubuntu 22.04 and Omarchy 4.0.3.
+GitHub 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`, and both execute the same shared onboarding acceptance flow.
The image-builder CI proves that a GitHub-hosted runner can install the exact
official Omarchy ISO in a headless QEMU/KVM VM. It reuses Omarchy's own ISO
@@ -35,16 +35,18 @@ Omarchy Midscene flow, and 7 minutes 31 seconds for the whole job. The prior
install-per-run workflow took 17 minutes 43 seconds, so the restored path saves
10 minutes 12 seconds (about 58%).
-The manual Omarchy workflow now continues from that installed base image:
+The Omarchy workflow continues from that installed base image:
1. Boot a throwaway overlay from the installed base image.
2. Copy this checkout to `md.lifeos.doubao-say` in the guest and run Omarchy's
plugin validator.
-3. Run deterministic GTK UI fixtures with Rstest and `@midscene/computer` on
- ordinary Ubuntu for every trusted change.
-4. Run the same focused Midscene onboarding suite through VNC in the real
+3. Run the focused Midscene onboarding suite through VNC in the real
Omarchy/Hyprland guest session.
+The Ubuntu workflow runs the deterministic GTK fixture directly with Rstest
+and `@midscene/computer`. Pull requests from forks are skipped because GitHub
+does not expose the required model secret to untrusted workflow code.
+
Both distributions execute the same shared Midscene onboarding scenario. The
Ubuntu stage maps the real GTK onboarding window inside the
headless Midscene desktop. Its synthetic fixture starts signed out, opens an