Skip to content

Commit c270005

Browse files
committed
Run e2e node slice tests separately
Node slice is still experimental. Its tests should not block regular CI. Signed-off-by: Marcelo <[email protected]>
1 parent 3a72065 commit c270005

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,39 @@ jobs:
8080
- name: Clear test-cache
8181
run: go clean -testcache
8282

83-
- name: Execute golang based E2E tests
83+
- name: Execute golang based E2E tests (excluding node_slice)
8484
env:
8585
KUBECONFIG: /home/runner/.kube/config
8686
NUMBER_OF_THRASH_ITER: 20
8787
FILL_PERCENT_CAPACITY: 20
88-
run: pushd e2e; go test -v . -timeout 1h; popd
89-
88+
run: pushd e2e; go test -v $(go list ./... | grep -v /e2e_node_slice) -timeout 1h; popd
89+
90+
e2e-test-node_slice:
91+
name: e2e test (node_slice)
92+
runs-on: ubuntu-latest
93+
env:
94+
NUMBER_OF_COMPUTE_NODES: 5
95+
steps:
96+
- name: Checkout code into the Go module directory
97+
uses: actions/checkout@v4
98+
99+
- name: Set up Go version
100+
uses: actions/setup-go@v5
101+
with:
102+
go-version-file: go.mod
103+
104+
- name: Install requirements
105+
run: sudo apt-get install nmap jq && ./hack/build-go.sh
106+
107+
- name: Get tools, setup KinD cluster test environment
108+
run: source hack/e2e-get-test-tools.sh && ./hack/e2e-setup-kind-cluster.sh --number-of-compute $NUMBER_OF_COMPUTE_NODES
109+
110+
- name: Clear test-cache
111+
run: go clean -testcache
112+
113+
- name: Execute golang based E2E tests (only node_slice)
114+
env:
115+
KUBECONFIG: /home/runner/.kube/config
116+
NUMBER_OF_THRASH_ITER: 20
117+
FILL_PERCENT_CAPACITY: 20
118+
run: pushd e2e; go test -v ./e2e_node_slice -timeout 1h; popd

0 commit comments

Comments
 (0)