From a7a7d62502668f8c795fa0474688fd12463ef7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Fri, 8 Nov 2024 13:53:38 +0100 Subject: [PATCH] Fix CI timeout (#8408) --- .github/workflows/cd-deploy-main.yaml | 2 +- .github/workflows/cd-deploy-tag.yaml | 2 +- .github/workflows/ci-chrome-extension.yaml | 2 +- .github/workflows/ci-e2e.yml.bak | 2 +- .github/workflows/ci-front.yaml | 6 +++++- .github/workflows/ci-release-create.yaml | 2 +- .github/workflows/ci-release-merge.yaml | 2 +- .github/workflows/ci-server.yaml | 4 +++- .github/workflows/ci-test-docker-compose.yaml | 2 +- .github/workflows/ci-tinybird.yaml | 2 +- .github/workflows/ci-utils.yaml | 3 ++- .github/workflows/ci-website.yaml | 1 + 12 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd-deploy-main.yaml b/.github/workflows/cd-deploy-main.yaml index dc9a031cc3a4..5959d0abd9c6 100644 --- a/.github/workflows/cd-deploy-main.yaml +++ b/.github/workflows/cd-deploy-main.yaml @@ -1,11 +1,11 @@ name: CD deploy main -timeout-minutes: 3 on: push: branches: - main jobs: deploy-main: + timeout-minutes: 3 runs-on: ubuntu-latest steps: - name: Repository Dispatch diff --git a/.github/workflows/cd-deploy-tag.yaml b/.github/workflows/cd-deploy-tag.yaml index 86c8834a3a0a..cb07fe44687e 100644 --- a/.github/workflows/cd-deploy-tag.yaml +++ b/.github/workflows/cd-deploy-tag.yaml @@ -1,11 +1,11 @@ name: CD deploy tag -timeout-minutes: 3 on: push: tags: - 'v*' jobs: deploy-tag: + timeout-minutes: 3 runs-on: ubuntu-latest steps: - name: Repository Dispatch diff --git a/.github/workflows/ci-chrome-extension.yaml b/.github/workflows/ci-chrome-extension.yaml index 5becb944e1b7..63c7094f7044 100644 --- a/.github/workflows/ci-chrome-extension.yaml +++ b/.github/workflows/ci-chrome-extension.yaml @@ -1,5 +1,4 @@ name: CI Chrome Extension -timeout-minutes: 15 on: push: branches: @@ -13,6 +12,7 @@ concurrency: jobs: chrome-extension-build: + timeout-minutes: 15 runs-on: ubuntu-latest env: VITE_SERVER_BASE_URL: http://localhost:3000 diff --git a/.github/workflows/ci-e2e.yml.bak b/.github/workflows/ci-e2e.yml.bak index 874872255994..7bba72f1e77b 100644 --- a/.github/workflows/ci-e2e.yml.bak +++ b/.github/workflows/ci-e2e.yml.bak @@ -1,5 +1,4 @@ name: CI E2E Tests -timeout-minutes: 30 on: push: branches: @@ -14,6 +13,7 @@ concurrency: jobs: test: + timeout-minutes: 30 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index d683c254f303..910286ff1beb 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -1,5 +1,4 @@ name: CI Front -timeout-minutes: 30 on: push: branches: @@ -13,6 +12,7 @@ concurrency: jobs: front-sb-build: + timeout-minutes: 30 runs-on: ubuntu-latest env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 @@ -59,6 +59,7 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: npx nx storybook:build twenty-front front-sb-test: + timeout-minutes: 30 runs-on: shipfox-8vcpu-ubuntu-2204 needs: front-sb-build strategy: @@ -101,6 +102,7 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: + timeout-minutes: 30 runs-on: shipfox-8vcpu-ubuntu-2204 env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 @@ -134,6 +136,7 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: npx nx run twenty-front:storybook:serve-and-test:static:performance front-chromatic-deployment: + timeout-minutes: 30 if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' needs: front-sb-build runs-on: ubuntu-latest @@ -176,6 +179,7 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: npx nx run twenty-front:chromatic:ci front-task: + timeout-minutes: 30 runs-on: ubuntu-latest env: NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 diff --git a/.github/workflows/ci-release-create.yaml b/.github/workflows/ci-release-create.yaml index e11a3d177ccf..736c57352597 100644 --- a/.github/workflows/ci-release-create.yaml +++ b/.github/workflows/ci-release-create.yaml @@ -1,5 +1,4 @@ name: "Release: create" -timeout-minutes: 10 on: workflow_dispatch: inputs: @@ -16,6 +15,7 @@ on: jobs: create_pr: + timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/ci-release-merge.yaml b/.github/workflows/ci-release-merge.yaml index 14458946c2a6..5b0bce577501 100644 --- a/.github/workflows/ci-release-merge.yaml +++ b/.github/workflows/ci-release-merge.yaml @@ -1,5 +1,4 @@ name: "Release: on merge" -timeout-minutes: 10 on: pull_request: types: @@ -7,6 +6,7 @@ on: jobs: tag_and_release: + timeout-minutes: 10 runs-on: ubuntu-latest if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') steps: diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index bce6d14bcbe8..5d7a35244f01 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -1,5 +1,4 @@ name: CI Server -timeout-minutes: 30 on: push: branches: @@ -13,6 +12,7 @@ concurrency: jobs: server-setup: + timeout-minutes: 30 runs-on: ubuntu-latest env: NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 @@ -68,6 +68,7 @@ jobs: run: npx nx run twenty-server:worker:ci server-test: + timeout-minutes: 30 runs-on: ubuntu-latest needs: server-setup env: @@ -103,6 +104,7 @@ jobs: tasks: test server-integration-test: + timeout-minutes: 30 runs-on: ubuntu-latest needs: server-setup services: diff --git a/.github/workflows/ci-test-docker-compose.yaml b/.github/workflows/ci-test-docker-compose.yaml index ad3f37e55165..d7202857a7b4 100644 --- a/.github/workflows/ci-test-docker-compose.yaml +++ b/.github/workflows/ci-test-docker-compose.yaml @@ -1,5 +1,4 @@ name: 'Test Docker Compose' -timeout-minutes: 10 on: pull_request: @@ -9,6 +8,7 @@ concurrency: jobs: test: + timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/ci-tinybird.yaml b/.github/workflows/ci-tinybird.yaml index 8233e8a40ab0..cdeb97af15c7 100644 --- a/.github/workflows/ci-tinybird.yaml +++ b/.github/workflows/ci-tinybird.yaml @@ -1,5 +1,4 @@ name: CI Tinybird -timeout-minutes: 10 on: push: branches: @@ -13,6 +12,7 @@ concurrency: jobs: ci: + timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Check for changed files diff --git a/.github/workflows/ci-utils.yaml b/.github/workflows/ci-utils.yaml index 93e5ddac20a5..7a7ef38042dc 100644 --- a/.github/workflows/ci-utils.yaml +++ b/.github/workflows/ci-utils.yaml @@ -1,5 +1,4 @@ name: CI Utils -timeout-minutes: 3 on: # it's usually not recommended to use pull_request_target # but we consider it's safe here if we keep the same steps @@ -20,6 +19,7 @@ concurrency: jobs: danger-js: + timeout-minutes: 3 runs-on: ubuntu-latest if: github.event.action != 'closed' steps: @@ -32,6 +32,7 @@ jobs: DANGER_GITHUB_API_TOKEN: ${{ github.token }} congratulate: + timeout-minutes: 3 runs-on: ubuntu-latest if: github.event.action == 'closed' && github.event.pull_request.merged == true steps: diff --git a/.github/workflows/ci-website.yaml b/.github/workflows/ci-website.yaml index e38d1fd9325b..a7300430288f 100644 --- a/.github/workflows/ci-website.yaml +++ b/.github/workflows/ci-website.yaml @@ -14,6 +14,7 @@ concurrency: jobs: website-build: + timeout-minutes: 3 runs-on: ubuntu-latest services: postgres: