Commit Graph

20 Commits

Author SHA1 Message Date
Tuomas Katila
e600fe9313 gpu: add support for the upcoming xe-driver
Plugin can support both i915 and xe drivers dynamically. But
having both drivers on same node with RM is not possible.

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2024-03-12 11:34:01 +02:00
Hyeongju Johannes Lee
9ccdbf3e05 e2e: add labels for device, resource, mode, app
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-09-21 13:03:50 -07:00
Tuomas Katila
4212145126 e2e: gpu: add a basic tensorflow test
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2023-08-22 15:51:35 +03:00
hj-johannes-lee
51c0032437 e2e,gpu: divide single It() to have multiple layers
Structure is as follows:
Describe("GPU plugin")
  BeforeEach("deploys plugin")
  Context("When device resources are available")
    BeforeEach("checks if resources are available")
    It("runs a pod requesting resources")

Signed-off-by: hj-johannes-lee <hyeongju.lee@intel.com>
2023-08-15 12:01:18 +03:00
hj-johannes-lee
42a735bf0d e2e,gpu: add log printing when device mounts not found in a demo pod
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-08-08 12:52:56 +03:00
Hyeongju Johannes Lee
00c666ac57 e2e: rename err to errFailedToLocateRepoFile to prevent linter error
when err is declared and any parts below that declare again,
linter complains as follows:
shadow: declaration of err shadows declaration at line 51

so, we name the first declaration as errFailedToLocateRepoFile so
that other 'err's do not need to be named all in different names
or can be declared as 'err' without linter error.

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-08-07 14:43:16 +03:00
Mikko Ylinen
e428cd6c19 go.mod: update to k8s 1.27.1 and controller runtime 0.15.x
k8s 1.27.x triggers build errors on controller-runtime 0.14.x
so we will need to update to 0.15.x at the same time.

Changes include:

* k8s e2e framework moved to use Ginkgo context so we add
  test context to all our test nodes.
* adapt Ginkgo parameter modifications.
* adapt SGX admissionwebhook to InjectDecoder removal.
* adapt deviceplugins and FPGA CRDs to controller-runtime
  API changes.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-05-09 14:49:24 +03:00
Hyeongju Johannes Lee
838bc39bc7
e2e: fix typos and minor grammar issues
finnish -> finish
check -> check if

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-12-13 11:23:21 +02:00
Mikko Ylinen
34d930a567 upgrade to k8s 1.26.0-rc.1 and controller-runtime@master
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-12-07 15:04:33 +02:00
Hyeongju Johannes Lee
3c8fe3adfa e2e: add securityContext check to see if rootfs is read-only
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-10-13 15:39:59 +03:00
Tuomas Katila
2fb11eccba e2e: Remove unnecessary namespace arguments from KubectlOrDie calls
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2022-08-31 17:09:47 +03:00
Mikko Ylinen
50b985dde5 bump go mod version to 1.18 and move to k8s.io v1.25.0-rc.0
the e2e framework in v1.25 also reguires us to move to gingko/v2
so make that change too.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-15 13:54:02 +03:00
Mikko Ylinen
8d20c62833 e2e: expect test workloads to finish successfully
WaitForFinish waits for pod to finish running, regardless of
success or failure. WaitForSuccess waits for pod to succeed
which is what we expect from our test workloads that try
to use the devices.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-05-19 14:14:11 +03:00
Mikko Ylinen
cbc521e505 move to k8s.io v1.24.0-rc.1
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-04-27 09:26:07 +03:00
Ukri Niemimuukko
5e3f26f25b add device check to gpu e2e test and e2e-gpu makefile target
Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
2022-01-11 17:56:42 +02:00
Ed Bartosh
cce590ee50 e2e: increase WaitForFinish timeout
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-10-21 09:22:04 +03:00
Ed Bartosh
a6078aa65d e2e: increase WaitForPodsWithLabelRunningReady timeout
Current timeout is too small and causes test failures
in CI environment.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-10-20 11:46:58 +03:00
Dmitry Rozhkov
5f0da56045 Upgrade to k8s v1.19.3 2020-11-10 16:09:20 +02:00
Dmitry Rozhkov
8fc187f4d8 move to k8s v1.18.2 release
Also fix the plugins and e2e tests
2020-04-17 12:40:18 +03:00
Dmitry Rozhkov
43af3a054b e2e test: reimplement with K8s testing framework
Also add a test for the QAT device plugin in kernel mode.

Contributes to #253
2020-02-13 14:51:44 +02:00