Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

fix(workflow): stop report jobs after cancellation

quanru842bda40e690
diff --git a/.github/workflows/deploy-midscene-report.yml b/.github/workflows/deploy-midscene-report.yml
index fdee4c4..ced3cca 100644
--- a/.github/workflows/deploy-midscene-report.yml
+++ b/.github/workflows/deploy-midscene-report.yml
@@ -97,7 +97,7 @@ jobs:
node scripts/build-pages-report.mjs "${arguments[@]}"
- name: Add complete evidence table to the run summary
- if: always() && steps.build-report.outcome == 'success'
+ if: always() && !cancelled() && steps.build-report.outcome == 'success'
env:
PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }}
PRODUCER_RESULT: ${{ inputs.run-result }}
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 88d3c7e..71befb7 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -141,7 +141,7 @@ jobs:
- name: Capture report evidence
id: capture-report
- if: always() && steps.test-dependencies.outcome == 'success'
+ if: always() && !cancelled() && steps.test-dependencies.outcome == 'success'
env:
PROJECT: ${{ matrix.project }}
run: |
@@ -150,7 +150,7 @@ jobs:
--projects "$PROJECT"
- name: Record shard result for report aggregation
- if: always()
+ if: always() && !cancelled()
env:
PROJECT: ${{ matrix.project }}
TEST_OUTCOME: ${{ steps.midscene-test.outcome }}
@@ -163,7 +163,7 @@ jobs:
--capture-outcome "${CAPTURE_OUTCOME:-skipped}"
- name: Upload installer evidence
- if: always()
+ if: always() && !cancelled()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: omarchy-vm-installer-evidence-${{ matrix.project }}
@@ -172,7 +172,7 @@ jobs:
retention-days: 3
- name: Upload Omarchy Midscene shard report
- if: always()
+ if: always() && !cancelled()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: omarchy-midscene-${{ matrix.project }}
@@ -187,7 +187,7 @@ jobs:
report-bundle:
name: Assemble Midscene report bundle
needs: omarchy-e2e
- if: always()
+ if: always() && !cancelled()
runs-on: ubuntu-latest
outputs:
report-artifact-id: ${{ steps.report.outputs.artifact-id }}
@@ -220,6 +220,7 @@ jobs:
needs: [omarchy-e2e, report-bundle]
if: >-
always() &&
+ !cancelled() &&
needs.report-bundle.outputs.report-artifact-id != '' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
diff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.yml
index 4a8bfe4..98e7345 100644
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -145,7 +145,7 @@ jobs:
- name: Capture report evidence
id: capture-report
- if: always() && steps.test-dependencies.outcome == 'success'
+ if: always() && !cancelled() && steps.test-dependencies.outcome == 'success'
env:
PROJECT: ${{ matrix.project }}
run: |
@@ -154,7 +154,7 @@ jobs:
--projects "$PROJECT"
- name: Record shard result for report aggregation
- if: always()
+ if: always() && !cancelled()
env:
PROJECT: ${{ matrix.project }}
TEST_OUTCOME: ${{ steps.midscene-test.outcome }}
@@ -167,7 +167,7 @@ jobs:
--capture-outcome "${CAPTURE_OUTCOME:-skipped}"
- name: Upload Midscene shard report
- if: always()
+ if: always() && !cancelled()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: midscene-ubuntu-22.04-${{ matrix.project }}
@@ -178,7 +178,7 @@ jobs:
report-bundle:
name: Assemble Midscene report bundle
needs: ubuntu-e2e
- if: always()
+ if: always() && !cancelled()
runs-on: ubuntu-latest
outputs:
report-artifact-id: ${{ steps.report.outputs.artifact-id }}
@@ -211,6 +211,7 @@ jobs:
needs: [ubuntu-e2e, report-bundle]
if: >-
always() &&
+ !cancelled() &&
needs.report-bundle.outputs.report-artifact-id != '' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index da71d3f..f032f23 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -47,6 +47,11 @@ test('records every shard and renders the Summary before Pages deployment', asyn
'utf8',
);
assert.match(source, /Record shard result for report aggregation/);
+ assert.match(
+ source,
+ /if: always\(\) && !cancelled\(\)/,
+ `${workflow} must preserve failure evidence without extending manually cancelled runs`,
+ );
assert.match(
source,
/max-parallel: 5/,