Skip to content

Commit 9bd3975

Browse files
tkatilauniemimu
authored andcommitted
e2e: gpu: add levelzero deployment test
Signed-off-by: Tuomas Katila <[email protected]>
1 parent fc2dce5 commit 9bd3975

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/lib-e2e.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
- intel-iaa-plugin
5656
- crypto-perf
5757
- intel-gpu-plugin
58+
- intel-gpu-levelzero
5859
- intel-sgx-plugin
5960
- intel-sgx-initcontainer
6061
- intel-sgx-admissionwebhook

test/e2e/gpu/gpu.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ import (
3838
const (
3939
kustomizationYaml = "deployments/gpu_plugin/kustomization.yaml"
4040
monitoringYaml = "deployments/gpu_plugin/overlays/monitoring_shared-dev_nfd/kustomization.yaml"
41-
rmEnabledYaml = "deployments/gpu_plugin/overlays/fractional_resources//kustomization.yaml"
41+
rmEnabledYaml = "deployments/gpu_plugin/overlays/fractional_resources/kustomization.yaml"
42+
healthMgmtYaml = "deployments/gpu_plugin/overlays/health/kustomization.yaml"
4243
nfdRulesYaml = "deployments/nfd/overlays/node-feature-rules/kustomization.yaml"
4344
containerName = "testcontainer"
4445
tfKustomizationYaml = "deployments/gpu_tensorflow_test/kustomization.yaml"
@@ -98,6 +99,11 @@ func describe() {
9899
framework.Failf("unable to locate %q: %v", rmEnabledYaml, errFailedToLocateRepoFile)
99100
}
100101

102+
healthMgmtPath, errFailedToLocateRepoFile := utils.LocateRepoFile(healthMgmtYaml)
103+
if errFailedToLocateRepoFile != nil {
104+
framework.Failf("unable to locate %q: %v", healthMgmtYaml, errFailedToLocateRepoFile)
105+
}
106+
101107
ginkgo.Context("When GPU plugin is deployed [Resource:i915]", func() {
102108
ginkgo.AfterEach(func(ctx context.Context) {
103109
framework.Logf("Removing gpu-plugin manually")
@@ -194,6 +200,12 @@ func describe() {
194200
})
195201
})
196202

203+
ginkgo.Context("When [Deployment:healthManagement] deployment is applied [Resource:i915]", func() {
204+
ginkgo.It("check if i915 resources is available", func(ctx context.Context) {
205+
createPluginAndVerifyExistence(f, ctx, healthMgmtPath, "gpu.intel.com/i915")
206+
})
207+
})
208+
197209
ginkgo.Context("When [Deployment:resourceManager] deployment is applied [Resource:i915]", func() {
198210
ginkgo.It("check if i915 resources is available", func(ctx context.Context) {
199211
e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(nfdRulesPath))

0 commit comments

Comments
 (0)