Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

fix(workflow): make e2e reruns deterministic

quanrudfb007dc2c5a
diff --git a/.github/workflows/deploy-midscene-report.yml b/.github/workflows/deploy-midscene-report.yml
index ced3cca..e777d4f 100644
--- a/.github/workflows/deploy-midscene-report.yml
+++ b/.github/workflows/deploy-midscene-report.yml
@@ -114,12 +114,13 @@ jobs:
- name: Upload the restricted Pages payload
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
+ name: ${{ inputs.artifact-name }}-pages-${{ github.run_attempt }}
path: ${{ runner.temp }}/pages-site
- name: Upload the manifest for deployment verification
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: ${{ inputs.artifact-name }}-manifest
+ name: ${{ inputs.artifact-name }}-manifest-${{ github.run_attempt }}
path: ${{ runner.temp }}/pages-site/reports/manifest.json
if-no-files-found: error
retention-days: 1
@@ -148,11 +149,13 @@ jobs:
- name: Deploy report history to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
+ with:
+ artifact_name: ${{ inputs.artifact-name }}-pages-${{ github.run_attempt }}
- name: Download the manifest for deployment verification
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
- name: ${{ inputs.artifact-name }}-manifest
+ name: ${{ inputs.artifact-name }}-manifest-${{ github.run_attempt }}
path: ${{ runner.temp }}/pages-site/reports
- name: Verify every published report endpoint
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 71befb7..3199b0a 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -170,6 +170,7 @@ jobs:
path: .midscene-omarchy/omarchy-iso/test-runs/**/runs/**
if-no-files-found: warn
retention-days: 3
+ overwrite: true
- name: Upload Omarchy Midscene shard report
if: always() && !cancelled()
@@ -179,6 +180,7 @@ jobs:
path: tests/e2e/midscene_run/
if-no-files-found: error
retention-days: 7
+ overwrite: true
- name: Verify Omarchy shell visual evidence
if: success() && matrix.project == 'omarchy-shell'
@@ -214,6 +216,7 @@ jobs:
path: ${{ runner.temp }}/midscene-report-shards/
if-no-files-found: error
retention-days: 7
+ overwrite: true
pages-report:
name: GitHub Pages report
diff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.yml
index 98e7345..c8ea174 100644
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -174,6 +174,7 @@ jobs:
path: tests/e2e/midscene_run/
if-no-files-found: error
retention-days: 7
+ overwrite: true
report-bundle:
name: Assemble Midscene report bundle
@@ -205,6 +206,7 @@ jobs:
path: ${{ runner.temp }}/midscene-report-shards/
if-no-files-found: error
retention-days: 7
+ overwrite: true
pages-report:
name: GitHub Pages report
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index f032f23..1bcb741 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -59,6 +59,16 @@ test('records every shard and renders the Summary before Pages deployment', asyn
);
assert.match(source, /if-no-files-found: error/);
assert.match(source, /Create bundle even when every shard failed early/);
+ assert.match(
+ source,
+ /Upload .*shard report[\s\S]*?overwrite: true/,
+ `${workflow} must replace a rerun shard artifact instead of keeping duplicate names`,
+ );
+ assert.match(
+ source,
+ /Upload combined report bundle[\s\S]*?overwrite: true/,
+ `${workflow} must replace the previous attempt's combined bundle`,
+ );
}
const deploy = await readFile(
@@ -75,6 +85,18 @@ test('records every shard and renders the Summary before Pages deployment', asyn
);
assert.ok(deployJob > summary);
assert.doesNotMatch(deploy.slice(0, deployJob), /environment:/);
+ assert.match(
+ deploy,
+ /name: \$\{\{ inputs\.artifact-name \}\}-pages-\$\{\{ github\.run_attempt \}\}/,
+ );
+ assert.match(
+ deploy,
+ /artifact_name: \$\{\{ inputs\.artifact-name \}\}-pages-\$\{\{ github\.run_attempt \}\}/,
+ );
+ assert.match(
+ deploy,
+ /name: \$\{\{ inputs\.artifact-name \}\}-manifest-\$\{\{ github\.run_attempt \}\}/,
+ );
});
test('assigns every product case to exactly one balanced shard', async () => {
diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yaml
index fa2e436..f821253 100644
--- a/tests/e2e/cases/onboarding-regressions.yaml
+++ b/tests/e2e/cases/onboarding-regressions.yaml
@@ -150,7 +150,7 @@ cases:
- aiTap: Start voice test button in the Voice test content panel
- wait: { duration: 750 }
- aiAssert: Synthetic voice test transcript is visible, and Finish & check result is available again.
- - aiTap: Finish & check result button in the Voice test content panel
+ - aiAct: Activate Finish & check result in the Voice test content panel. Wait until the Listening overlay disappears and Voice test passed appears. If the first activation has no visible effect, activate the same button once more.
- wait: { duration: 750 }
- aiAct: Scroll down inside the Voice test content panel until the setup button is fully visible.
- aiAssert: The enabled setup button visibly says Voice test passed and nothing pasted or sent.
diff --git a/tests/e2e/cases/onboarding.yaml b/tests/e2e/cases/onboarding.yaml
index f0f3a38..40be7a1 100644
--- a/tests/e2e/cases/onboarding.yaml
+++ b/tests/e2e/cases/onboarding.yaml
@@ -30,7 +30,7 @@ cases:
- aiTap: Start voice test button in the Voice test content panel
- wait: { duration: 750 }
- aiAssert: The Voice test shows Synthetic voice test transcript and offers both Finish & check result and Cancel test.
- - aiTap: Finish & check result button in the Voice test content panel
+ - aiAct: Activate Finish & check result in the Voice test content panel. Wait until the Listening overlay disappears and Voice test passed appears. If the first activation has no visible effect, activate the same button once more.
- wait: { duration: 750 }
- aiAct: Scroll to the bottom of the Voice test content panel until the Finish setup button is fully visible. Do not stop at the Start voice test button.
- aiAssert: The Finish setup button is fully visible and enabled, and the confirmation says Voice test passed and nothing was pasted or sent.