Skip to content

Conversation

glehmann
Copy link
Member

@glehmann glehmann commented Oct 2, 2025

Not sure if others should be covered as well.
I've removed the coalesce tests based on dom0, because they seemed redundant, but we could also keep them. Just let me know.

So we can use the easier to read `1GiB` size

Signed-off-by: Gaëtan Lehmann <[email protected]>
So we have something to write to. 1GiB seems small enough to not impact
performance or request all the resources

Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
@glehmann glehmann requested review from Wescoeur and Nambrok October 2, 2025 14:31
@glehmann glehmann changed the title Add coalesce integrity test on most SR types Add coalesce integrity tests on most SR types Oct 2, 2025


def install_randstream(vm: 'VM'):
vm.ssh("wget -nv https://github.com/xcp-ng/randstream/releases/download/0.3.1/randstream-0.3.1-x86_64-unknown-linux-musl.tar.gz -O - | tar -xzC /usr/bin/ ./randstream") # noqa: E501
Copy link
Member

@stormi stormi Oct 2, 2025

Choose a reason for hiding this comment

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

Something we should package instead? It's inside the VM

Copy link
Member Author

Choose a reason for hiding this comment

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

We could add it to the Alpine image, but it seems simpler this way

return self._type

def create_vdi(self, name_label: str, virtual_size: int = 64, image_format: Optional[str] = None) -> VDI:
def create_vdi(self, name_label: str, virtual_size: int | str = 64, image_format: Optional[str] = None) -> VDI:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to choose between int or string. String make sense with how you want to use it 1GiB, so we could replace the default value to be a string and check caller to change them to use a string.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would agree if create_vdi() wasn't used in some untyped code. For now, using it this way seems safer in order not to break existing code.

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.

3 participants