Skip to content

Commit 015839f

Browse files
committed
Saving
1 parent 9c0897b commit 015839f

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

.github/workflows/build_test_ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ jobs:
172172
GITHUB_TOKEN: ${{ secrets.github_token }}
173173
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}
174174

175-
- name: Partial E2E Test
176-
run: make e2etest-pr
175+
- name: Quick E2E Test
176+
if: github.ref != 'refs/heads/main'
177+
run: make e2etest-quick
177178
env:
178179
GITHUB_TOKEN: ${{ secrets.github_token }}
179180
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ test: generate fmt vet envtest ## Run tests.
147147

148148
.PHONY: e2etest
149149
e2etest: generate local-deploy chainsaw
150-
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --assert-timeout 600s
150+
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e/default-capl-cluster --assert-timeout 600s --cluster child-cluster=/e2e/default-capl-cluster/child-cluster-kubeconfig.yaml
151151

152152
.PHONY: e2etest-pr
153-
e2etest-pr: generate local-deploy chainsaw
154-
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --selector on-pr
153+
e2etest-quick: generate local-deploy chainsaw
154+
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --selector quick
155155

156156
local-deploy: kind ctlptl tilt kustomize clusterctl
157157
@echo -n "LINODE_TOKEN=$(LINODE_TOKEN)" > config/default/.env.linode

e2e/default-CAPL-cluster/04-cleanup-cluster.yaml

-5
This file was deleted.

e2e/default-CAPL-cluster/chainsaw-test.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ spec:
4747
($error): ~
4848
(json_parse($stdout)):
4949
results: 2
50+
- name: step-02b - get child cluster kubeconfig
51+
try:
52+
- script:
53+
content: |
54+
clusterctl get kubeconfig ($cluster) > child-cluster-kubeconfig.yaml
55+
check:
56+
($error == null): true
57+
# - name: step-02c - check child cluster
58+
# try:
59+
# - script:
60+
# cluster: child-cluster
61+
# content: |
62+
# kubectl get nodes -o wide
5063
- name: step-03
5164
try:
5265
- delete:
@@ -79,7 +92,3 @@ spec:
7992
($error): ~
8093
(json_parse($stdout)):
8194
results: 0
82-
- name: step-05
83-
try:
84-
- apply:
85-
file: 04-cleanup-cluster.yaml

e2e/linodecluster-controller/minimal-linodecluster/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: minimal-linodecluster
77
# Label to trigger the test on every PR
88
labels:
9-
on-pr:
9+
quick:
1010
spec:
1111
bindings:
1212
# A short identifier for the E2E test run

e2e/linodemachine-controller/minimal-linodemachine/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: minimal-linodemachine
77
# Label to trigger the test on every PR
88
labels:
9-
on-pr:
9+
quick:
1010
spec:
1111
bindings:
1212
# A short identifier for the E2E test run

e2e/linodemachine-controller/vpc-integration/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: vpc-integration
77
# Label to trigger the test on every PR
88
labels:
9-
on-pr:
9+
quick:
1010
spec:
1111
bindings:
1212
# A short identifier for the E2E test run

e2e/linodeobjectstoragebucket-controller/minimal-linodeobjectstoragebucket/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: minimal-linodeobjectstoragebucket
66
# Label to trigger the test on every PR
77
labels:
8-
on-pr:
8+
quick:
99
spec:
1010
bindings:
1111
# A short identifier for the E2E test run

e2e/linodevpc-controller/minimal-linodevpc/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: minimal-linodevpc
66
# Label to trigger the test on every PR
77
labels:
8-
on-pr:
8+
quick:
99
spec:
1010
bindings:
1111
# A short identifier for the E2E test run

0 commit comments

Comments
 (0)