Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add some job timeouts #3638

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/maven-goal
Expand Down Expand Up @@ -128,6 +129,7 @@ jobs:
name: License
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/unstash
Expand All @@ -148,6 +150,7 @@ jobs:
# When undefined, we need to emulate the default value
if: inputs.test_ci == true || inputs.test_ci == null
runs-on: ubuntu-latest
timeout-minutes: 30
needs: build
steps:
- uses: actions/checkout@v4
Expand All @@ -169,6 +172,7 @@ jobs:

non-app-server-integration-tests:
name: Non-Application Server integration tests
timeout-minutes: 60
if: |
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
|| github.event.pull_request.draft == false
Expand Down Expand Up @@ -207,6 +211,7 @@ jobs:

app-server-integration-tests:
name: Application Server integration tests
timeout-minutes: 60
if: |
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
|| github.event.pull_request.draft == false
Expand Down Expand Up @@ -248,6 +253,7 @@ jobs:
name: Javadoc
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/unstash
Expand All @@ -260,6 +266,7 @@ jobs:

unit-tests-windows:
name: Build & Test Windows
timeout-minutes: 60
# Inputs aren't defined on some events
# When undefined, we need to emulate the default value
if: |
Expand Down Expand Up @@ -287,6 +294,7 @@ jobs:

jdk-compatibility-tests:
name: JDK Compatibility Tests
timeout-minutes: 60
if: |
contains(github.event.pull_request.labels.*.name, 'ci:jdk-compatibility')
|| inputs.jdk_compatibility_ci == true
Expand Down Expand Up @@ -324,6 +332,7 @@ jobs:
jboss:
name: JBoss integration tests
runs-on: ubuntu-latest
timeout-minutes: 30
needs: build
# If no PR event or if a PR event that's caused by a non-fork and non dependabot actor
if: github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )
Expand Down
Loading