Skip to content

Commit

Permalink
Revert "Run on-device test on PRs without label. (youtube#549)" (yout…
Browse files Browse the repository at this point in the history
…ube#604)

This reverts commit 3a2efb3.

Revert until we sort out capacity issues in device test lab

b/285946894
  • Loading branch information
kaidokert authored Jun 12, 2023
1 parent 3b3fed9 commit dbe2e34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
github.event.action != 'labeled' ||
(
github.event.action == 'labeled' &&
github.event.label.name == 'runtest'
github.event.label.name == 'runtest' ||
github.event.label.name == 'on_device'
)
steps:
- id: checkout
Expand Down Expand Up @@ -244,7 +245,7 @@ jobs:
fromJSON(needs.initialize.outputs.on_device_test).enabled == true &&
(
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'disable_on_device_test')
contains(github.event.pull_request.labels.*.name, 'on_device')
)
uses: ./.github/actions/upload_test_artifacts
with:
Expand All @@ -259,7 +260,7 @@ jobs:
if: |
fromJSON(needs.initialize.outputs.on_device_test).enabled == true && ((
github.event_name == 'pull_request' &&
!contains(github.event.pull_request.labels.*.name, 'disable_on_device_test')) || ((
contains(github.event.pull_request.labels.*.name, 'on_device') ) || ((
inputs.nightly == 'true' || github.event_name == 'schedule') &&
vars.RUN_ODT_TESTS_ON_NIGHTLY != 'False') ||
( github.event_name == 'push' && vars.RUN_ODT_TESTS_ON_POSTSUBMIT != 'False' ) )
Expand Down

0 comments on commit dbe2e34

Please sign in to comment.