From 67be608f71f089b947f3438809ad3d3f6a4e52c7 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Sat, 11 Jul 2026 01:08:52 -0300 Subject: [PATCH] chore(ci): trim redundant work from CI critical path - packages-build no longer waits on notify-draft-services (no output consumed; the notify job is a no-op outside release events but sat in the critical path of every PR/develop run) - test-federation-matrix restores the prebuilt packages artifact instead of re-running a full yarn build on a fresh runner - drop the now-unused turbo-build artifact upload (only federation-matrix consumed it) - align caching-for-turbo to v2.5.0 in meteor-build so it shares the same cache namespace as the other jobs --- .github/actions/meteor-build/action.yml | 2 +- .github/workflows/ci.yml | 23 ++--------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/actions/meteor-build/action.yml b/.github/actions/meteor-build/action.yml index 5347013163437..79d986fdbb660 100644 --- a/.github/actions/meteor-build/action.yml +++ b/.github/actions/meteor-build/action.yml @@ -125,7 +125,7 @@ runs: meteor node -v git version - - uses: rharkor/caching-for-turbo@00a0515f175df9fd2e15c4560144ad5fdbebb0c7 # v2.3.13 + - uses: rharkor/caching-for-turbo@75f8ebf4a43d2c60b23bc2a27082cfea94ffdad9 # v2.5.0 - name: Reset Meteor shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80b315f1a92d4..8a7a7b4c1d715 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,7 +195,7 @@ jobs: packages-build: name: 📦 Build Packages - needs: [release-versions, notify-draft-services] + needs: [release-versions] runs-on: ubuntu-24.04-arm steps: - name: Cache build @@ -272,15 +272,6 @@ jobs: path: /tmp/RocketChat-packages-build.tar.gz retention-days: 5 - - name: Store turbo build - if: steps.packages-cache-build.outputs.cache-hit != 'true' - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: turbo-build - path: .turbo/cache - overwrite: true - include-hidden-files: true - build: name: 📦 Meteor Build (${{ matrix.type }}) needs: [release-versions, packages-build] @@ -723,17 +714,7 @@ jobs: cache-modules: true install: true - - uses: rharkor/caching-for-turbo@75f8ebf4a43d2c60b23bc2a27082cfea94ffdad9 # v2.5.0 - - - name: Restore turbo build - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - continue-on-error: true - with: - name: turbo-build - path: .turbo/cache - - - name: Build packages - run: yarn build + - uses: ./.github/actions/restore-packages - name: Login to GitHub Container Registry if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'