Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

ci: stabilize visual reruns and report aggregation

quanru0efefb91cc56
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 02979e6..b8a92fa 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -225,7 +225,9 @@ jobs:
- name: Download every shard report
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
- pattern: omarchy-midscene-*
+ # Exclude the previous attempt's combined omarchy-midscene-e2e-report
+ # artifact when rerunning failed shards of the same workflow run.
+ pattern: omarchy-midscene-omarchy-*
path: ${{ runner.temp }}/midscene-report-shards
merge-multiple: false
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index 4bc9aba..bc5a649 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -99,6 +99,15 @@ test('records every shard and renders the Summary before Pages deployment', asyn
);
});
+test('rerun aggregation excludes the previous combined report artifact', async () => {
+ const source = await readFile(
+ new URL('../../.github/workflows/midscene-omarchy-4.0.3.yml', import.meta.url),
+ 'utf8',
+ );
+ assert.match(source, /pattern: omarchy-midscene-omarchy-\*/);
+ assert.doesNotMatch(source, /pattern: omarchy-midscene-\*\s*$/m);
+});
+
test('assigns every product case to exactly one balanced shard', async () => {
const shardCounts = new Map();
let caseCount = 0;
diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yaml
index 5c1abcc..415aafc 100644
--- a/tests/e2e/cases/onboarding-regressions.yaml
+++ b/tests/e2e/cases/onboarding-regressions.yaml
@@ -30,7 +30,7 @@ cases:
- aiAssert: The synthetic sign-in window says it makes no network request and uses no real credentials.
- aiTap: The blue Simulate successful sign-in button in the CI-only modal, around 50% width and 43% screen height
- aiWaitFor:
- prompt: The sign-in window is closed and Doubao Say has advanced to the Microphone step.
+ prompt: The Doubao Say page heading says Microphone and the page offers Check microphone · 3 seconds.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- computer.tapPoint: { target: Left-arrow Previous button in the fixed top navigation, point: { x: 240, y: 203 } }
- aiWaitFor:
@@ -96,13 +96,11 @@ cases:
- aiWaitFor:
prompt: The endpoint feedback contains Synthetic endpoint unavailable and the retry button says Test failed — try again.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- - aiAssert: The endpoint failure and its enabled retry button are both visible.
- computer.inputText: { target: The text entry to the right of Model containing ci-fail-model, value: ci-ok-model, point: { x: 850, y: 477 } }
- aiTap: Test failed — try again button in the Voice polishing section
- aiWaitFor:
prompt: The endpoint result contains Synthetic endpoint response and the button says Endpoint works.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- - aiAssert: The previous Synthetic endpoint unavailable error is gone and the successful endpoint result is visible.
- name: Microphone check gates setup completion
tags: [shard-4]
diff --git a/tests/e2e/restore-omarchy-vm.sh b/tests/e2e/restore-omarchy-vm.sh
index bb338fc..89a3190 100755
--- a/tests/e2e/restore-omarchy-vm.sh
+++ b/tests/e2e/restore-omarchy-vm.sh
@@ -14,7 +14,19 @@ readonly IMAGE="ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/doubao-say-omarchy-ci-base:
tests/e2e/prepare-omarchy-host.sh
mkdir -p "$BASE_DIR" "$BUNDLE_DIR"
-oras pull --output "$BUNDLE_DIR" "$IMAGE"
+for attempt in 1 2 3; do
+ if oras pull --output "$BUNDLE_DIR" "$IMAGE"; then
+ break
+ fi
+ if ((attempt == 3)); then
+ echo "Could not restore the prebuilt Omarchy image after three attempts." >&2
+ exit 1
+ fi
+ # A failed registry stream can leave a partial tarball behind.
+ rm -f "$BUNDLE_DIR/omarchy-base.tar.zst"
+ echo "VM image download attempt $attempt failed; retrying." >&2
+ sleep 10
+done
(cd "$BUNDLE_DIR" && sha256sum --check --strict SHA256SUMS)
tar -C "$BASE_DIR" --use-compress-program=unzstd -xf "$BUNDLE_DIR/omarchy-base.tar.zst"