Repository navigation
test(e2e): add a GPUClass suite on a fake extended resource - #5051
Open
Aleksei Sviridkin (lexfrei) wants to merge 2 commits into
Open
Aleksei Sviridkin (lexfrei) wants to merge 2 commits into
Aleksei Sviridkin (lexfrei) wants to merge 2 commits into
Conversation
Aleksei Sviridkin (lexfrei)
requested review from
IvanHunters,
Andrei Kvapil (kvaps),
Timofei Larkin (lllamnyp) and
myasnikovdaniil
as code owners
October 22, 2026 08:55
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
2 tasks done
Aleksei Sviridkin (lexfrei)
force-pushed
the
feat/gpudevice-webhooks-pr
branch
from
October 26, 2026 10:47
0c18c86 to
a283579
Compare
Aleksei Sviridkin (lexfrei)
force-pushed
the
test/gpudevice-e2e
branch
from
October 26, 2026 12:33
d2aa5f6 to
da5e9f9
Compare
12 tasks
Aleksei Sviridkin (lexfrei)
force-pushed
the
feat/gpudevice-webhooks-pr
branch
from
October 27, 2026 07:35
a283579 to
57f709d
Compare
Aleksei Sviridkin (lexfrei)
force-pushed
the
test/gpudevice-e2e
branch
from
October 27, 2026 07:36
da5e9f9 to
e894a26
Compare
1 of 12 tasks
Aleksei Sviridkin (lexfrei)
force-pushed
the
feat/gpudevice-webhooks-pr
branch
from
November 3, 2026 12:08
57f709d to
74847c8
Compare
GPU class admission needs the GPU-for-VMs variant and a permitted resource name. Enable the optional operator when the install selection keeps it and permit a fake external resource for GPU-free CI. Validated with 13 platform-manifest Bats tests, including an install selection that drops the operator. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <[email protected]>
CI has no GPU device plugin. Check class budgets at application writes, class expansion at VMI admission and usage in the launcher Workload without claiming a booted guest or a synced VMI. Populate the blank disk before choosing a compatible GPU node: a local WFFC volume bound elsewhere leaves the launcher unschedulable. Validated offline with 133 Bats tests and 137 assertion/script/selector mutations, including refusal paths. Live controller and scheduler checks remain unproven. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <[email protected]>
Aleksei Sviridkin (lexfrei)
force-pushed
the
test/gpudevice-e2e
branch
from
November 3, 2026 14:43
e894a26 to
593c10e
Compare
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the step-1 test coverage of cozystack/community#99 at 30da976.
What this PR does
Adds a GPUClass suite for CI without GPUs. It checks declared VM and worker-pool budgets, vGPU entitlement refusal, class-to-VMI expansion, launcher tolerations and scheduling, and GPU usage in the launcher's existing Workload. The fake resource is advertised only after the blank disk is populated, on a node compatible with its PV affinity.
Offline lint, Bats tests with stubs, and assertion mutations check the test predicates and selectors. They do not exercise live controller, admission or scheduler behaviour. A full live E2E run remains required. There is no GPU device plugin in CI, so this suite does not prove device allocation, VMI sync, guest boot or guest drivers.
Screenshots
Not applicable; no UI changes.
Downstream repositories
The diff changes only the E2E install, suite and selectors, not a shipped API, package or developer-tooling contract.
Release note