Skip to content

Commit

Permalink
Use shared GHAs from Shipyard
Browse files Browse the repository at this point in the history
Run common Submariner CI logic like E2E tests, upgrade tests, and the
flake finder using Submariner's custom GitHub Actions from Shipyard.

This should fix the upgrade job.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
  • Loading branch information
dfarrell07 authored and mangelajo committed Feb 8, 2021
1 parent fdf5f37 commit 31a2345
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 51 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,12 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v2

- name: Reclaim free space
run: |
sudo swapoff -a
sudo rm -f /swapfile
df -h
free -h
- name: Run E2E deployment and tests
run: |
make e2e using="${{ matrix.globalnet }} ${{ matrix.lighthouse }}"
uses: submariner-io/shipyard/gh-actions/e2e@devel
with:
globalnet: ${{ matrix.globalnet }}
lighthouse: ${{ matrix.lighthouse }}

- name: Post mortem
if: failure()
run: |
df -h
free -h
make post-mortem
uses: submariner-io/shipyard/gh-actions/post-mortem@devel
33 changes: 8 additions & 25 deletions .github/workflows/flake_finder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,17 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v2

- name: Reclaim free space
run: |
sudo swapoff -a
sudo rm -f /swapfile
df -h
free -h

- name: Run E2E deployment and tests
run: |
make e2e using="${{ matrix.cable_driver }} ${{ matrix.globalnet }} ${{ matrix.lighthouse }}"
uses: submariner-io/shipyard/gh-actions/e2e@devel
with:
cabledriver: ${{ matrix.cable_driver }}
globalnet: ${{ matrix.globalnet }}
lighthouse: ${{ matrix.lighthouse }}

- name: Post mortem
if: failure()
run: |
df -h
free -h
make post-mortem
uses: submariner-io/shipyard/gh-actions/post-mortem@devel
upgrade-e2e:
name: Latest Release to Latest Version
timeout-minutes: 30
Expand All @@ -46,20 +40,9 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Reclaim free space
run: |
sudo swapoff -a
sudo rm -f /swapfile
df -h
free -h
- name: Install an old cluster, upgrade it and check it
run: |
make upgrade-e2e
uses: submariner-io/shipyard/gh-actions/upgrade-e2e@devel

- name: Post mortem
if: failure()
run: |
df -h
free -h
make post-mortem
uses: submariner-io/shipyard/gh-actions/post-mortem@devel
15 changes: 2 additions & 13 deletions .github/workflows/upgrade-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,9 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Reclaim free space
run: |
sudo swapoff -a
sudo rm -f /swapfile
df -h
free -h
- name: Install an old cluster, upgrade it and check it
run: |
make upgrade-e2e
uses: submariner-io/shipyard/gh-actions/upgrade-e2e@devel

- name: Post mortem
if: failure()
run: |
df -h
free -h
make post-mortem
uses: submariner-io/shipyard/gh-actions/post-mortem@devel

0 comments on commit 31a2345

Please sign in to comment.