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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
################################################################################
### E N V I R O N M E N T ###
################################################################################
- type: "environment"
spec-files:
- "specifications/trending/data_sets.yaml"
- "specifications/trending/layouts.yaml"
- "specifications/trending/elements.yaml"
paths:
# Top level directories:
## Working directory
DIR[WORKING]: "_tmp"
## Build directories
DIR[BUILD,HTML]: "_build"
## Static .rst files
DIR[RST]: "../../../docs/cpta"
# Static html content
DIR[STATIC]: "{DIR[BUILD,HTML]}/_static"
DIR[STATIC,VPP]: "{DIR[STATIC]}/vpp"
DIR[STATIC,ARCH]: "{DIR[STATIC]}/archive"
# Working directories
## Input data files (.zip, .xml)
DIR[WORKING,DATA]: "{DIR[WORKING]}/data"
## Static source files from git
DIR[WORKING,SRC]: "{DIR[WORKING]}/src"
DIR[WORKING,SRC,STATIC]: "{DIR[WORKING,SRC]}/_static"
# .css patch file
DIR[CSS_PATCH_FILE]: "{DIR[STATIC]}/theme_overrides.css"
DIR[CSS_PATCH_FILE2]: "{DIR[WORKING,SRC,STATIC]}/theme_overrides.css"
urls:
URL[JENKINS,CSIT]: "https://jenkins.fd.io/view/csit/job"
make-dirs:
# List the directories which are created while preparing the environment.
# All directories MUST be defined in "paths" section.
- "DIR[WORKING,DATA]"
- "DIR[WORKING,SRC,STATIC]"
- "DIR[BUILD,HTML]"
- "DIR[STATIC,VPP]"
- "DIR[STATIC,ARCH]"
build-dirs:
# List the directories where the results (build) is stored.
# All directories MUST be defined in "paths" section.
- "DIR[BUILD,HTML]"
testbeds:
"10.30.51.45": "LF-2n-SKX-21"
"10.30.51.53": "LF-2n-SKX-22"
"10.30.51.55": "LF-2n-SKX-23"
"10.30.51.57": "LF-2n-SKX-24"
"10.32.8.19": "LF-2n-CLX-27"
"10.32.8.21": "LF-2n-CLX-28"
"10.32.8.23": "LF-2n-CLX-29"
"10.30.51.48": "LF-3n-SKX-31"
"10.30.51.60": "LF-3n-SKX-32"
"10.30.51.49": "LF-3n-TSH-33"
"10.30.51.49": "LF-2n-TX2-34"
"10.32.8.25": "LF-2n-ZN2-210"
"10.32.8.10": "LF-DNV"
# Data sources are used in this order:
data-sources:
# XML
- type: "xml"
url: "https://s3-logs.fd.io/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output_info.xml.gz"
file-format: ".gz"
enabled: True
- type: "xml"
url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output_info.xml.gz"
file-format: ".gz"
enabled: True
- type: "xml"
url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
path: "{job}/{build}/archives/{filename}"
file-name: "output_info.xml.gz"
file-format: ".gz"
enabled: True
# To be deprecated soon:
- type: "xml"
url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output_info.xml.gz"
file-format: ".gz"
enabled: True
# Deprecated:
- type: "xml"
url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
path: "{job}/{build}/archives/{filename}"
file-name: "output_info.xml.gz"
file-format: ".gz"
enabled: False
- type: "xml"
url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
path: "{job}/{build}/archives/{filename}"
file-name: "output.xml.gz"
file-format: ".gz"
enabled: False
- type: "xml"
url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output.xml.gz"
file-format: ".gz"
enabled: False
- type: "xml"
url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
path: "{job}/{build}/archives/{filename}"
file-name: "output.xml.gz"
file-format: ".gz"
enabled: False
- type: "xml"
url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output.xml.gz"
file-format: ".gz"
enabled: False
# JSON from S3
- type: "json"
url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
path: "{job}/{build}/{filename}"
file-name: "output.json.gz"
file-format: ".gz"
enabled: False
archive-inputs: False
reverse-input: True # Needed for trending, not important for the report
# Number of days from now to the past. Only files generated in this
# time period are used.
# Only for trending
time-period: 180
mapping-file: ""
ignore-list: ""
alerting:
alerts:
# As Jenkins slave is not configured to send emails, this is now only as
# a working example:
#
# # Send the list of failed tests vie email.
# # Pre-requisites:
# # - SMTP server is installed on the Jenkins slave
# # - SMTP server is configured to send emails. Default configuration is
# # sufficient.
# email-failed-tests:
# # Title is used in logs and also as the email subject.
# title: "Trending: Failed Tests"
# # Type of alert.
# type: "failed-tests"
# # How to send the alert. The used way must be specified in the
# # configuration part.
# way: "email"
# # Data to be included in the alert.
# # Here is used the list of tables generated by the function
# # "table_failed_tests_html".
# include:
# - "failed-tests-3n-skx"
# - "failed-tests-2n-skx"
# # This url is used in the tables instead of the original one. The aim
# # is to make the links usable also from the email.
# url: "https://docs.fd.io/csit/master/trending/trending"
# Jenkins job sends the email with failed tests.
# Pre-requisites:
# - Jenkins job is configured to send emails in "Post-build Actions" -->
# "Editable Email Notification".
jenkins-send-failed-tests:
title: "Trending: Failed Tests"
type: "failed-tests"
way: "jenkins"
include:
- "last-failed-tests-vpp-2n-skx-mrr"
- "last-failed-tests-vpp-3n-skx-mrr"
- "last-failed-tests-vpp-2n-clx-mrr"
- "last-failed-tests-vpp-2n-zn2-mrr"
- "last-failed-tests-vpp-3n-tsh-mrr"
- "last-failed-tests-vpp-2n-tx2-mrr"
- "last-failed-tests-vpp-2n-dnv-mrr"
- "last-failed-tests-vpp-3n-dnv-mrr"
- "last-failed-tests-dpdk-2n-skx-mrr"
- "last-failed-tests-dpdk-3n-skx-mrr"
- "last-failed-tests-dpdk-2n-clx-mrr"
- "last-failed-tests-dpdk-3n-tsh-mrr"
- "last-failed-tests-dpdk-2n-tx2-mrr"
- "last-failed-tests-vpp-2n-skx-ndrpdr"
- "last-failed-tests-vpp-3n-skx-ndrpdr"
- "last-failed-tests-vpp-2n-clx-ndrpdr"
urls:
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-clx"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-zn2"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-tsh"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-tx2"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-dnv"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-dnv"
- "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-clx"
- "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-tsh"
- "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-tx2"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-3n-skx"
- "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-clx"
url-details: "https://docs.fd.io/csit/master/trending/introduction/failures.html"
configurations:
# Configuration of the email notifications.
email:
# SMTP server
server: "localhost"
# List of recipients.
address-to:
- "csit-report@lists.fd.io"
# Sender
address-from: "testuser@testserver.com"
# Configuration of notifications sent by Jenkins.
jenkins:
# The directory in the workspace where the generated data is stored and
# then read by Jenkins job.
output-dir: "_build/_static/vpp"
# The name of the output files. ASCII text and HTML formats are
# generated.
output-file: "trending-failed-tests"
# If defined, all output files are zipped into this file.
zip-output: "failed-tests.tar.gz"
################################################################################
### S T A T I C ###
################################################################################
- type: "static"
src-path: "{DIR[RST]}"
dst-path: "{DIR[WORKING,SRC]}"
################################################################################
### O U T P U T ###
################################################################################
- type: "output"
arch-file-format:
- ".gz"
- ".zip"
output: "trending"
format:
html:
- full
|