-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: e2e-tests ran on feature images
Signed-off-by: Bence Csati <[email protected]>
- Loading branch information
Showing
4 changed files
with
107 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ on: | |
pull_request: | ||
|
||
env: | ||
GO_VERSION: '1.22.1' | ||
KUBECTL_VERSION: 'v1.24.1' | ||
KUBECTL_VERSION: 'v1.26.6' | ||
|
||
jobs: | ||
build: | ||
|
@@ -26,7 +25,7 @@ jobs: | |
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
tags: controller:latest | ||
tags: controller:local | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
outputs: type=docker,dest=/tmp/controller.tar | ||
|
@@ -37,66 +36,14 @@ jobs: | |
name: controller | ||
path: /tmp/controller.tar | ||
|
||
go: | ||
name: Go end2end tests | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
fail-fast: false | ||
# matrix: | ||
# SHARD: [0] | ||
# SHARDS: [1] | ||
|
||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: controller | ||
path: /tmp | ||
|
||
- name: Load image | ||
run: | | ||
docker load --input /tmp/controller.tar | ||
docker image ls -a | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Set up kubectl | ||
uses: azure/[email protected] | ||
with: | ||
version: ${{ env.KUBECTL_VERSION }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run e2e tests | ||
run: make e2e-test-ci | ||
# env: | ||
# SHARD: ${{ matrix.SHARD }} | ||
# SHARDS: ${{ matrix.SHARDS }} | ||
|
||
- name: Archive Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: go-e2e-test-cluster-logs | ||
path: build/_test | ||
retention-days: 5 | ||
|
||
e2e-test: | ||
name: Shell script tests with different k8s versions | ||
chart: | ||
name: Shell script tests with chart install | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kube: ["1.26", "1.27", "1.28", "1.29"] | ||
kube: ["1.29", "1.30", "1.31"] | ||
|
||
steps: | ||
- name: Set up Docker Buildx | ||
|
@@ -118,11 +65,6 @@ jobs: | |
with: | ||
version: ${{ env.KUBECTL_VERSION }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
|
@@ -131,14 +73,12 @@ jobs: | |
id: node_image | ||
run: | | ||
case ${{ matrix.kube }} in | ||
1.26) | ||
NODE_IMAGE=kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb ;; | ||
1.27) | ||
NODE_IMAGE=kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 ;; | ||
1.28) | ||
NODE_IMAGE=kindest/node:v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31 ;; | ||
1.29) | ||
NODE_IMAGE=kindest/node:v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e324d570 ;; | ||
NODE_IMAGE=kindest/node:v1.29.4@sha256:ea40a6bd365a17f71fd3883a1d34a0791d7d6b0eb75832c6d85b6f2326827f1e ;; | ||
1.30) | ||
NODE_IMAGE=kindest/node:v1.30.0@sha256:2af5d1b382926abcd6336312d652cd045b7cc47475844a608669c71b1fefcfbc ;; | ||
1.31) | ||
NODE_IMAGE=kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 ;; | ||
esac | ||
echo "image=$NODE_IMAGE" >> $GITHUB_OUTPUT | ||
|
@@ -148,8 +88,8 @@ jobs: | |
env: | ||
KIND_IMAGE: ${{ steps.node_image.outputs.image }} | ||
|
||
- name: Test script for E2E | ||
run: make e2e-test-ci | ||
- name: Test | ||
run: e2e/e2e_test.sh | ||
|
||
- name: Print last 10k kubernetes logs from default, collector and example-tenant-ns namespaces | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
image: | ||
repository: controller | ||
tag: local |