Skip to content

Commit

Permalink
Switch to docker arm64 tests instead of integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Sep 6, 2024
1 parent 672148f commit b6148c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
uses: ./.github/workflows/build-k3s.yaml
with:
upload-image: true
build-arm64:
if : github.repository == 'k3s-io/k3s'
uses: ./.github/workflows/build-k3s.yaml
with:
arch: oracle-aarch64-4cpu-16gb
upload-image: true
e2e:
name: "E2E Tests"
needs: build
Expand Down Expand Up @@ -119,3 +125,32 @@ jobs:
. ./tests/docker/test-helpers
. ./tests/docker/test-run-${{ matrix.dtest }}
echo "Did test-run-${{ matrix.dtest }} pass $?"
docker-arm64:
needs: build-arm64
name: Docker Tests Arm64
if: github.repository == 'k3s-io/k3s'
runs-on: oracle-aarch64-4cpu-16gb
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
dtest: [basics, bootstraptoken, cacerts, compat, lazypull, upgrade]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: "Download k3s image"
uses: actions/download-artifact@v4
with:
name: k3s-arm64
path: ./dist/artifacts
- name: Load k3s image
run: docker image load -i ./dist/artifacts/k3s-image.tar
- name: Run ${{ matrix.dtest }} Test
run: |
chmod +x ./dist/artifacts/k3s
. ./scripts/version.sh
. ./tests/docker/test-helpers
. ./tests/docker/test-run-${{ matrix.dtest }}
echo "Did test-run-${{ matrix.dtest }} pass $?"
36 changes: 0 additions & 36 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,6 @@ env:
jobs:
build:
uses: ./.github/workflows/build-k3s.yaml
build-arm64:
if : github.repository == 'k3s-io/k3s'
uses: ./.github/workflows/build-k3s.yaml
with:
arch: oracle-aarch64-4cpu-16gb
itest-arm64:
needs: build-arm64
name: Integration Tests Arm64
if: github.repository == 'k3s-io/k3s'
runs-on: oracle-aarch64-4cpu-16gb
strategy:
fail-fast: false
matrix:
itest: [certrotation, localstorage, startup, custometcdargs, kubeflags, secretsencryption, flannelnone]
max-parallel: 3
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: false
- name: "Download k3s binary"
uses: actions/download-artifact@v4
with:
name: k3s-arm64
path: ./dist/artifacts
- name: Run Integration Tests
run: |
mv ./dist/artifacts/k3s-arm64 ./dist/artifacts/k3s
chmod +x ./dist/artifacts/k3s
mkdir -p $GOCOVERDIR
sudo -E env "PATH=$PATH" go test -v -timeout=45m ./tests/integration/${{ matrix.itest }}/... -run Integration
itest:
needs: build
name: Integration Tests
Expand Down

0 comments on commit b6148c8

Please sign in to comment.