@@ -314,7 +314,7 @@ jobs:
314314 # we only build and publish the actual docker images if not a PR from a fork
315315 - name : Image ${{ matrix.service[0] }}
316316 uses : ./.github/actions/build-docker
317- if : (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'
317+ if : github.actor != 'dependabot[bot]'
318318 env :
319319 # add suffix for the extra images with coverage if building for production
320320 DOCKER_TAG_SUFFIX_ROCKETCHAT : ${{ matrix.type == 'coverage' && (github.event_name == 'release' || github.ref == 'refs/heads/develop') && '-cov' || '' }}
@@ -325,10 +325,11 @@ jobs:
325325 arch : ${{ matrix.arch }}
326326 service : ${{ matrix.service[0] }}
327327 type : ${{ matrix.type }}
328+ publish-image : ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop' }}
328329
329330 - name : Image ${{ matrix.service[1] || '"skipped"' }}
330331 uses : ./.github/actions/build-docker
331- if : matrix.service[1] && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'
332+ if : matrix.service[1] && github.actor != 'dependabot[bot]'
332333 env :
333334 DOCKER_TAG_SUFFIX_ROCKETCHAT : ${{ matrix.type == 'coverage' && '-cov' || '' }}
334335 with :
@@ -338,11 +339,12 @@ jobs:
338339 arch : ${{ matrix.arch }}
339340 service : ${{ matrix.service[1] }}
340341 type : ${{ matrix.type }}
342+ publish-image : ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop' }}
341343 setup-docker : false
342344
343345 - name : Image ${{ matrix.service[2] || '"skipped"' }}
344346 uses : ./.github/actions/build-docker
345- if : matrix.service[2] && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'
347+ if : matrix.service[2] && github.actor != 'dependabot[bot]'
346348 env :
347349 DOCKER_TAG_SUFFIX_ROCKETCHAT : ${{ matrix.type == 'coverage' && '-cov' || '' }}
348350 with :
@@ -352,11 +354,12 @@ jobs:
352354 arch : ${{ matrix.arch }}
353355 service : ${{ matrix.service[2] }}
354356 type : ${{ matrix.type }}
357+ publish-image : ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop' }}
355358 setup-docker : false
356359
357360 - name : Image ${{ matrix.service[3] || '"skipped"' }}
358361 uses : ./.github/actions/build-docker
359- if : matrix.service[3] && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'
362+ if : matrix.service[3] && github.actor != 'dependabot[bot]'
360363 env :
361364 DOCKER_TAG_SUFFIX_ROCKETCHAT : ${{ matrix.type == 'coverage' && '-cov' || '' }}
362365 with :
@@ -366,6 +369,7 @@ jobs:
366369 arch : ${{ matrix.arch }}
367370 service : ${{ matrix.service[3] }}
368371 type : ${{ matrix.type }}
372+ publish-image : ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop' }}
369373 setup-docker : false
370374
371375 build-gh-docker-publish :
@@ -452,6 +456,7 @@ jobs:
452456
453457 - name : Track Docker image sizes
454458 uses : ./.github/actions/docker-image-size-tracker
459+ if : github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
455460 with :
456461 github-token : ${{ secrets.GITHUB_TOKEN }}
457462 ci-pat : ${{ secrets.CI_PAT }}
@@ -580,10 +585,11 @@ jobs:
580585 REPORTER_ROCKETCHAT_URL : ${{ secrets.REPORTER_ROCKETCHAT_URL }}
581586 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
582587 REPORTER_JIRA_ROCKETCHAT_API_KEY : ${{ secrets.REPORTER_JIRA_ROCKETCHAT_API_KEY }}
588+
583589 test-federation-matrix :
584590 name : 🔨 Test Federation Matrix
585591 needs : [checks, build-gh-docker-publish, packages-build, release-versions]
586- runs-on : ubuntu-24.04-arm
592+ runs-on : ubuntu-24.04
587593
588594 steps :
589595 - uses : actions/checkout@v6
@@ -621,15 +627,58 @@ jobs:
621627 sudo -- sh -c "echo '127.0.0.1 hs1' >> /etc/hosts"
622628 sudo -- sh -c "echo '127.0.0.1 rc1' >> /etc/hosts"
623629
630+ # Download Docker images from build artifacts
631+ - name : Download Docker images
632+ uses : actions/download-artifact@v7
633+ if : github.event.pull_request.head.repo.full_name != github.repository && github.event_name != 'release' && github.ref != 'refs/heads/develop'
634+ with :
635+ pattern : ' docker-image-rocketchat-amd64-coverage'
636+ path : /tmp/docker-images
637+ merge-multiple : true
638+
639+ # Load Docker images
640+ - name : Load Docker images
641+ if : github.event.pull_request.head.repo.full_name != github.repository && github.event_name != 'release' && github.ref != 'refs/heads/develop'
642+ shell : bash
643+ run : |
644+ set -o xtrace
645+
646+ # Load all downloaded images
647+ for image_file in /tmp/docker-images/*.tar; do
648+ if [ -f "$image_file" ]; then
649+ echo "Loading image from $image_file"
650+ docker load -i "$image_file"
651+ rm "$image_file"
652+ fi
653+ done
654+
655+ # List loaded images
656+ docker images
657+
624658 - name : Run federation integration tests with pre-built image
625659 working-directory : ./ee/packages/federation-matrix
626660 env :
627- ROCKETCHAT_IMAGE : ghcr.io/${{ needs.release-versions.outputs.lowercase-repo }}/rocket.chat:${{ needs.release-versions.outputs.gh-docker-tag }}
628- ENTERPRISE_LICENSE_RC1 : ${{ secrets.ENTERPRISE_LICENSE_RC1 }}
661+ ROCKETCHAT_IMAGE : ghcr.io/${{ needs.release-versions.outputs.lowercase-repo }}/rocket.chat:${{ needs.release-versions.outputs.gh-docker-tag }}-amd64
662+ ENTERPRISE_LICENSE_RC1 : ZEuDWcAxkdBZ0iOzn+JIi7Ri0GKPR43hTueeqEEeTjJhzhp1jM7+fA9LiT3aCzU/oJwudwWLFAwqjrtR13axza+Us6lHuAMdfut/1Z6upRWdSgose1LfDP9Nzce6xOVbO3InQonwTQVQJotlYEGRjiry7jn68TSIKhmjMgC6SVYt6v+syEKRgj+r2oT0xNkurQYGGG1AIYHDqGWa1cX0FVd1ddOKU/DNuCJQxH8Rz5aJC2grIKMIzmRVHfBDJAipeTDl6VI28VM5ExEl3w8zDlUk8wCxXawXGCht0A7jZGCd4IQLDNZs/3Zv+nHC4lcDVzjDu+o17vUIEad4m+nhZgGTNlHqkrH3cqEEEPa3bSh8GKBzLmKHB+i0H3dweT9iqGwz56Nue7twyt5yuGq6qYdtrEx0pEKjystU15DUiQxDPqkBL8yRkp5WScsvJIlhiY+4tU6yKI/GAYtU0g+fCYzjzwxXc7tLg5NeY9kiRMdQ+jRytl3ztHGiv5ERhjQKT9ZpUWiCSCmdr8L3njfLLW1e5/AKmXpg00D6HfJvI30xDcoJwmWnCzFvd7KlSbVwNVBlD6KE9+0j6GV1h0JEml1YrpXUxbpEBz5ALdLn2iVPQ3MT5RODRI5yffSX9ikFkwcH360ewU6Zp63WKRkHyfnzE+tsYe96XdaMZowe7Lw=
629663 QASE_TESTOPS_JEST_API_TOKEN : ${{ secrets.QASE_TESTOPS_JEST_API_TOKEN }}
630664 PR_NUMBER : ${{ github.event.number }}
631665 run : yarn test:integration --image "${ROCKETCHAT_IMAGE}"
632666
667+ - name : Show rc server logs if tests failed
668+ if : failure()
669+ working-directory : ./ee/packages/federation-matrix
670+ run : docker compose -f docker-compose.test.yml logs rc1-prebuilt
671+
672+ - name : Show hs server logs if tests failed
673+ if : failure()
674+ working-directory : ./ee/packages/federation-matrix
675+ run : docker compose -f docker-compose.test.yml logs hs1
676+
677+ - name : Show mongo logs if tests failed
678+ if : failure()
679+ working-directory : ./ee/packages/federation-matrix
680+ run : docker compose -f docker-compose.test.yml logs mongo
681+
633682 report-coverage :
634683 name : 📊 Report Coverage
635684 runs-on : ubuntu-24.04
0 commit comments