Merge pull request #13425 from rabbitmq/fix-selenium-log-collection

Fix log collection in Selenium workflows
This commit is contained in:
Aitor Pérez Cedres 2025-03-12 10:00:19 +00:00 committed by GitHub
commit ad0c209478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View File

@ -61,12 +61,16 @@ jobs:
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
${SELENIUM_DIR}/run-suites.sh short-suite-management-ui
- name: Prepare logs for upload
if: ${{ failure() && steps.tests.outcome == 'failed' }}
run: |
mkdir -p /tmp/short-suite
mv /tmp/selenium/* /tmp/short-suite
- name: Upload Test Artifacts
if: always()
uses: actions/upload-artifact@v4.3.2
if: ${{ failure() && steps.tests.outcome == 'failed' }}
uses: actions/upload-artifact@v4
with:
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
path: |

View File

@ -69,18 +69,22 @@ jobs:
docker build -t mocha-test --target test .
- name: Run full UI suite on a 3-node rabbitmq cluster
id: tests
run: |
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
${SELENIUM_DIR}/run-suites.sh full-suite-management-ui
- name: Prepare logs for upload
if: ${{ failure() && steps.tests.outcome == 'failed' }}
run: |
mkdir -p /tmp/full-suite
mv /tmp/selenium/* /tmp/full-suite
mv -v /tmp/selenium/* /tmp/full-suite
- name: Upload Test Artifacts
if: always()
if: ${{ failure() && steps.tests.outcome == 'failed' }}
uses: actions/upload-artifact@v4.3.2
with:
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
path: |
/tmp/full-suite
/tmp/short-suite