Skip to content

Commit

Permalink
Test the in-tree removal feature (#593)
Browse files Browse the repository at this point in the history
Load the dummy module to have it unloaded by the KMM worker before
loading kmm_ci.
  • Loading branch information
qbarrand authored Oct 10, 2023
1 parent 3f05a76 commit 6b25d47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci/module-kmm-ci-build-sign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
spec:
moduleLoader:
container:
inTreeModuleToRemove: dummy
modprobe:
moduleName: kmm_ci_a
modulesLoadingOrder: [kmm_ci_a, kmm_ci_b]
Expand Down
8 changes: 8 additions & 0 deletions ci/prow/e2e-incluster-build
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ make deploy
check_module_not_loaded "kmm_ci_a"
check_module_not_loaded "kmm_ci_b"

echo "Load the dummy module to be removed by the worker Pod before loading kmm-ci"
minikube ssh -- sudo modprobe dummy

echo "Verify that dummy is loaded"
minikube ssh -- lsmod | grep dummy

echo "Create a build secret..."
oc create secret generic build-secret --from-literal=ci-build-secret=super-secret-value

Expand All @@ -41,6 +47,8 @@ if ! minikube ssh -- lsmod | grep kmm_ci_b; then
return 1
fi

check_module_not_loaded "dummy"

echo "Remove the Module..."
kubectl delete -f ci/module-kmm-ci-build-sign.yaml --wait=false

Expand Down

0 comments on commit 6b25d47

Please sign in to comment.