From 129d1ede8690ebc1c31cf735598eb49342e30c12 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 23 Feb 2026 10:53:31 +0100 Subject: [PATCH] Change runners temp (#18163) Temporarily moving all ubuntu-latest 1 core to depot except ci-website --- .github/workflows/cd-deploy-main.yaml | 2 +- .github/workflows/cd-deploy-tag.yaml | 2 +- .github/workflows/changed-files.yaml | 2 +- .github/workflows/ci-breaking-changes.yaml | 2 +- .github/workflows/ci-create-app.yaml | 4 +- .github/workflows/ci-docs.yaml | 2 +- .github/workflows/ci-emails.yaml | 2 +- .github/workflows/ci-front.yaml | 10 ++--- .github/workflows/ci-release-create.yaml | 2 +- .github/workflows/ci-release-merge.yaml | 2 +- .github/workflows/ci-sdk.yaml | 4 +- .github/workflows/ci-server.yaml | 2 +- .github/workflows/ci-shared.yaml | 4 +- .github/workflows/ci-test-docker-compose.yaml | 4 +- .github/workflows/ci-utils.yaml | 4 +- .github/workflows/claude.yml | 4 +- .github/workflows/docs-i18n-pull.yaml | 2 +- .github/workflows/docs-i18n-push.yaml | 2 +- .github/workflows/i18n-pull.yaml | 2 +- .github/workflows/i18n-push.yaml | 2 +- .github/workflows/i18n-qa-report.yaml | 2 +- .github/workflows/preview-env-dispatch.yaml | 2 +- .github/workflows/preview-env-keepalive.yaml | 42 +++++++++---------- 23 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/cd-deploy-main.yaml b/.github/workflows/cd-deploy-main.yaml index 7fe62465b1..2a21d1fd7b 100644 --- a/.github/workflows/cd-deploy-main.yaml +++ b/.github/workflows/cd-deploy-main.yaml @@ -11,7 +11,7 @@ on: jobs: deploy-main: timeout-minutes: 3 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Repository Dispatch uses: peter-evans/repository-dispatch@v2 diff --git a/.github/workflows/cd-deploy-tag.yaml b/.github/workflows/cd-deploy-tag.yaml index 3c1608b38c..3af8ff7afd 100644 --- a/.github/workflows/cd-deploy-tag.yaml +++ b/.github/workflows/cd-deploy-tag.yaml @@ -11,7 +11,7 @@ on: jobs: deploy-tag: timeout-minutes: 3 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Repository Dispatch uses: peter-evans/repository-dispatch@v2 diff --git a/.github/workflows/changed-files.yaml b/.github/workflows/changed-files.yaml index 3178ccc025..2f2e742fa5 100644 --- a/.github/workflows/changed-files.yaml +++ b/.github/workflows/changed-files.yaml @@ -16,7 +16,7 @@ permissions: jobs: changed-files: timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 outputs: any_changed: ${{ steps.changed-files.outputs.any_changed }} steps: diff --git a/.github/workflows/ci-breaking-changes.yaml b/.github/workflows/ci-breaking-changes.yaml index 2be6bf820e..3a77adcdcb 100644 --- a/.github/workflows/ci-breaking-changes.yaml +++ b/.github/workflows/ci-breaking-changes.yaml @@ -34,7 +34,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 45 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 services: postgres: image: twentycrm/twenty-postgres-spilo diff --git a/.github/workflows/ci-create-app.yaml b/.github/workflows/ci-create-app.yaml index aa04fba6fd..753bf7e2be 100644 --- a/.github/workflows/ci-create-app.yaml +++ b/.github/workflows/ci-create-app.yaml @@ -25,7 +25,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 strategy: matrix: task: [lint, typecheck, test] @@ -50,7 +50,7 @@ jobs: ci-create-app-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, create-app-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index f3c5351afd..4945f6aa9e 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -27,7 +27,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.11.0 diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yaml index 8412a09efa..5d15d53d4e 100644 --- a/.github/workflows/ci-emails.yaml +++ b/.github/workflows/ci-emails.yaml @@ -56,7 +56,7 @@ jobs: ci-emails-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, emails-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index f3b0247357..563567a95f 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -115,7 +115,7 @@ jobs: path: packages/twenty-front/coverage/storybook/coverage-shard-${{matrix.shard}}.json merge-reports-and-check-coverage: timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: front-sb-test env: PATH_TO_COVERAGE: packages/twenty-front/coverage/storybook @@ -169,7 +169,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 env: TASK_CACHE_KEY: front-task-${{ matrix.task }} strategy: @@ -235,7 +235,7 @@ jobs: path: packages/twenty-front/build retention-days: 1 e2e-test: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check-e2e, front-build] if: | always() && @@ -345,7 +345,7 @@ jobs: ci-front-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [ changed-files-check, @@ -362,7 +362,7 @@ jobs: ci-e2e-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check-e2e, e2e-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-release-create.yaml b/.github/workflows/ci-release-create.yaml index 2e1ff43dc0..18f928cfe4 100644 --- a/.github/workflows/ci-release-create.yaml +++ b/.github/workflows/ci-release-create.yaml @@ -25,7 +25,7 @@ defaults: jobs: create_pr: timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-release-merge.yaml b/.github/workflows/ci-release-merge.yaml index a398fc96a9..6429f56edf 100644 --- a/.github/workflows/ci-release-merge.yaml +++ b/.github/workflows/ci-release-merge.yaml @@ -15,7 +15,7 @@ defaults: jobs: tag_and_release: timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') steps: - name: Check PR Author diff --git a/.github/workflows/ci-sdk.yaml b/.github/workflows/ci-sdk.yaml index 99896c92a6..d3bfb4fc13 100644 --- a/.github/workflows/ci-sdk.yaml +++ b/.github/workflows/ci-sdk.yaml @@ -23,7 +23,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 strategy: matrix: task: [lint, typecheck, test:unit, storybook:build, storybook:test, test:integration] @@ -94,7 +94,7 @@ jobs: ci-sdk-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, sdk-test, sdk-e2e-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 6e90aab1f8..8d37a51b09 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -250,7 +250,7 @@ jobs: ci-server-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, server-setup, server-test, server-integration-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-shared.yaml b/.github/workflows/ci-shared.yaml index f88cb0e217..8c2b625161 100644 --- a/.github/workflows/ci-shared.yaml +++ b/.github/workflows/ci-shared.yaml @@ -22,7 +22,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 strategy: matrix: task: [lint, typecheck, test] @@ -45,7 +45,7 @@ jobs: ci-shared-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, shared-test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-test-docker-compose.yaml b/.github/workflows/ci-test-docker-compose.yaml index 419d440bee..9aef159e6b 100644 --- a/.github/workflows/ci-test-docker-compose.yaml +++ b/.github/workflows/ci-test-docker-compose.yaml @@ -23,7 +23,7 @@ jobs: needs: changed-files-check if: needs.changed-files-check.outputs.any_changed == 'true' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -92,7 +92,7 @@ jobs: ci-test-docker-compose-status-check: if: always() && !cancelled() timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 needs: [changed-files-check, test] steps: - name: Fail job if any needs failed diff --git a/.github/workflows/ci-utils.yaml b/.github/workflows/ci-utils.yaml index 424b54bb49..a7c08a1adc 100644 --- a/.github/workflows/ci-utils.yaml +++ b/.github/workflows/ci-utils.yaml @@ -25,7 +25,7 @@ concurrency: jobs: danger-js: timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 if: github.event.action != 'closed' steps: - uses: actions/checkout@v4 @@ -38,7 +38,7 @@ jobs: congratulate: timeout-minutes: 3 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 if: github.event.action == 'closed' && github.event.pull_request.merged == true steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 962db57938..bc77d328c1 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -23,7 +23,7 @@ jobs: (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && github.event.comment.user.type != 'Bot') || (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && github.event.review.user.type != 'Bot') || (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 timeout-minutes: 60 permissions: contents: write @@ -96,7 +96,7 @@ jobs: claude-cross-repo: if: github.event_name == 'repository_dispatch' - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 timeout-minutes: 60 permissions: contents: write diff --git a/.github/workflows/docs-i18n-pull.yaml b/.github/workflows/docs-i18n-pull.yaml index a071290ddf..2f49188fe8 100644 --- a/.github/workflows/docs-i18n-pull.yaml +++ b/.github/workflows/docs-i18n-pull.yaml @@ -34,7 +34,7 @@ concurrency: jobs: pull_docs_translations: name: Pull docs translations - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/docs-i18n-push.yaml b/.github/workflows/docs-i18n-push.yaml index 7a645338cb..1a40e44f2a 100644 --- a/.github/workflows/docs-i18n-push.yaml +++ b/.github/workflows/docs-i18n-push.yaml @@ -21,7 +21,7 @@ concurrency: jobs: push_docs: name: Push documentation to Crowdin - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/i18n-pull.yaml b/.github/workflows/i18n-pull.yaml index 27e023af00..c8e687e507 100644 --- a/.github/workflows/i18n-pull.yaml +++ b/.github/workflows/i18n-pull.yaml @@ -32,7 +32,7 @@ concurrency: jobs: pull_translations: name: Pull translations - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/i18n-push.yaml b/.github/workflows/i18n-push.yaml index 7b30d98bbe..d91184c4f7 100644 --- a/.github/workflows/i18n-push.yaml +++ b/.github/workflows/i18n-push.yaml @@ -17,7 +17,7 @@ concurrency: jobs: extract_translations: name: Extract and upload translations - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/i18n-qa-report.yaml b/.github/workflows/i18n-qa-report.yaml index c98ef7bea6..a25bef02b5 100644 --- a/.github/workflows/i18n-qa-report.yaml +++ b/.github/workflows/i18n-qa-report.yaml @@ -18,7 +18,7 @@ concurrency: jobs: qa_report: name: Generate QA Report - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml index 37fd876a2a..54eca3a8a8 100644 --- a/.github/workflows/preview-env-dispatch.yaml +++ b/.github/workflows/preview-env-dispatch.yaml @@ -26,7 +26,7 @@ jobs: trigger-preview: if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || (github.event.action == 'labeled' && github.event.label.name == 'preview-app') timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Trigger preview environment workflow uses: peter-evans/repository-dispatch@v2 diff --git a/.github/workflows/preview-env-keepalive.yaml b/.github/workflows/preview-env-keepalive.yaml index fbe2d507e8..c309cd3c6a 100644 --- a/.github/workflows/preview-env-keepalive.yaml +++ b/.github/workflows/preview-env-keepalive.yaml @@ -11,13 +11,13 @@ on: jobs: preview-environment: timeout-minutes: 310 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04 steps: - name: Checkout PR uses: actions/checkout@v4 with: ref: ${{ github.event.client_payload.pr_head_sha }} - + - name: Run compose setup run: | echo "Patching docker-compose.yml..." @@ -25,17 +25,17 @@ jobs: yq eval 'del(.services.server.image)' -i packages/twenty-docker/docker-compose.yml yq eval '.services.server.build.context = "../../"' -i packages/twenty-docker/docker-compose.yml yq eval '.services.server.build.dockerfile = "./packages/twenty-docker/twenty/Dockerfile"' -i packages/twenty-docker/docker-compose.yml - + yq eval 'del(.services.worker.image)' -i packages/twenty-docker/docker-compose.yml yq eval '.services.worker.build.context = "../../"' -i packages/twenty-docker/docker-compose.yml yq eval '.services.worker.build.dockerfile = "./packages/twenty-docker/twenty/Dockerfile"' -i packages/twenty-docker/docker-compose.yml - + echo "Adding SIGN_IN_PREFILLED environment variable to server service..." yq eval '.services.server.environment.SIGN_IN_PREFILLED = "${SIGN_IN_PREFILLED}"' -i packages/twenty-docker/docker-compose.yml - + echo "Setting up .env file..." cp packages/twenty-docker/.env.example packages/twenty-docker/.env - + echo "Generating secrets..." echo "" >> packages/twenty-docker/.env echo "# === Randomly generated secrets ===" >> packages/twenty-docker/.env @@ -46,24 +46,24 @@ jobs: cd packages/twenty-docker/ docker compose build working-directory: ./ - + - name: Create Tunnel id: expose-tunnel uses: codetalkio/expose-tunnel@v1.5.0 with: service: bore.pub port: 3000 - + - name: Start services with correct SERVER_URL run: | cd packages/twenty-docker/ - + # Update the SERVER_URL with the tunnel URL echo "Setting SERVER_URL to ${{ steps.expose-tunnel.outputs.tunnel-url }}" sed -i '/SERVER_URL=/d' .env echo "" >> .env echo "SERVER_URL=${{ steps.expose-tunnel.outputs.tunnel-url }}" >> .env - + # Start the services echo "Docker compose up..." docker compose up -d || { @@ -71,7 +71,7 @@ jobs: docker compose logs exit 1 } - + echo "Waiting for services to be ready..." count=0 while [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-db-1) = "healthy" ] || [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-server-1) = "healthy" ]; do @@ -84,7 +84,7 @@ jobs: fi echo "Still waiting for services... ($count/60)" done - + echo "All services are up and running!" working-directory: ./ @@ -104,7 +104,7 @@ jobs: echo "✅ Preview Environment Ready!" echo "🔗 Preview URL: ${{ steps.expose-tunnel.outputs.tunnel-url }}" echo "⏱️ This environment will be available for 5 hours" - + - name: Post comment on PR uses: actions/github-script@v6 with: @@ -113,21 +113,21 @@ jobs: const COMMENT_MARKER = ''; const commentBody = `${COMMENT_MARKER} 🚀 **Preview Environment Ready!** - + Your preview environment is available at: ${{ steps.expose-tunnel.outputs.tunnel-url }} - + This environment will automatically shut down when the PR is closed or after 5 hours.`; - + // Get all comments const {data: comments} = await github.rest.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo, issue_number: ${{ github.event.client_payload.pr_number }}, }); - + // Find our comment const botComment = comments.find(comment => comment.body.includes(COMMENT_MARKER)); - + if (botComment) { // Update existing comment await github.rest.issues.updateComment({ @@ -147,13 +147,13 @@ jobs: }); console.log('Created new comment'); } - + - name: Keep tunnel alive for 5 hours run: timeout 300m sleep 18000 # Stop on whichever we reach first (300m or 5hour sleep) - + - name: Cleanup if: always() run: | cd packages/twenty-docker/ docker compose down -v - working-directory: ./ + working-directory: ./