Skip to content

Commit

Permalink
chore(workflows): e2e support release runner (#1826)
Browse files Browse the repository at this point in the history
chore(workflows): e2e support release runner (#1825)

Signed-off-by: Robin Han <[email protected]>
  • Loading branch information
superhx authored Aug 16, 2024
1 parent daea645 commit 860d253
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- name: Move results
run: |
results_path="$(pwd)/results/$(readlink results/latest | cut -d'/' -f5)"
mkdir -p "${{ inputs.storage-path }}/${{ inputs.suite-id }}"
mv "${results_path}" "${{ inputs.storage-path }}/${{ inputs.suite-id }}"
if: ${{ always() }}
shell: bash
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/nightly-extra-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Nightly Extra E2E tests
on:
workflow_dispatch:
inputs:
runs_on:
description: 'Runs on'
required: false
default: extra-release
type: choice
options:
- extra
- extra-release
schedule:
- cron: '0 16 * * *'

Expand All @@ -13,7 +22,7 @@ jobs:
suite-id: "benchmarks"
test-path: "tests/kafkatest/benchmarks"
storage-path: "/data/github-actions/reports"
runner: "extra"
runner: ${{ inputs.runs_on || 'extra' }}
connect_e2e_1:
name: "Run connect E2E Tests 1"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -22,7 +31,7 @@ jobs:
suite-id: "connect1"
test-yaml: "tests/suites/connect_test_suite1.yml"
storage-path: "/data/github-actions/reports"
runner: "extra"
runner: ${{ inputs.runs_on || 'extra' }}
connect_e2e_2:
name: "Run connect E2E Tests 2"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -31,7 +40,7 @@ jobs:
suite-id: "connect2"
test-yaml: "tests/suites/connect_test_suite2.yml"
storage-path: "/data/github-actions/reports"
runner: "extra"
runner: ${{ inputs.runs_on || 'extra' }}
connect_e2e_3:
name: "Run connect E2E Tests 3"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -40,7 +49,7 @@ jobs:
suite-id: "connect3"
test-yaml: "tests/suites/connect_test_suite3.yml"
storage-path: "/data/github-actions/reports"
runner: "extra"
runner: ${{ inputs.runs_on || 'extra' }}
streams_e2e:
name: "Run streams E2E Tests"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -49,10 +58,10 @@ jobs:
suite-id: "streams"
test-path: "tests/kafkatest/tests/streams"
storage-path: "/data/github-actions/reports"
runner: "extra"
runner: ${{ inputs.runs_on || 'extra' }}
e2e_summary:
name: "E2E Tests Summary"
runs-on: [ self-hosted, extra ]
runs-on: ${{ inputs.runs_on || 'extra' }}
if: ${{ always() && github.repository_owner == 'AutoMQ' }}
needs: [ benchmarks_e2e, connect_e2e_1, connect_e2e_2, connect_e2e_3, streams_e2e ]
steps:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/nightly-main-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Nightly Main E2E tests
on:
workflow_dispatch:
inputs:
runs_on:
description: 'Runs on'
required: false
default: main-release
type: choice
options:
- main
- main-release
schedule:
- cron: '0 16 * * *'

Expand All @@ -13,7 +22,7 @@ jobs:
suite-id: "main1"
test-yaml: "tests/suites/main_kos_test_suite1.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
main_e2e_2:
name: "Run Main E2E Tests 2"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -22,7 +31,7 @@ jobs:
suite-id: "main2"
test-yaml: "tests/suites/main_kos_test_suite2.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
main_e2e_3:
name: "Run Main E2E Tests 3"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -31,7 +40,7 @@ jobs:
suite-id: "main3"
test-yaml: "tests/suites/main_kos_test_suite3.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
main_e2e_4:
name: "Run Main E2E Tests 4"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -40,7 +49,7 @@ jobs:
suite-id: "main4"
test-yaml: "tests/suites/main_kos_test_suite4.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
main_e2e_5:
name: "Run Main E2E Tests 5"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -49,7 +58,7 @@ jobs:
suite-id: "main5"
test-yaml: "tests/suites/main_kos_test_suite5.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
main_e2e_6:
name: "Run Main E2E Tests 6"
uses: ./.github/workflows/e2e-run.yml
Expand All @@ -58,10 +67,10 @@ jobs:
suite-id: "main6"
test-yaml: "tests/suites/main_kos_test_suite6.yml"
storage-path: "/data/github-actions/reports"
runner: "main"
runner: ${{ inputs.runs_on || 'main' }}
e2e_summary:
runs-on: ${{ inputs.runs_on || 'main' }}
name: "E2E Tests Summary"
runs-on: [ self-hosted, main ]
if: ${{ always() && github.repository_owner == 'AutoMQ' }}
needs: [ main_e2e_1, main_e2e_2, main_e2e_3, main_e2e_4, main_e2e_5, main_e2e_6 ]
steps:
Expand Down

0 comments on commit 860d253

Please sign in to comment.