Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ e2e-ci-test-disruptive: ginkgo
.PHONY: e2e-upstream-test
e2e-upstream-test: ginkgo
@echo "Running upstream e2e tests..."
@echo "Removing OLM-installed LWS (if present) and installing v0.8.0 from GitHub..."
-oc delete leaderworkersetoperator cluster --ignore-not-found=true
-oc delete subscription leader-worker-set -n openshift-lws-operator --ignore-not-found=true
-oc delete csv -n openshift-lws-operator -l operators.coreos.com/leader-worker-set.openshift-lws-operator --ignore-not-found=true
-oc delete namespace openshift-lws-operator --ignore-not-found=true
@sleep 10
@echo "Installing Leader Worker Set v0.8.0 from GitHub releases"
oc apply --server-side -f https://github.com/kubernetes-sigs/lws/releases/download/v0.8.0/manifests.yaml
@echo "Waiting for LWS controller to be ready"
@timeout 300s bash -c 'until oc get deployment lws-controller-manager -n lws-system -o jsonpath="{.status.conditions[?(@.type==\"Available\")].status}" | grep -q "True"; do sleep 10; echo "Still waiting for LWS controller..."; done'
@echo "Leader Worker Set v0.8.0 installed successfully"
oc apply -f test/e2e/bindata/assets/08_kueue_default.yaml
@echo "Running e2e tests on OpenShift cluster ($(shell oc whoami --show-server))"
mkdir -p "$(ARTIFACT_DIR)"
Expand All @@ -247,16 +258,11 @@ install-jobset-operator:

.PHONY: install-lws-operator
install-lws-operator:
@echo "Installing Leader Worker Set Operator"
oc create -f hack/manifests/lws-operator.yaml
@echo "Waiting for Leader Worker Set Operator CSV to be succeeded"
@timeout 300s bash -c 'until oc get deployment openshift-lws-operator -n openshift-lws-operator -o jsonpath="{.status.conditions[?(@.type==\"Available\")].status}" | grep -q "True"; do sleep 10; echo "Still waiting..."; done'
@echo "Leader Worker Set Operator installed"
@echo "Creating Leader Worker Set Instance"
oc create -f hack/manifests/lws-operand.yaml
@echo "Waiting for Leader Worker Set Operand to be installed"
@timeout 300s bash -c 'until oc get deployment lws-controller-manager -n openshift-lws-operator -o jsonpath="{.status.conditions[?(@.type==\"Available\")].status}" | grep -q "True"; do sleep 10; echo "Still waiting..."; done'
@echo "Leader Worker Set Operand installed"
@echo "Installing Leader Worker Set v0.8.0 from GitHub releases"
oc apply --server-side -f https://github.com/kubernetes-sigs/lws/releases/download/v0.8.0/manifests.yaml
@echo "Waiting for LWS controller to be ready"
@timeout 300s bash -c 'until oc get deployment lws-controller-manager -n lws-system -o jsonpath="{.status.conditions[?(@.type==\"Available\")].status}" | grep -q "True"; do sleep 10; echo "Still waiting for LWS controller..."; done'
@echo "Leader Worker Set v0.8.0 installed successfully"

.PHONY: build-must
build-must:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,14 @@ rules:
- get
- list
- watch
- apiGroups:
- leaderworkerset.x-k8s.io
resources:
- leaderworkersets/status
verbs:
- get
- patch
- update
- apiGroups:
- node.k8s.io
resources:
Expand Down
14 changes: 14 additions & 0 deletions upstream/kueue/patch/e2e.patch
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ index cc7d1f901..a68b8b9f4 100644
return ns
}


diff --git a/test/e2e/singlecluster/leaderworkerset_test.go b/test/e2e/singlecluster/leaderworkerset_test.go
index 037e44a9d..55db71901 100644
--- a/test/e2e/singlecluster/leaderworkerset_test.go
+++ b/test/e2e/singlecluster/leaderworkerset_test.go
@@ -741,7 +741,7 @@ var _ = ginkgo.Describe("LeaderWorkerSet integration", ginkgo.Label("area:single
g.Expect(k8sClient.Get(ctx, util.WorkloadKeyForLeaderWorkerSet(lws, strconv.Itoa(i)), wl)).To(gomega.Succeed(),
"workload for surge group %d should exist", i)
}
- }, util.LongTimeout, util.Interval).Should(gomega.Succeed())
+ }, util.VeryLongTimeout, util.Interval).Should(gomega.Succeed())
})

ginkgo.By(fmt.Sprintf("Verify rolling update completes successfully with %d replicas running", lwsReplicas), func() {
2 changes: 1 addition & 1 deletion upstream/kueue/src
Submodule src updated 823 files