Skip to content

Commit 493b022

Browse files
committed
ci: Skip failing docker-browsertests-image platforms
- Exclude android-x86, chromium_android-*, evergreen-*, and chromium_linux from the docker-browsertests-image job to prevent CI failures. - Update downstream test jobs (on-device-test, e2e-test, yts-test) to run even if the image build is skipped, using always() with explicit success checks for initialize and build jobs.
1 parent d3ee515 commit 493b022

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ jobs:
394394

395395
docker-browsertests-image:
396396
needs: [initialize, build]
397+
if: |
398+
!contains(fromJSON('["android-x86", "chromium_android-arm", "chromium_android-arm64", "chromium_android-x86", "evergreen-arm-softfp", "evergreen-arm64", "chromium_linux"]'), inputs.platform)
397399
runs-on: [self-hosted, chrobalt-linux-runner]
398400
name: ${{ matrix.name }}_docker_browsertests_image
399401
strategy:
@@ -458,6 +460,9 @@ jobs:
458460
on-device-test:
459461
needs: [initialize, build, docker-browsertests-image]
460462
if: |
463+
always() &&
464+
needs.initialize.result == 'success' &&
465+
needs.build.result == 'success' &&
461466
needs.initialize.outputs.test_on_device == 'true' &&
462467
(
463468
(github.event_name == 'pull_request' && github.event.pull_request.draft == false ) ||
@@ -504,6 +509,9 @@ jobs:
504509
# Run E2E tests for presumit.
505510
# Also, run E2E tests on push and schedule if not explicitly disabled via repo vars.
506511
if: |
512+
always() &&
513+
needs.initialize.result == 'success' &&
514+
needs.build.result == 'success' &&
507515
needs.initialize.outputs.test_e2e == 'true' &&
508516
(
509517
(github.event_name == 'pull_request' && github.event.pull_request.draft == false ) ||
@@ -540,6 +548,9 @@ jobs:
540548
# Run YTS tests via presumit.
541549
# Also, run YTS tests on push and schedule if not explicitly disabled via repo vars.
542550
if: |
551+
always() &&
552+
needs.initialize.result == 'success' &&
553+
needs.build.result == 'success' &&
543554
needs.initialize.outputs.test_yts == 'true' &&
544555
(
545556
(github.event_name == 'pull_request' && github.event.pull_request.draft == false ) ||

0 commit comments

Comments
 (0)