16261fa1c7ffc83663c1ea138bd9851020f76541
[csit.git] / resources / tools / presentation / specifications / trending / environment.yaml
1 ################################################################################
2 ###                          E N V I R O N M E N T                           ###
3 ################################################################################
4
5 - type: "environment"
6
7   spec-files:
8     - "specifications/trending/data_sets.yaml"
9     - "specifications/trending/layouts.yaml"
10     - "specifications/trending/elements.yaml"
11
12   paths:
13     # Top level directories:
14     ## Working directory
15     DIR[WORKING]: "_tmp"
16     ## Build directories
17     DIR[BUILD,HTML]: "_build"
18     ## Static .rst files
19     DIR[RST]: "../../../docs/cpta"
20
21     # Static html content
22     DIR[STATIC]: "{DIR[BUILD,HTML]}/_static"
23     DIR[STATIC,VPP]: "{DIR[STATIC]}/vpp"
24     DIR[STATIC,ARCH]: "{DIR[STATIC]}/archive"
25
26     # Working directories
27     ## Input data files (.zip, .xml)
28     DIR[WORKING,DATA]: "{DIR[WORKING]}/data"
29     ## Static source files from git
30     DIR[WORKING,SRC]: "{DIR[WORKING]}/src"
31     DIR[WORKING,SRC,STATIC]: "{DIR[WORKING,SRC]}/_static"
32
33     # .css patch file
34     DIR[CSS_PATCH_FILE]: "{DIR[STATIC]}/theme_overrides.css"
35     DIR[CSS_PATCH_FILE2]: "{DIR[WORKING,SRC,STATIC]}/theme_overrides.css"
36
37   urls:
38     URL[JENKINS,CSIT]: "https://jenkins.fd.io/view/csit/job"
39
40   make-dirs:
41   # List the directories which are created while preparing the environment.
42   # All directories MUST be defined in "paths" section.
43   - "DIR[WORKING,DATA]"
44   - "DIR[WORKING,SRC,STATIC]"
45   - "DIR[BUILD,HTML]"
46   - "DIR[STATIC,VPP]"
47   - "DIR[STATIC,ARCH]"
48   build-dirs:
49   # List the directories where the results (build) is stored.
50   # All directories MUST be defined in "paths" section.
51   - "DIR[BUILD,HTML]"
52
53   testbeds:
54     "10.30.51.45": "LF-2n-SKX-21"
55     "10.30.51.53": "LF-2n-SKX-22"
56     "10.30.51.55": "LF-2n-SKX-23"
57     "10.30.51.57": "LF-2n-SKX-24"
58     "10.32.8.19": "LF-2n-CLX-27"
59     "10.32.8.21": "LF-2n-CLX-28"
60     "10.32.8.23": "LF-2n-CLX-29"
61     "10.30.51.48": "LF-3n-SKX-31"
62     "10.30.51.60": "LF-3n-SKX-32"
63     "10.30.51.49": "LF-3n-TSH-33"
64     "10.30.51.49": "LF-2n-TX2-34"
65     "10.32.8.25": "LF-2n-ZN2-210"
66     "10.32.8.10": "LF-DNV"
67
68   # Data sources are used in this order:
69   data-sources:
70     # XML
71     - type: "xml"
72       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
73       path: "{job}/{build}/{filename}"
74       file-name: "output_info.xml.gz"
75       file-format: ".gz"
76       enabled: True
77     - type: "xml"
78       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
79       path: "{job}/{build}/archives/{filename}"
80       file-name: "output_info.xml.gz"
81       file-format: ".gz"
82       enabled: True
83     - type: "xml"
84       url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
85       path: "{job}/{build}/{filename}"
86       file-name: "output_info.xml.gz"
87       file-format: ".gz"
88       enabled: True
89     - type: "xml"
90       url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
91       path: "{job}/{build}/archives/{filename}"
92       file-name: "output_info.xml.gz"
93       file-format: ".gz"
94       enabled: True
95     - type: "xml"
96       url: "https://s3-logs.fd.io/logs/production/vex-yul-rot-jenkins-1"
97       path: "{job}/{build}/{filename}"
98       file-name: "output_info.xml.gz"
99       file-format: ".gz"
100       enabled: True
101     - type: "xml"
102       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
103       path: "{job}/{build}/archives/{filename}"
104       file-name: "output.xml.gz"
105       file-format: ".gz"
106       enabled: True
107     - type: "xml"
108       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
109       path: "{job}/{build}/{filename}"
110       file-name: "output.xml.gz"
111       file-format: ".gz"
112       enabled: True
113     - type: "xml"
114       url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
115       path: "{job}/{build}/archives/{filename}"
116       file-name: "output.xml.gz"
117       file-format: ".gz"
118       enabled: True
119     - type: "xml"
120       url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
121       path: "{job}/{build}/{filename}"
122       file-name: "output.xml.gz"
123       file-format: ".gz"
124       enabled: True
125     # JSON from S3
126     - type: "json"
127       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
128       path: "{job}/{build}/{filename}"
129       file-name: "output.json.gz"
130       file-format: ".gz"
131       enabled: False
132
133   archive-inputs: False
134
135   reverse-input: True  # Needed for trending, not important for the report
136
137   # Number of days from now to the past. Only files generated in this
138   # time period are used.
139   # Only for trending
140   time-period: 180
141
142   mapping-file: ""
143
144   ignore-list: ""
145
146   alerting:
147
148     alerts:
149
150 # As Jenkins slave is not configured to send emails, this is now only as
151 # a working example:
152 #
153 #      # Send the list of failed tests vie email.
154 #      # Pre-requisites:
155 #      # - SMTP server is installed on the Jenkins slave
156 #      # - SMTP server is configured to send emails. Default configuration is
157 #      #   sufficient.
158 #      email-failed-tests:
159 #        # Title is used in logs and also as the email subject.
160 #        title: "Trending: Failed Tests"
161 #        # Type of alert.
162 #        type: "failed-tests"
163 #        # How to send the alert. The used way must be specified in the
164 #        # configuration part.
165 #        way: "email"
166 #        # Data to be included in the alert.
167 #        # Here is used the list of tables generated by the function
168 #        # "table_failed_tests_html".
169 #        include:
170 #        - "failed-tests-3n-skx"
171 #        - "failed-tests-2n-skx"
172 #        # This url is used in the tables instead of the original one. The aim
173 #        # is to make the links usable also from the email.
174 #        url: "https://docs.fd.io/csit/master/trending/trending"
175
176       # Jenkins job sends the email with failed tests.
177       # Pre-requisites:
178       # - Jenkins job is configured to send emails in "Post-build Actions" -->
179       #   "Editable Email Notification".
180       jenkins-send-failed-tests:
181         title: "Trending: Failed Tests"
182         type: "failed-tests"
183         way: "jenkins"
184         include:
185           - "last-failed-tests-vpp-2n-skx-mrr"
186           - "last-failed-tests-vpp-3n-skx-mrr"
187           - "last-failed-tests-vpp-2n-clx-mrr"
188           - "last-failed-tests-vpp-2n-zn2-mrr"
189           - "last-failed-tests-vpp-3n-tsh-mrr"
190           - "last-failed-tests-vpp-2n-tx2-mrr"
191           - "last-failed-tests-vpp-2n-dnv-mrr"
192           - "last-failed-tests-vpp-3n-dnv-mrr"
193           - "last-failed-tests-dpdk-2n-skx-mrr"
194           - "last-failed-tests-dpdk-3n-skx-mrr"
195           - "last-failed-tests-dpdk-2n-clx-mrr"
196           - "last-failed-tests-dpdk-3n-tsh-mrr"
197           - "last-failed-tests-dpdk-2n-tx2-mrr"
198           - "last-failed-tests-vpp-2n-skx-ndrpdr"
199           - "last-failed-tests-vpp-3n-skx-ndrpdr"
200           - "last-failed-tests-vpp-2n-clx-ndrpdr"
201         urls:
202           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-skx"
203           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx"
204           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-clx"
205           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-zn2"
206           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-tsh"
207           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-tx2"
208           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-dnv"
209           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-dnv"
210           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-skx"
211           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-skx"
212           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-clx"
213           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-tsh"
214           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-tx2"
215           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-skx"
216           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-3n-skx"
217           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-clx"
218         url-details: "https://docs.fd.io/csit/master/trending/introduction/failures.html"
219
220     configurations:
221       # Configuration of the email notifications.
222       email:
223         # SMTP server
224         server: "localhost"
225         # List of recipients.
226         address-to:
227         - "csit-report@lists.fd.io"
228         # Sender
229         address-from: "testuser@testserver.com"
230
231       # Configuration of notifications sent by Jenkins.
232       jenkins:
233         # The directory in the workspace where the generated data is stored and
234         # then read by Jenkins job.
235         output-dir: "_build/_static/vpp"
236         # The name of the output files. ASCII text and HTML formats are
237         # generated.
238         output-file: "trending-failed-tests"
239         # If defined, all output files are zipped into this file.
240         zip-output: "failed-tests.tar.gz"
241
242 ################################################################################
243 ###                               S T A T I C                                ###
244 ################################################################################
245
246 - type: "static"
247   src-path: "{DIR[RST]}"
248   dst-path: "{DIR[WORKING,SRC]}"
249
250 ################################################################################
251 ###                               O U T P U T                                ###
252 ################################################################################
253
254 - type: "output"
255   arch-file-format:
256     - ".gz"
257     - ".zip"
258   output: "trending"
259   format:
260     html:
261     - full