Skip to content

Commit

Permalink
tests: Don't over-provision test volume (from Incus) (#14154)
Browse files Browse the repository at this point in the history
Workaround our test failures related to
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2081231

Reverts #14146

This PR contains commits cherry-picked from
lxc/incus#1246
  • Loading branch information
tomponline committed Sep 25, 2024
2 parents ede7666 + 9411404 commit f9a9a97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,29 +230,13 @@ jobs:
go: ["1.22.x"]
suite: ["cluster", "standalone"]
backend: ["dir", "btrfs", "lvm", "zfs", "ceph", "random"]
event_name:
- ${{ github.event_name }}
include:
- go: stable
suite: cluster
backend: dir
- go: stable
suite: standalone
backend: dir
# FIXME: These exclusions must be removed when https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2081231 is fixed.
exclude:
- event_name: push
backend: ceph
- event_name: push
backend: lvm
- event_name: push
backend: random
- event_name: schedule
backend: ceph
- event_name: schedule
backend: lvm
- event_name: schedule
backend: random

steps:
- name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions test/suites/projects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ test_projects_usage() {
limits.cpu=1 \
limits.memory=512MiB \
limits.processes=20
lxc profile device set default root size=3GiB --project test-usage
lxc profile device set default root size=300MiB --project test-usage

# Spin up a container
deps/import-busybox --project test-usage --alias testimage
Expand All @@ -1108,7 +1108,7 @@ test_projects_usage() {

lxc project info test-usage --format csv | grep -q "CONTAINERS,UNLIMITED,1"
lxc project info test-usage --format csv | grep -q "CPU,5,1"
lxc project info test-usage --format csv | grep -q "DISK,10.00GiB,3.00GiB"
lxc project info test-usage --format csv | grep -q "DISK,10.00GiB,300.00MiB"
lxc project info test-usage --format csv | grep -q "INSTANCES,UNLIMITED,1"
lxc project info test-usage --format csv | grep -q "MEMORY,1.00GiB,512.00MiB"
lxc project info test-usage --format csv | grep -q "NETWORKS,3,0"
Expand All @@ -1133,7 +1133,7 @@ EOF
limits.cpu=1 \
limits.memory=512MiB

lxc profile device set default root size=3GiB --project test-project-yaml
lxc profile device set default root size=300MiB --project test-project-yaml
deps/import-busybox --project test-project-yaml --alias testimage

lxc init testimage c1 --project test-project-yaml
Expand Down

0 comments on commit f9a9a97

Please sign in to comment.