Skip to content

Commit

Permalink
Merge pull request #2602 from ty-dc/e2e/support-low-os
Browse files Browse the repository at this point in the history
e2e: Add a new job to test low kernels in e2e
  • Loading branch information
weizhoublue authored Nov 16, 2023
2 parents d1dff9b + d0b84d1 commit dc353ad
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/auto-nightly-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,22 @@ jobs:
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
secrets: inherit

call_low_kernel:
needs: [call_build_ci_image, get_ref, call_release_chart]
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' && needs.get_ref.outputs.ipfamily_dual_e2e == 'true' }}
uses: ./.github/workflows/e2e-init.yaml
with:
os: ubuntu-20.04
ip_family: dual
image_tag: ${{ needs.call_build_ci_image.outputs.imageTag }}
ref: ${{ needs.get_ref.outputs.ref }}
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
secrets: inherit

creat_issue:
runs-on: ubuntu-latest
needs: [call_e2e_dual, call_e2e_ipv4, call_e2e_ipv6, call_unitest, lint_chart_against_release_image]
if: ${{ always() && needs.call_e2e_dual.result == 'failure' || needs.call_e2e_ipv4.result == 'failure' || needs.call_e2e_ipv6.result == 'failure' || needs.call_unitest.result == 'failure' || needs.lint_chart_against_release_image.result == 'failure' }}
needs: [call_e2e_dual, call_e2e_ipv4, call_e2e_ipv6, call_unitest, lint_chart_against_release_image, call_low_kernel]
if: ${{ always() && needs.call_e2e_dual.result == 'failure' || needs.call_e2e_ipv4.result == 'failure' || needs.call_e2e_ipv6.result == 'failure' || needs.call_unitest.result == 'failure' || needs.lint_chart_against_release_image.result == 'failure' || needs.call_low_kernel.result == 'failure' }}
steps:
- name: echo
run: |
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/auto-pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,15 @@ jobs:
ref: ${{ needs.get_ref.outputs.ref }}
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
secrets: inherit

call_low_kernel:
needs: [call_build_ci_image, get_ref, call_release_chart]
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' && needs.get_ref.outputs.ipfamily_dual_e2e == 'true' }}
uses: ./.github/workflows/e2e-init.yaml
with:
os: ubuntu-20.04
ip_family: dual
image_tag: ${{ needs.call_build_ci_image.outputs.imageTag }}
ref: ${{ needs.get_ref.outputs.ref }}
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
secrets: inherit
13 changes: 12 additions & 1 deletion .github/workflows/e2e-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ on:
e2e_labels:
required: false
type: string
os:
required: false
type: string
default: ubuntu-latest

jobs:
call_e2e:
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}
strategy:
fail-fast: false
matrix:
Expand All @@ -44,6 +48,13 @@ jobs:
- e2e_init_mode: e2e_init_cilium
e2e_test_mode: e2e_test_cilium
steps:
- name: Show system kernel
run: |
echo "=========Current os version================="
echo ${{ inputs.os }}
echo "=========Current system kernel================="
uname -r
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
Expand Down

0 comments on commit dc353ad

Please sign in to comment.