Set timeout for test CI jobs (#7598)
* Set timeout for test CI jobs * Increase timeout to 1.5h: some Test jobs successfully finish > 1h
This commit is contained in:
parent
452cfd3327
commit
ffb5edd2e4
|
@ -16,7 +16,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# More info on should-i-run:
|
# More info on should-i-run:
|
||||||
# If this fails to run (the IF doesn't complete) then the needs will not be satisfied for any of the
|
# If this fails to run (the IF doesn't complete) then the needs will not be satisfied for any of the
|
||||||
# other jobs below, so none will run.
|
# other jobs below, so none will run.
|
||||||
# except for the notification job at the bottom which will run all the time, unless should-i-run isn't
|
# except for the notification job at the bottom which will run all the time, unless should-i-run isn't
|
||||||
# successful, or all the other jobs have succeeded
|
# successful, or all the other jobs have succeeded
|
||||||
|
@ -27,11 +27,12 @@ jobs:
|
||||||
if: github.event.pull_request.merged # Additionally require PR to have been completely merged.
|
if: github.event.pull_request.merged # Additionally require PR to have been completely merged.
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Run those tests!" # no-op success
|
- run: echo "Run those tests!" # no-op success
|
||||||
|
|
||||||
ui-tests:
|
ui-tests:
|
||||||
name: UI Tests (Synapse)
|
name: UI Tests (Synapse)
|
||||||
needs: should-i-run
|
needs: should-i-run
|
||||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
||||||
|
timeout-minutes: 90 # We might need to increase it if the time for tests grows
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -14,6 +14,7 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
name: Runs all tests
|
name: Runs all tests
|
||||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
||||||
|
timeout-minutes: 90 # We might need to increase it if the time for tests grows
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [28]
|
api-level: [28]
|
||||||
|
@ -126,26 +127,26 @@ jobs:
|
||||||
# Unneeded as part of the test suite above, kept around in case we want to re-enable them.
|
# Unneeded as part of the test suite above, kept around in case we want to re-enable them.
|
||||||
#
|
#
|
||||||
# # Build Android Tests
|
# # Build Android Tests
|
||||||
# build-android-tests:
|
# build-android-tests:
|
||||||
# name: Build Android Tests
|
# name: Build Android Tests
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# concurrency:
|
# concurrency:
|
||||||
# group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('build-android-tests-{0}', github.ref) }}
|
# group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('build-android-tests-{0}', github.ref) }}
|
||||||
# cancel-in-progress: true
|
# cancel-in-progress: true
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
# - uses: actions/setup-java@v3
|
# - uses: actions/setup-java@v3
|
||||||
# with:
|
# with:
|
||||||
# distribution: 'adopt'
|
# distribution: 'adopt'
|
||||||
# java-version: 11
|
# java-version: 11
|
||||||
# - uses: actions/cache@v3
|
# - uses: actions/cache@v3
|
||||||
# with:
|
# with:
|
||||||
# path: |
|
# path: |
|
||||||
# ~/.gradle/caches
|
# ~/.gradle/caches
|
||||||
# ~/.gradle/wrapper
|
# ~/.gradle/wrapper
|
||||||
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
# restore-keys: |
|
# restore-keys: |
|
||||||
# ${{ runner.os }}-gradle-
|
# ${{ runner.os }}-gradle-
|
||||||
# - name: Build Android Tests
|
# - name: Build Android Tests
|
||||||
# run: ./gradlew clean assembleAndroidTest $CI_GRADLE_ARG_PROPERTIES
|
# run: ./gradlew clean assembleAndroidTest $CI_GRADLE_ARG_PROPERTIES
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue