Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(ci): don't fail the release-gate report when a post-merge push runs no lanes (#6690)

cua-agents[bot]509bbb001530
diff --git a/.github/workflows/ci-quick.yml b/.github/workflows/ci-quick.yml
index 6008516c59..0e84eff8d9 100644
--- a/.github/workflows/ci-quick.yml
+++ b/.github/workflows/ci-quick.yml
@@ -25,7 +25,11 @@ permissions:
concurrency:
# Called from another workflow, github.workflow is the caller's name; the prefix keeps this group
# apart from the caller's own concurrency group, so neither cancels the other.
- group: ci-quick-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
+ # A label event (opened + labeled fire together when a PR is created with a label) gets its own
+ # group, so it cannot cancel the run for the new head; only a newer push (synchronize) cancels.
+ group: >-
+ ci-quick-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}-${{
+ (github.event.action == 'labeled' || github.event.action == 'unlabeled') && github.run_id || 'main' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
diff --git a/.github/workflows/e2e-cua-driver-release-gate.yml b/.github/workflows/e2e-cua-driver-release-gate.yml
index e7eedcf4b2..259a6f8296 100644
--- a/.github/workflows/e2e-cua-driver-release-gate.yml
+++ b/.github/workflows/e2e-cua-driver-release-gate.yml
@@ -337,7 +337,9 @@ jobs:
# posts it to Alertmanager.
nightly-report:
name: "E2E gate / nightly report"
- if: always() && (needs.decide.outputs.mode == 'nightly' || needs.decide.outputs.mode == 'post-merge')
+ # A post-merge push without gated paths runs no lanes (decide.run == false): every lane
+ # is then `skipped`, which is not a failure, so there is nothing to report.
+ if: always() && needs.decide.outputs.run == 'true' && (needs.decide.outputs.mode == 'nightly' || needs.decide.outputs.mode == 'post-merge')
needs: [decide, linux, windows, macos, macos-pr, browsers]
runs-on: ubuntu-latest
timeout-minutes: 10