Skip to content

Add a fake backend for component tests - #78

Open
lforchini wants to merge 2 commits into
create-comptest-utilsfrom
test/fake-backend
Open

lforchini wants to merge 2 commits into
create-comptest-utilsfrom
test/fake-backend

Conversation

@lforchini

Copy link
Copy Markdown
Collaborator

The harness needs a VM the daemon can discover and scale without
libvirt. JSON files carry the snapshot, and set_thread_count records
each target so tests can assert behavior.

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 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 removed this pull request from stack #84 October 5, 2026 08:12
@lforchini
lforchini changed the base branch from test/refactor to test/remove-to-be-component October 5, 2026 08:16
@lforchini
lforchini added this pull request to stack #87 October 5, 2026 08:16
@lforchini
lforchini marked this pull request as ready for review October 5, 2026 08:28
@lforchini
lforchini force-pushed the test/fake-backend branch 2 times, most recently from 413624e to 707c7bd Compare October 8, 2026 07:30
@lforchini
lforchini removed this pull request from stack #87 October 8, 2026 15:22
@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 added this pull request to stack #95 October 13, 2026 12:44
@lforchini
lforchini force-pushed the test/fake-backend branch 2 times, most recently from 5a33cd6 to ca38ad2 Compare October 13, 2026 13:29

@tmakatos tmakatos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it feels like this commit is in the wrong place, it should be right before (or even after) the component test harness commit.

Comment thread src/backends/fake/mod.rs Outdated

//! File-backed backend for component tests.
//!
//! Each VM is one JSON file in `state_dir`. The pytest harness updates that

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit thin, could you expand a bit?

@lforchini
lforchini removed this pull request from stack #95 October 21, 2026 08:27
@lforchini
lforchini added this pull request to stack #152 October 23, 2026 08:22
The harness needs a VM the daemon can discover and scale without
libvirt. JSON files carry the snapshot, and set_thread_count records
each target so tests can assert behavior.

Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
AI-Generated: Most of it
Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
@lforchini
lforchini removed this pull request from stack #152 October 23, 2026 08:44
@lforchini
lforchini changed the base branch from test/remove-to-be-component to create-comptest-utils 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 added this pull request to stack #159 October 23, 2026 08:50
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