-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathplans.fmf
More file actions
197 lines (178 loc) · 5.08 KB
/
plans.fmf
File metadata and controls
197 lines (178 loc) · 5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# https://tmt.readthedocs.io/en/stable/spec/plans.html
# https://tmt.readthedocs.io/en/stable/spec/plans.html#discover
discover:
how: fmf
# https://tmt.readthedocs.io/en/stable/spec/plans.html#prepare
prepare:
# https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository
- name: Disable testing-farm RHEL repos that may contain packages of
different versions than we want
when: distro == rhel
how: shell
script:
- |
for repo in testing-farm-tag-repository \
testing-farm-tag-repository-mainline \
testing-farm-tag-repository-z-stream; do
if dnf repolist --enabled -v | grep "^Repo-id\s*:\s*${repo}$"; then
dnf config-manager --set-disabled "${repo}"
fi;
done
- name: Enable testing-farm HighAvailability RHEL repo
when: distro == rhel
how: shell
script:
- |
if dnf repolist --disabled -v |
grep "^Repo-id\s*:\s*rhel-HighAvailability$"; then
dnf config-manager --set-enabled rhel-HighAvailability
fi
- name: Install common packages required for pcs
how: install
package:
- autoconf
- automake
- bash
- bzip2
- coreutils
- curl
- diffutils
- findutils
- gawk
- git
- make
- nss-tools
- pkgconf-pkg-config
- psmisc
- sed
- systemd
- tar
- time
- wget
- xz
# minimum python packages for pcs ./configure --enable-tests-only
- python3
- python3-pip
- python3-setuptools
- python3-wheel
# pcs python development requirements
- python3-cryptography
- python3-dateutil
- python3-devel
- python3-lxml
- python3-pip
- python3-pyparsing
- python3-tornado
# minimum ruby packages required for pcs ./configure --enable-tests-only
- ruby
- ruby-default-gems
- ruby-devel
- rubygem-bundler
- rubygem-io-console
- rubygem-json
- rubygem-power_assert
- rubygem-rexml
- rubygem-test-unit
- rubygems
# packages required for rpm build
- python3-setuptools_scm
- redhat-rpm-config
- rpm-build
- rpmdevtools
# packages required for pcs smoke test
- procps-ng
- shadow-utils
- util-linux
# packages required for tier1 pcs tests
- booth-site
- name: Install python3-pycurl system package
when: distro == fedora, rhel-9
how: install
package:
- python3-pycurl
- name: Install dependencies for bundled python3-pycurl
# autotools_rpmbuild also bundles pycurl on fedora
when: distro >= rhel-10, fedora
how: install
package:
- libcurl
- libcurl-devel
- openssl-devel
- name: Install dependencies for bundled rubygem-ffi
when: distro == rhel-9, rhel-10
how: install
package:
- gcc
- libffi-devel
- name: Install system rubygem packages
when: distro == fedora
how: install
package:
- rubygem-backports
- rubygem-childprocess
- rubygem-ethon
- rubygem-ffi
- rubygem-mustermann
- rubygem-nio4r
- rubygem-puma
- rubygem-rack-protection
- rubygem-rack-test
- rubygem-sinatra
- rubygem-tilt
# https://tmt.readthedocs.io/en/stable/spec/plans.html#execute
execute:
how: tmt
# https://tmt.readthedocs.io/en/stable/spec/plans.html#finish
finish:
- name: Gather some system info
how: shell
script:
- mkdir -p $TMT_PLAN_DATA/misc
- cp -r /etc/yum.repos.d/ $TMT_PLAN_DATA/misc/repo_files
- rpm -qa booth* corosync* fence-agents* pacemaker* resource-agents* sbd
| tee $TMT_PLAN_DATA/misc/cluster_packages.log
- dnf repolist --all | tee $TMT_PLAN_DATA/misc/repolist.log
- dnf list --installed | tee $TMT_PLAN_DATA/misc/installed.log
- rpm -qa | sort | tee $TMT_PLAN_DATA/misc/packages.log
- lscpu | tee $TMT_PLAN_DATA/misc/lscpu.log
- free -h | tee $TMT_PLAN_DATA/misc/free.log
- "ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts boot || : \
| tee $TMT_PLAN_DATA/misc/ausearch.log"
- sysctl crypto.fips_enabled | tee $TMT_PLAN_DATA/misc/fips_status.log
/linters:
summary: Run linters on pcs source code
discover+:
test:
- autotools$
- ruff_lint
- ruff_format_check
- mypy
- typos
/tier0:
summary: Run python and ruby tier0 tests
discover+:
test:
- autotools$
- python_tier0_tests
- ruby_tests
prepare+:
- name: Make sure that tier0 tests run without cluster packages installed
how: shell
script:
- dnf remove -y 'corosync*' 'pacemaker*' 'fence-agents*' \
'resource-agents*' 'booth*' 'sbd*'
/tier1:
summary: Run distcheck, rpm_build, tier1 and smoke tests
discover+:
test:
- autotools$
- distcheck
- autotools_rpmbuild
- rpm_build
- python_tier1_tests
- python_smoke_tests
provision+:
# https://tmt.readthedocs.io/en/stable/spec/hardware.html
hardware:
cpu:
processors: ">= 6"