Skip to content

Commit 6c1640c

Browse files
committed
jobs/bodhi-trigger: read SRPM list from bodhi-testing.yaml
Add a new `bodhi-testing.yaml` file containing the list of SRPMs to test. We'll augment the schema of this file later on to allow e.g. running only a subset of tests. This will also in the short-term serve as the source of truth for which packages are gated on these tests or not. Long-term, we may use this file slightly differently, though likely the tests to run per component will still live there (including the default tests to run on any unlisted component). While we're here, add a few more core packages to the list.
1 parent 7cd7fe8 commit 6c1640c

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed

bodhi-testing.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
gated-srpms:
2+
- name: console-login-helper-messages
3+
- name: ignition
4+
- name: ostree
5+
- name: rpm-ostree
6+
- name: rust-afterburn
7+
- name: rust-bootupd
8+
- name: rust-coreos-installer
9+
- name: rust-zincati
10+
srpms:
11+
- name: bubblewrap
12+
- name: containers-common
13+
- name: container-selinux
14+
- name: coreutils
15+
- name: dbus
16+
- name: dracut
17+
- name: glib2
18+
- name: glibc
19+
- name: grub2
20+
- name: kernel
21+
- name: kexec-tools
22+
- name: NetworkManager
23+
- name: openssh
24+
- name: moby-engine
25+
- name: nmstate
26+
- name: nss-altfiles
27+
- name: podman
28+
- name: selinux-policy
29+
- name: systemd
30+
- name: toolbox
31+
- name: util-linux

jobs/bodhi-trigger.Jenkinsfile

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,16 @@
44
// - https://github.com/json-path/JsonPath
55
// - https://sumiya.page/jpath.html
66

7-
// XXX: we should move this list to a separate YAML file for knob extensibility
8-
// in the future (for e.g. which tests to run for each)
9-
// XXX: one idea is to trigger for all packages in FCOS and only run `basic` by
10-
// default, and only run more tests for a given subset like the below
11-
def srpms = [
12-
'container-selinux',
13-
'glibc',
14-
'grub2',
15-
'ignition',
16-
'kernel',
17-
'kexec-tools',
18-
'NetworkManager',
19-
'ostree',
20-
'podman',
21-
'rpm-ostree',
22-
'rust-afterburn',
23-
'rust-coreos-installer',
24-
'rust-zincati',
25-
'selinux-policy',
26-
'systemd'
27-
]
7+
// For now, we literally list all the RPMs to trigger on in the JMS selector
8+
// below. This doesn't scale though. In the future, we'll either use e.g.
9+
// `critpath_groups` or have a separate listener that triggers this job.
10+
def srpms
2811

2912
node {
13+
checkout scm
14+
def testfile = readYaml(file: "bodhi-testing.yaml")
15+
srpms = (testfile["gated-srpms"] + testfile["srpms"]).collect {it -> it["name"]})
16+
3017
// XXX: we should drain what we need of pipeutils into coreos-ci-lib
3118
shwrap("rm -rf pipe && git clone https://github.com/coreos/fedora-coreos-pipeline --depth=1 pipe")
3219
// these are script global vars

0 commit comments

Comments
 (0)