Skip to content

Commit

Permalink
jenkins: Re-add network and storage tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 27, 2023
1 parent e7b9a55 commit 945a259
Show file tree
Hide file tree
Showing 8 changed files with 324 additions and 0 deletions.
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-network-bridge-firewall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-network-bridge-firewall"
concurrent: false
description: Tests bridge firewall drivers
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run tags=virtual jammy ga-22.04 default bin/test-incus-network-bridge-firewall
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-network-ovn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-network-ovn"
concurrent: false
description: Tests OVN integration with Incus
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run tags=virtual focal ga-20.04 default bin/test-incus-network-ovn
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-network-routed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-network-routed"
concurrent: false
description: Tests routed NIC integration with Incus
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run tags=physical jammy ga-22.04 default bin/test-incus-network-routed
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-network-sriov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-network-sriov"
concurrent: false
description: Tests SR-IOV for containers and VMs
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run name=lantea jammy ga-22.04 iommu bin/test-incus-network-sriov
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-network.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-network"
concurrent: false
description: Tests bridged, macvlan, physical and sriov NICs for containers and VMs
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run name=lantea jammy ga-22.04 iommu bin/test-incus-network
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
36 changes: 36 additions & 0 deletions jenkins/jobs/incus-test-storage-disks-vm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- job:
name: "incus-test-storage-disks-vm"
concurrent: false
description: Run VM storage disk tests on physical hardware.
node: master
project-type: freestyle

builders:
- shell: |-
cd /lxc-ci
exec /lxc-ci/bin/maas-run tags=physical jammy ga-22.04 default bin/test-incus-storage-disks-vm
properties:
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
54 changes: 54 additions & 0 deletions jenkins/jobs/incus-test-storage-vm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
- job:
name: "incus-test-storage-vm"
concurrent: false
description: Run VM storage tests on physical hardware.
node: master
project-type: matrix

axes:
- axis:
name: backend
type: user-defined
values:
- dir
- zfs
- btrfs
- lvm
- lvm-thin

- axis:
name: restrict
type: slave
values:
- master

builders:
- shell: |-
set -e
cd /lxc-ci
sudo -E /lxc-ci/bin/maas-run tags=physical jammy ga-22.04 default bin/test-incus-storage-vm "${backend}"
properties:
- build-discarder:
num-to-keep: 30

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css
54 changes: 54 additions & 0 deletions jenkins/jobs/incus-test-storage-volumes-vm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
- job:
name: "incus-test-storage-volumes-vm"
concurrent: false
description: Run VM storage volume tests on physical hardware.
node: master
project-type: matrix

axes:
- axis:
name: backend
type: user-defined
values:
- dir
- zfs
- btrfs
- lvm
- lvm-thin

- axis:
name: restrict
type: slave
values:
- master

builders:
- shell: |-
set -e
cd /lxc-ci
sudo -E /lxc-ci/bin/maas-run tags=physical jammy ga-22.04 default bin/test-incus-storage-volumes-vm "${backend}"
properties:
- build-discarder:
num-to-keep: 30

- raw:
!include: ../includes/webhook.yaml.inc

publishers:
- workspace-cleanup:
fail-build: false

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'

wrappers:
- ansicolor:
colormap: css

0 comments on commit 945a259

Please sign in to comment.