Fix CI timeout (#8408)

This commit is contained in:
Félix Malfait
2024-11-08 13:53:38 +01:00
committed by GitHub
parent f3e3c186dc
commit a7a7d62502
12 changed files with 19 additions and 11 deletions

View File

@@ -1,11 +1,11 @@
name: CD deploy main name: CD deploy main
timeout-minutes: 3
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
deploy-main: deploy-main:
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repository Dispatch - name: Repository Dispatch

View File

@@ -1,11 +1,11 @@
name: CD deploy tag name: CD deploy tag
timeout-minutes: 3
on: on:
push: push:
tags: tags:
- 'v*' - 'v*'
jobs: jobs:
deploy-tag: deploy-tag:
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repository Dispatch - name: Repository Dispatch

View File

@@ -1,5 +1,4 @@
name: CI Chrome Extension name: CI Chrome Extension
timeout-minutes: 15
on: on:
push: push:
branches: branches:
@@ -13,6 +12,7 @@ concurrency:
jobs: jobs:
chrome-extension-build: chrome-extension-build:
timeout-minutes: 15
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
VITE_SERVER_BASE_URL: http://localhost:3000 VITE_SERVER_BASE_URL: http://localhost:3000

View File

@@ -1,5 +1,4 @@
name: CI E2E Tests name: CI E2E Tests
timeout-minutes: 30
on: on:
push: push:
branches: branches:
@@ -14,6 +13,7 @@ concurrency:
jobs: jobs:
test: test:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -1,5 +1,4 @@
name: CI Front name: CI Front
timeout-minutes: 30
on: on:
push: push:
branches: branches:
@@ -13,6 +12,7 @@ concurrency:
jobs: jobs:
front-sb-build: front-sb-build:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
REACT_APP_SERVER_BASE_URL: http://localhost:3000 REACT_APP_SERVER_BASE_URL: http://localhost:3000
@@ -59,6 +59,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx storybook:build twenty-front run: npx nx storybook:build twenty-front
front-sb-test: front-sb-test:
timeout-minutes: 30
runs-on: shipfox-8vcpu-ubuntu-2204 runs-on: shipfox-8vcpu-ubuntu-2204
needs: front-sb-build needs: front-sb-build
strategy: strategy:
@@ -101,6 +102,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }}
front-sb-test-performance: front-sb-test-performance:
timeout-minutes: 30
runs-on: shipfox-8vcpu-ubuntu-2204 runs-on: shipfox-8vcpu-ubuntu-2204
env: env:
REACT_APP_SERVER_BASE_URL: http://localhost:3000 REACT_APP_SERVER_BASE_URL: http://localhost:3000
@@ -134,6 +136,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx run twenty-front:storybook:serve-and-test:static:performance run: npx nx run twenty-front:storybook:serve-and-test:static:performance
front-chromatic-deployment: front-chromatic-deployment:
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push'
needs: front-sb-build needs: front-sb-build
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -176,6 +179,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx run twenty-front:chromatic:ci run: npx nx run twenty-front:chromatic:ci
front-task: front-task:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 NX_REJECT_UNKNOWN_LOCAL_CACHE: 0

View File

@@ -1,5 +1,4 @@
name: "Release: create" name: "Release: create"
timeout-minutes: 10
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@@ -16,6 +15,7 @@ on:
jobs: jobs:
create_pr: create_pr:
timeout-minutes: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

View File

@@ -1,5 +1,4 @@
name: "Release: on merge" name: "Release: on merge"
timeout-minutes: 10
on: on:
pull_request: pull_request:
types: types:
@@ -7,6 +6,7 @@ on:
jobs: jobs:
tag_and_release: tag_and_release:
timeout-minutes: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
steps: steps:

View File

@@ -1,5 +1,4 @@
name: CI Server name: CI Server
timeout-minutes: 30
on: on:
push: push:
branches: branches:
@@ -13,6 +12,7 @@ concurrency:
jobs: jobs:
server-setup: server-setup:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
@@ -68,6 +68,7 @@ jobs:
run: npx nx run twenty-server:worker:ci run: npx nx run twenty-server:worker:ci
server-test: server-test:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: server-setup needs: server-setup
env: env:
@@ -103,6 +104,7 @@ jobs:
tasks: test tasks: test
server-integration-test: server-integration-test:
timeout-minutes: 30
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: server-setup needs: server-setup
services: services:

View File

@@ -1,5 +1,4 @@
name: 'Test Docker Compose' name: 'Test Docker Compose'
timeout-minutes: 10
on: on:
pull_request: pull_request:
@@ -9,6 +8,7 @@ concurrency:
jobs: jobs:
test: test:
timeout-minutes: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

View File

@@ -1,5 +1,4 @@
name: CI Tinybird name: CI Tinybird
timeout-minutes: 10
on: on:
push: push:
branches: branches:
@@ -13,6 +12,7 @@ concurrency:
jobs: jobs:
ci: ci:
timeout-minutes: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check for changed files - name: Check for changed files

View File

@@ -1,5 +1,4 @@
name: CI Utils name: CI Utils
timeout-minutes: 3
on: on:
# it's usually not recommended to use pull_request_target # it's usually not recommended to use pull_request_target
# but we consider it's safe here if we keep the same steps # but we consider it's safe here if we keep the same steps
@@ -20,6 +19,7 @@ concurrency:
jobs: jobs:
danger-js: danger-js:
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.action != 'closed' if: github.event.action != 'closed'
steps: steps:
@@ -32,6 +32,7 @@ jobs:
DANGER_GITHUB_API_TOKEN: ${{ github.token }} DANGER_GITHUB_API_TOKEN: ${{ github.token }}
congratulate: congratulate:
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.action == 'closed' && github.event.pull_request.merged == true if: github.event.action == 'closed' && github.event.pull_request.merged == true
steps: steps:

View File

@@ -14,6 +14,7 @@ concurrency:
jobs: jobs:
website-build: website-build:
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
postgres: postgres: