mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
e2e: add compress-perf
still maintain ci/cd skip test for compress-perf Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
This commit is contained in:
parent
2af37fd4cb
commit
696877af03
3
.github/workflows/lib-e2e.yaml
vendored
3
.github/workflows/lib-e2e.yaml
vendored
@ -28,7 +28,7 @@ jobs:
|
||||
- accel-config-demo
|
||||
- intel-deviceplugin-operator
|
||||
- name: e2e-qat-gnrd
|
||||
targetjob: e2e-qat FOCUS="Mode:dpdk.*Resource:(cy|dc)" SKIP=App:crypto-perf
|
||||
targetjob: e2e-qat FOCUS="Mode:dpdk.*Resource:(cy|dc)" SKIP="App:(crypto-perf|compress-perf)"
|
||||
runner: simics-gnrd
|
||||
images:
|
||||
- intel-qat-plugin
|
||||
@ -49,6 +49,7 @@ jobs:
|
||||
- intel-fpga-admissionwebhook
|
||||
- opae-nlb-demo
|
||||
- name: e2e-spr
|
||||
targetjob: e2e-spr SKIP="App:compress-perf"
|
||||
runner: spr
|
||||
images:
|
||||
- intel-qat-plugin
|
||||
|
2
DEVEL.md
2
DEVEL.md
@ -217,7 +217,7 @@ go test -v ./test/e2e/... -args -ginkgo.focus <labels in regex> -ginkgo.skip <la
|
||||
| `fpga` | `af`, `region` | | `opae-nlb-demo` |
|
||||
| `gpu` |- | `i915` | `busybox`, `tensorflow` |
|
||||
| `iaa` |- | `dedicated` | `accel-config` |
|
||||
| `qat` | `dpdk` | `dc` | `openssl` |
|
||||
| `qat` | `dpdk` | `dc` | `openssl`, `compress-perf` |
|
||||
| `qat` | `dpdk` | `cy` | `openssl`, `crypto-perf` |
|
||||
| `qat` | `kernel` | `cy1_dc0` | `busybox` |
|
||||
| `sgx` |- | | `sgx-sdk-demo` |
|
||||
|
@ -37,6 +37,7 @@ import (
|
||||
const (
|
||||
qatPluginKustomizationYaml = "deployments/qat_plugin/overlays/e2e/kustomization.yaml"
|
||||
cryptoTestYaml = "deployments/qat_dpdk_app/crypto-perf/crypto-perf-dpdk-pod-requesting-qat-cy.yaml"
|
||||
compressTestYaml = "deployments/qat_dpdk_app/compress-perf/compress-perf-dpdk-pod-requesting-qat-dc.yaml"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -68,6 +69,11 @@ func describeQatDpdkPlugin() {
|
||||
framework.Failf("unable to locate %q: %v", cryptoTestYaml, errFailedToLocateRepoFile)
|
||||
}
|
||||
|
||||
compressTestYamlPath, errFailedToLocateRepoFile := utils.LocateRepoFile(compressTestYaml)
|
||||
if errFailedToLocateRepoFile != nil {
|
||||
framework.Failf("unable to locate %q: %v", compressTestYaml, errFailedToLocateRepoFile)
|
||||
}
|
||||
|
||||
var dpPodName string
|
||||
|
||||
var resourceName v1.ResourceName
|
||||
@ -146,6 +152,15 @@ func describeQatDpdkPlugin() {
|
||||
runCpaSampleCode(ctx, f, compression, resourceName)
|
||||
})
|
||||
|
||||
ginkgo.It("deploys a compress pod (dpdk compress-perf) requesting QAT resources [App:compress-perf]", func(ctx context.Context) {
|
||||
ginkgo.By("submitting a compress pod requesting QAT resources")
|
||||
e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(compressTestYamlPath))
|
||||
|
||||
ginkgo.By("waiting the compress pod to finish successfully")
|
||||
err := e2epod.WaitForPodSuccessInNamespaceTimeout(ctx, f.ClientSet, "qat-dpdk-test-compress-perf", f.Namespace.Name, 300*time.Second)
|
||||
gomega.Expect(err).To(gomega.BeNil(), utils.GetPodLogs(ctx, f, "qat-dpdk-test-compress-perf", "compress-perf"))
|
||||
})
|
||||
|
||||
ginkgo.When("there is no app to run [App:noapp]", func() {
|
||||
ginkgo.It("does nothing", func() {})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user