ci: Add artifact prefix to e2e runs to prevent clashing (#30281)

This commit is contained in:
Matsu 2026-05-12 10:03:09 +03:00 committed by GitHub
parent 8b0a3ae3d3
commit cb019eb253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 2 deletions

View File

@ -211,6 +211,7 @@ jobs:
test-mode: docker-artifact
test-command: pnpm --filter=n8n-playwright test:container:sqlite:e2e tests/e2e/building-blocks/workflow-entry-points.spec.ts
workers: '1'
artifact-prefix: sanity
secrets: inherit
# Full e2e run. Internal PRs run multi-main (postgres + redis + caddy + 2 mains + 1 worker).
@ -230,6 +231,7 @@ jobs:
test-command: ${{ github.event.pull_request.head.repo.fork == true && 'pnpm --filter=n8n-playwright test:container:sqlite:e2e --grep-invert=@licensed' || 'pnpm --filter=n8n-playwright test:container:multi-main:e2e' }}
workers: '1'
pre-generated-matrix: ${{ needs.install-and-build.outputs.matrix }}
artifact-prefix: e2e
secrets: inherit
# Boots the editor-ui against the Vite dev server and fails on any console

View File

@ -25,6 +25,7 @@ jobs:
runner: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 45
pre-generated-matrix: '[{"shard":1,"images":""},{"shard":2,"images":""},{"shard":3,"images":""},{"shard":4,"images":""}]'
artifact-prefix: coverage
secrets: inherit
aggregate:
@ -42,7 +43,7 @@ jobs:
- name: Download shard artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: e2e-shard-*
pattern: coverage-shard-*
path: /tmp/shards/
- name: Collect coverage JSON

View File

@ -38,4 +38,5 @@ jobs:
workers: '1'
runner: ${{ matrix.runner }}
timeout-minutes: 120
artifact-prefix: benchmark
secrets: inherit

View File

@ -19,4 +19,5 @@ jobs:
test-mode: docker-artifact
test-command: pnpm --filter=n8n-playwright test:performance
currents-project-id: 'O9BJaN'
artifact-prefix: performance
secrets: inherit

View File

@ -47,6 +47,11 @@ on:
required: false
default: ''
type: string
artifact-prefix:
description: 'Prefix for uploaded shard artifacts'
required: false
default: 'e2e'
type: string
env:
NODE_OPTIONS: ${{ contains(inputs.runner, '2vcpu') && '--max-old-space-size=6144' || '' }}
@ -120,7 +125,7 @@ jobs:
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: e2e-shard-${{ matrix.shard }}
name: ${{ inputs.artifact-prefix }}-shard-${{ matrix.shard }}
path: |
packages/testing/playwright/test-results/
packages/testing/playwright/playwright-report/

View File

@ -29,6 +29,7 @@ jobs:
workers: '1'
pre-generated-matrix: '[{"shard":1},{"shard":2},{"shard":3},{"shard":4},{"shard":5},{"shard":6},{"shard":7},{"shard":8},{"shard":9},{"shard":10},{"shard":11},{"shard":12},{"shard":13},{"shard":14},{"shard":15},{"shard":16}]'
n8n-env: '{"N8N_EXPRESSION_ENGINE":"vm"}'
artifact-prefix: vm-expressions
secrets: inherit
notify-on-failure: