CI: run e2e tests as a matrix (#103382)

* run e2e tests as a matrix

* add old-suite/

* remove old-arch input

* run without quotes

* Update codeowners

* remove e2e-suite-various from codeowners

* ?
pull/103923/head
Kevin Minehart 3 months ago committed by GitHub
parent 1e8edd5880
commit 07807a0bd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/CODEOWNERS
  2. 29
      .github/workflows/pr-e2e-tests.yml
  3. 13
      .github/workflows/run-e2e-suite.yml

@ -823,8 +823,8 @@ embed.go @grafana/grafana-as-code
/.github/workflows/pr-frontend-unit-tests.yml @grafana/grafana-frontend-platform
/.github/workflows/frontend-lint.yml @grafana/grafana-frontend-platform
/.github/workflows/analytics-events-report.yml @grafana/grafana-frontend-platform
/.github/workflows/e2e-suite-various.yml @grafana/grafana-developer-enablement-squad
/.github/workflows/pr-e2e-tests.yml @grafana/grafana-developer-enablement-squad
/.github/workflows/run-e2e-suite.yml @grafana/grafana-developer-enablement-squad
# Generated files not requiring owner approval
/packages/grafana-data/src/types/featureToggles.gen.ts @grafanabot

@ -39,10 +39,33 @@ jobs:
retention-days: 1
name: ${{ steps.artifact.outputs.artifact }}
path: grafana.tar.gz
misc-suite:
e2e-matrix:
name: ${{ matrix.suite }}
strategy:
matrix:
suite:
- various-suite
- dashboards-suite
- smoke-tests-suite
- panels-suite
needs:
- build-grafana
uses: ./.github/workflows/e2e-suite-various.yml
name: Various Suite
uses: ./.github/workflows/run-e2e-suite.yml
with:
package: ${{ needs.build-grafana.outputs.artifact }}
suite: ${{ matrix.suite }}
e2e-matrix-old-arch:
name: ${{ matrix.suite }} (old arch)
strategy:
matrix:
suite:
- old-arch/various-suite
- old-arch/dashboards-suite
- old-arch/smoke-tests-suite
- old-arch/panels-suite
needs:
- build-grafana
uses: ./.github/workflows/run-e2e-suite.yml
with:
package: ${{ needs.build-grafana.outputs.artifact }}
suite: ${{ matrix.suite }}

@ -1,4 +1,4 @@
name: suites / various
name: e2e suite
on:
workflow_call:
@ -6,6 +6,9 @@ on:
package:
type: string
required: true
suite:
type: string
required: true
jobs:
main:
@ -16,12 +19,14 @@ jobs:
with:
name: ${{ inputs.package }}
- uses: dagger/dagger-for-github@8.0.0
if: inputs.old-arch == false
with:
verb: run
args: go run ./pkg/build/e2e --package=grafana.tar.gz --suite=various-suite
args: go run ./pkg/build/e2e --package=grafana.tar.gz --suite=${{ inputs.suite }}
- run: echo "suite=$(echo ${{ inputs.suite }} | sed 's/\//-/g')" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
if: always()
if: ${{ always() && inputs.old-arch != true }}
with:
name: e2e-various-${{github.run_number}}
name: e2e-${{ env.suite }}-${{github.run_number}}
path: videos
retention-days: 1
Loading…
Cancel
Save