Skip to content

test(vm): add virtualization-dra precheck#2425

Merged
yaroslavborbat merged 1 commit into
mainfrom
test/add-dra-precheck
Jun 2, 2026
Merged

test(vm): add virtualization-dra precheck#2425
yaroslavborbat merged 1 commit into
mainfrom
test/add-dra-precheck

Conversation

@yaroslavborbat
Copy link
Copy Markdown
Member

@yaroslavborbat yaroslavborbat commented Jun 1, 2026

Description

Added a precheck that verifies the virtualization-dra DaemonSet is running before executing USB-related e2e tests.

Why do we need it, and what problem does it solve?

USB precheck tests require DRA support to be enabled in the cluster. Without this check, tests could fail with misleading errors when virtualization-dra is not deployed.

What is the expected result?

  1. Run e2e tests with USB precheck enabled.
  2. If virtualization-dra DaemonSet is absent, the precheck fails with a clear error message prompting to configure DRA support.
  3. If DaemonSet is present, the precheck passes and tests proceed normally.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: test
type: chore
summary: Add virtualization-dra precheck to verify DaemonSet is running before USB e2e tests.
impact_level: low

@yaroslavborbat yaroslavborbat requested a review from Isteb4k as a code owner June 1, 2026 12:46
@yaroslavborbat yaroslavborbat added this to the v1.9.0 milestone Jun 1, 2026
@yaroslavborbat yaroslavborbat force-pushed the test/add-dra-precheck branch from 40e8031 to eb89eb6 Compare June 1, 2026 13:53
Comment thread test/e2e/internal/precheck/usb.go Outdated
Comment thread test/e2e/internal/precheck/usb.go Outdated
@yaroslavborbat yaroslavborbat force-pushed the test/add-dra-precheck branch from 6d7bde9 to 26d9941 Compare June 2, 2026 07:44
Co-authored-by: Roman Sysoev <36233932+hardcoretime@users.noreply.github.com>
Signed-off-by: Yaroslav Borbat <86148689+yaroslavborbat@users.noreply.github.com>
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
@yaroslavborbat yaroslavborbat merged commit 50209eb into main Jun 2, 2026
29 of 30 checks passed
@yaroslavborbat yaroslavborbat deleted the test/add-dra-precheck branch June 2, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants