Skip to content

[waiting for sm feature] Create tests for vdi_revert on file based SRs - #627

Open
klmp200 wants to merge 2 commits into
masterfrom
vdi_revert
Open

[waiting for sm feature] Create tests for vdi_revert on file based SRs#627
klmp200 wants to merge 2 commits into
masterfrom
vdi_revert

Conversation

@klmp200

@klmp200 klmp200 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@klmp200
klmp200 force-pushed the vdi_revert branch 2 times, most recently from 4636534 to 90acbcb Compare July 10, 2026 09:33
Signed-off-by: Antoine Bartuccio <antoine.bartuccio@vates.tech>
@klmp200
klmp200 marked this pull request as ready for review July 10, 2026 12:07
@klmp200
klmp200 requested review from a team as code owners July 10, 2026 12:07
Comment thread lib/vm.py Outdated
Comment thread lib/vm.py Outdated
Comment thread lib/vm.py Outdated
Comment thread lib/vm.py Outdated
Comment thread lib/vm.py Outdated
Comment thread lib/vm.py Outdated
Signed-off-by: Antoine Bartuccio <antoine.bartuccio@vates.tech>

@Lankou66 Lankou66 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@pytest.mark.small_vm
@pytest.mark.big_vm
@pytest.mark.parametrize(
"fistpoint",

@gthvn1 gthvn1 Jul 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity, what does 'fistpoint' mean here? I have a few ideas, but they don't really seem to fit? Is it kind of a joke?
I saw it in the code as well that is why I'm curious here :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fistpoints are special files that are used to alter the behaviour of the smapi.
Basically, when present, they activates some sorts of breakpoints at specific points of the program.
We can trigger different kinds of callbacks, the default one is to pause for 10s. When combined with the exit_on_fistpoint fistpoint, it enforces a crash when reaching those breakpoints.

This is what makes the revert fail in controlled conditions, they are designed for end to end testing.

And yes, the name is funny, they exists since the first git commit of the sm project.

@stormi stormi changed the title Create tests for vdi_revert on file based SRs [waiting for feature merge first] Create tests for vdi_revert on file based SRs Aug 4, 2026
@stormi

stormi commented Aug 4, 2026

Copy link
Copy Markdown
Member

I updated the title to indicate that although the PR is reviewed, we're waiting for the feature to be available in XCP-ng.

@stormi stormi changed the title [waiting for feature merge first] Create tests for vdi_revert on file based SRs [waiting for sm feature] Create tests for vdi_revert on file based SRs Aug 4, 2026
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.

6 participants