diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 395cd99a7b85..9a5ace90b752 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -105,34 +105,6 @@ jobs: files: tests/e2e/${{ matrix.etest }}/coverage.out flags: e2etests # optional verbose: true # optional (default = false) - docker: - needs: build - name: Docker Tests - runs-on: ubuntu-latest - 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 - 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 $?" build-go-tests: name: "Build Go Tests" diff --git a/scripts/test b/scripts/test index c1a2ed22ffba..7e364a53f258 100755 --- a/scripts/test +++ b/scripts/test @@ -20,8 +20,9 @@ mkdir -p $artifacts docker ps # --- -# Only run basic tests on non amd64 archs, we use GitHub Actions for amd64 -if [ "$ARCH" != 'amd64' ]; then +# Only run PR tests on arm arch, we use GitHub Actions for amd64 and arm64 +# Run all tests on tag events, as we want test failures to block the release +if [ "$ARCH" == 'arm' ] || [ "$DRONE_BUILD_EVENT" = 'tag' ]; then export K3S_IMAGE="rancher/k3s:${VERSION_TAG}${SUFFIX}" go test ./tests/docker/basics/basics_test.go -k3sImage="$K3S_IMAGE" @@ -47,13 +48,10 @@ if [ "$ARCH" != 'amd64' ]; then fi - +#TODO convert this to new go test framework . ./tests/docker/test-run-hardened echo "Did test-run-hardened $?" -. ./tests/docker/test-run-etcd -echo "Did test-run-etcd $?" - # --- [ "$ARCH" != 'amd64' ] && \