Skip to content

Commit

Permalink
Test OVN on deploy job
Browse files Browse the repository at this point in the history
E2E testing in this repo simply only that the E2E script functions as
expected by running basic E2E tests that dont necessarily test
connectivity.

Since OVN is relevant at deployment stage for this repo, it should be
tested with the rest of deployment checks.

Also added a disk space clearing since OVN takes much more space and can
exhaust the disk space and fail the job.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
  • Loading branch information
mkolesnik authored and mangelajo committed May 24, 2021
1 parent e979e84 commit 924eaaf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,28 @@ jobs:
globalnet: ['', 'globalnet']
deploytool: ['operator', 'helm']
lighthouse: ['']
ovn: ['']
include:
- ovn: ovn
- deploytool: operator
lighthouse: lighthouse
- deploytool: helm
lighthouse: lighthouse
steps:
- name: Reclaim space on GHA host (if the job needs it)
if: ${{ matrix.ovn != '' }}
run: rm -rf /usr/share/dotnet

- name: Check out the repository
uses: actions/checkout@v2
with:
submodules: true

- name: Deploy clusters and Submariner
env:
CLUSTERS_ARGS: --timeout 1m
DEPLOY_ARGS: --timeout 2m
run: make deploy using="${{ matrix.globalnet }} ${{ matrix.deploytool }} ${{ matrix.lighthouse }}"
run: make deploy using="${{ matrix.globalnet }} ${{ matrix.deploytool }} ${{ matrix.lighthouse }} ${{ matrix.ovn }}"

- name: Post mortem
if: failure()
Expand All @@ -74,17 +82,12 @@ jobs:
name: E2E
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
ovn: ['', 'ovn']
steps:
- name: Check out the repository
uses: actions/checkout@v2
with:
submodules: true

- name: Run E2E deployment and tests
run: make e2e using="${{ matrix.ovn }}"
run: make e2e

- name: Post mortem
if: failure()
Expand Down

0 comments on commit 924eaaf

Please sign in to comment.