Skip to content

Commit

Permalink
Fix CI timeout (#8408)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait authored Nov 8, 2024
1 parent f3e3c18 commit a7a7d62
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-deploy-main.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd-deploy-tag.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-chrome-extension.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Chrome Extension
timeout-minutes: 15
on:
push:
branches:
Expand All @@ -13,6 +12,7 @@ concurrency:

jobs:
chrome-extension-build:
timeout-minutes: 15
runs-on: ubuntu-latest
env:
VITE_SERVER_BASE_URL: http://localhost:3000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-e2e.yml.bak
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI E2E Tests
timeout-minutes: 30
on:
push:
branches:
Expand All @@ -14,6 +13,7 @@ concurrency:

jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci-front.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Front
timeout-minutes: 30
on:
push:
branches:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-release-create.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: "Release: create"
timeout-minutes: 10
on:
workflow_dispatch:
inputs:
Expand All @@ -16,6 +15,7 @@ on:

jobs:
create_pr:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-release-merge.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "Release: on merge"
timeout-minutes: 10
on:
pull_request:
types:
- closed

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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Server
timeout-minutes: 30
on:
push:
branches:
Expand All @@ -13,6 +12,7 @@ concurrency:

jobs:
server-setup:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
tasks: test

server-integration-test:
timeout-minutes: 30
runs-on: ubuntu-latest
needs: server-setup
services:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: 'Test Docker Compose'
timeout-minutes: 10
on:
pull_request:

Expand All @@ -9,6 +8,7 @@ concurrency:

jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tinybird.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Tinybird
timeout-minutes: 10
on:
push:
branches:
Expand All @@ -13,6 +12,7 @@ concurrency:

jobs:
ci:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Check for changed files
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-utils.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -20,6 +19,7 @@ concurrency:

jobs:
danger-js:
timeout-minutes: 3
runs-on: ubuntu-latest
if: github.event.action != 'closed'
steps:
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:

jobs:
website-build:
timeout-minutes: 3
runs-on: ubuntu-latest
services:
postgres:
Expand Down

0 comments on commit a7a7d62

Please sign in to comment.