Skip to content

Add component tests for controller logic - #81

Draft
lforchini wants to merge 2 commits into
create-comptest-fixturesfrom
test/ctest-controller
Draft

lforchini wants to merge 2 commits into
create-comptest-fixturesfrom
test/ctest-controller

Conversation

@lforchini

Copy link
Copy Markdown
Collaborator

Add component tests which ensure the controller enforces configured
limits such as vCPU cap and thread bounds. Also include the fixtures
necessary for these tests.

Signed-off-by: Leonardo Forchini leonardo.forchini@nutanix.com


Stack created with GitHub Stacks CLI • Give Feedback 💬

@lforchini
lforchini added this pull request to stack #83 October 1, 2026 14:37
@lforchini
lforchini force-pushed the test/ctest-controller branch from 8423944 to 5536c47 Compare October 1, 2026 14:48
@lforchini
lforchini removed this pull request from stack #83 October 1, 2026 14:50
@lforchini
lforchini added this pull request to stack #84 October 1, 2026 14:50
@lforchini
lforchini force-pushed the test/ctest-controller branch from 5536c47 to 3b44bfe Compare October 1, 2026 15:00
@lforchini
lforchini force-pushed the test/ctest-controller branch from 3b44bfe to 2c4de8d Compare October 5, 2026 08:10
@lforchini
lforchini removed this pull request from stack #84 October 5, 2026 08:12
@lforchini
lforchini force-pushed the test/ctest-controller branch from 2c4de8d to 229632d Compare October 5, 2026 08:15
@lforchini
lforchini added this pull request to stack #87 October 5, 2026 08:16
@lforchini
lforchini force-pushed the test/ctest-controller branch 2 times, most recently from 1f746b3 to 50086c5 Compare October 5, 2026 08:55
@lforchini
lforchini marked this pull request as ready for review October 5, 2026 08:55
@lforchini
lforchini force-pushed the test/ctest-controller branch from 50086c5 to f78d872 Compare October 5, 2026 09:16
@lforchini
lforchini force-pushed the test/ctest-controller branch from f78d872 to 173188f Compare October 8, 2026 07:30
@lforchini
lforchini removed this pull request from stack #87 October 8, 2026 15:22
@lforchini
lforchini force-pushed the test/ctest-controller branch from 173188f to 8aeacce Compare October 8, 2026 15:23
@lforchini
lforchini added this pull request to stack #88 October 8, 2026 15:23
@lforchini
lforchini removed this pull request from stack #88 October 13, 2026 12:32
@lforchini
lforchini force-pushed the test/ctest-controller branch from 8aeacce to 8174468 Compare October 13, 2026 12:43
@lforchini
lforchini added this pull request to stack #152 October 23, 2026 08:22
@lforchini
lforchini force-pushed the test/ctest-controller branch from e04d4bd to 3c8cc6e Compare October 23, 2026 08:24
@lforchini
lforchini force-pushed the test/ctest-controller branch from 3c8cc6e to 6d16886 Compare October 23, 2026 08:39
@lforchini
lforchini removed this pull request from stack #152 October 23, 2026 08:44
@lforchini
lforchini added this pull request to stack #157 October 23, 2026 08:45
@lforchini
lforchini removed this pull request from stack #157 October 23, 2026 08:49
@lforchini
lforchini changed the base branch from test/per-test-dbus to create-comptest-fixtures October 23, 2026 08:50
@lforchini
lforchini added this pull request to stack #159 October 23, 2026 08:50
@lforchini
lforchini force-pushed the test/ctest-controller branch from 6d16886 to c937498 Compare October 29, 2026 14:29
@lforchini
lforchini removed this pull request from stack #159 October 30, 2026 10:48
@lforchini
lforchini force-pushed the test/ctest-controller branch from c937498 to dfb942d Compare October 30, 2026 10:49
@lforchini
lforchini added this pull request to stack #173 October 30, 2026 10:50
@lforchini
lforchini force-pushed the test/ctest-controller branch 2 times, most recently from 8bdb932 to d5e4999 Compare October 30, 2026 11:22
@lforchini
lforchini force-pushed the test/ctest-controller branch from d5e4999 to afc325d Compare October 30, 2026 11:43
@lforchini
lforchini removed this pull request from stack #173 November 5, 2026 15:02
@lforchini
lforchini force-pushed the test/ctest-controller branch from afc325d to dcc6ba4 Compare November 5, 2026 15:03
@lforchini
lforchini added this pull request to stack #176 November 5, 2026 15:03
@lforchini
lforchini removed this pull request from stack #176 November 5, 2026 15:09
Add component tests for the controller. Most tests configure the
controller, poll for a condition, then assert side effects.

Also have the component tests run on `make pre-push`.

AI-Generated: Most of it
Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
Use pytest-xdist to use all available logical CPUs when running
component tests. Since many tests wait on actions by the controller and
the tests are independent, this is an effective way of reducing total
running time.

Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
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