Skip to content

Port more Jenkins tests to Github Actions (VM) - #3814

Open
stgraber wants to merge 19 commits into
lxc:mainfrom
stgraber:tests
Open

Port more Jenkins tests to Github Actions (VM)#3814
stgraber wants to merge 19 commits into
lxc:mainfrom
stgraber:tests

Conversation

@stgraber

Copy link
Copy Markdown
Member

No description provided.

@stgraber
stgraber force-pushed the tests branch 3 times, most recently from 8e3893b to ae429bc Compare August 11, 2026 04:43

@bensmrs bensmrs 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.

2 nits that repeat throughout the PR

Comment thread test/suites/guestapi_vm.sh Outdated
Comment thread test/suites/storage_vm.sh Outdated
@stgraber
stgraber force-pushed the tests branch 24 times, most recently from 82baea3 to a490de7 Compare August 12, 2026 02:42
This uses our warning filter to silence expected double-close,
effectively all code paths that have an existing close in the success path.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This moves some logic around so the close logic works the same way in
all cases.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
When the last server in a cluster shuts down, it can get stuck due to a
pile up of pending events being stuck on a lock held by a sender trying
to access the database, in turn holding up daemon shutdown.

It's always a bit of a messy situation when shutting down without a
functional database so this really is just to allow things to keep
moving forward and not be stuck behind a lock. The events themselves
will still fail to send and the DB transactions will still be stuck in
retry, but that doesn't matter as the process is about to exit.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Pull a recent go-cowsql panic fix.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
DRBD fails to bring up volumes smaller than 4MiB, round up small
volumes such as ISO imports.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
The backing storage rounds volumes up, causing published images to be
slightly larger than the volume size they came from and so unusable
with the same size setting.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Newer LVM fails to resize snapshots already at full CoW capacity,
breaking snapshot restore on non-thinpool pools.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Entries were written in random map order, breaking anything parsing
qemu.conf and making restarts harder to compare.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Already covered by the standalone_storage suite runs.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Some operations like whole VM exports can take more than the default
two minutes on slower systems.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-cpu-vm.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-guestapi-vm.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-network-routed.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-storage-disks-vm.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-storage-vm.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Ported from lxc-ci's bin/test-incus-storage-volumes-vm.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Runs on self-hosted amd64 runners with nested virtualization support.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>

@bensmrs bensmrs 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.

Just one nit on copy but otherwise LGTM

Comment on lines +171 to +173
for _, listener := range s.listeners {
listeners = append(listeners, listener)
}

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.

Why didn’t you use copy?

Comment on lines +939 to +946
// LINSTOR cannot resize volume definitions with an exact size, so clear the
// property (it cannot be re-enabled while resources are deployed).
err = linstor.Client.ResourceDefinitions.Modify(context.TODO(), resourceDefinition.Name, linstorClient.GenericPropsModify{
DeleteProps: []string{"DrbdOptions/ExactSize"},
})
if err != nil {
return fmt.Errorf("Unable to remove the exact size property: %w", err)
}

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.

Wow that one feels weird :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, that one is a bit of a whacky LINSTOR thing... That property can't be set on resize and can't be set after a resize... So we effectively have to lose the nice accurate size reporting if we go through a resize...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants