Trendig: Change the priority of data sources
[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://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
97       path: "{job}/{build}/archives/{filename}"
98       file-name: "output.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}/{filename}"
104       file-name: "output.xml.gz"
105       file-format: ".gz"
106       enabled: True
107     - type: "xml"
108       url: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
109       path: "{job}/{build}/archives/{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}/{filename}"
116       file-name: "output.xml.gz"
117       file-format: ".gz"
118       enabled: True
119     # JSON from S3
120     - type: "json"
121       url: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
122       path: "{job}/{build}/{filename}"
123       file-name: "output.json.gz"
124       file-format: ".gz"
125       enabled: False
126
127   archive-inputs: False
128
129   reverse-input: True  # Needed for trending, not important for the report
130
131   # Number of days from now to the past. Only files generated in this
132   # time period are used.
133   # Only for trending
134   time-period: 180
135
136   mapping-file: ""
137
138   ignore-list: ""
139
140   alerting:
141
142     alerts:
143
144 # As Jenkins slave is not configured to send emails, this is now only as
145 # a working example:
146 #
147 #      # Send the list of failed tests vie email.
148 #      # Pre-requisites:
149 #      # - SMTP server is installed on the Jenkins slave
150 #      # - SMTP server is configured to send emails. Default configuration is
151 #      #   sufficient.
152 #      email-failed-tests:
153 #        # Title is used in logs and also as the email subject.
154 #        title: "Trending: Failed Tests"
155 #        # Type of alert.
156 #        type: "failed-tests"
157 #        # How to send the alert. The used way must be specified in the
158 #        # configuration part.
159 #        way: "email"
160 #        # Data to be included in the alert.
161 #        # Here is used the list of tables generated by the function
162 #        # "table_failed_tests_html".
163 #        include:
164 #        - "failed-tests-3n-skx"
165 #        - "failed-tests-2n-skx"
166 #        # This url is used in the tables instead of the original one. The aim
167 #        # is to make the links usable also from the email.
168 #        url: "https://docs.fd.io/csit/master/trending/trending"
169
170       # Jenkins job sends the email with failed tests.
171       # Pre-requisites:
172       # - Jenkins job is configured to send emails in "Post-build Actions" -->
173       #   "Editable Email Notification".
174       jenkins-send-failed-tests:
175         title: "Trending: Failed Tests"
176         type: "failed-tests"
177         way: "jenkins"
178         include:
179           - "last-failed-tests-vpp-2n-skx-mrr"
180           - "last-failed-tests-vpp-3n-skx-mrr"
181           - "last-failed-tests-vpp-2n-clx-mrr"
182           - "last-failed-tests-vpp-2n-zn2-mrr"
183           - "last-failed-tests-vpp-3n-tsh-mrr"
184           - "last-failed-tests-vpp-2n-tx2-mrr"
185           - "last-failed-tests-vpp-2n-dnv-mrr"
186           - "last-failed-tests-vpp-3n-dnv-mrr"
187           - "last-failed-tests-dpdk-2n-skx-mrr"
188           - "last-failed-tests-dpdk-3n-skx-mrr"
189           - "last-failed-tests-dpdk-2n-clx-mrr"
190           - "last-failed-tests-dpdk-3n-tsh-mrr"
191           - "last-failed-tests-dpdk-2n-tx2-mrr"
192           - "last-failed-tests-vpp-2n-skx-ndrpdr"
193           - "last-failed-tests-vpp-3n-skx-ndrpdr"
194           - "last-failed-tests-vpp-2n-clx-ndrpdr"
195         urls:
196           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-skx"
197           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx"
198           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-clx"
199           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-zn2"
200           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master"
201           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-tsh"
202           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-tx2"
203           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-2n-dnv"
204           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-dnv"
205           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-skx"
206           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-skx"
207           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-clx"
208           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master"
209           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-3n-tsh"
210           - "https://jenkins.fd.io/view/csit/job/csit-dpdk-perf-mrr-weekly-master-2n-tx2"
211           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-skx"
212           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-3n-skx"
213           - "https://jenkins.fd.io/view/csit/job/csit-vpp-perf-ndrpdr-weekly-master-2n-clx"
214         url-details: "https://docs.fd.io/csit/master/trending/introduction/failures.html"
215
216     configurations:
217       # Configuration of the email notifications.
218       email:
219         # SMTP server
220         server: "localhost"
221         # List of recipients.
222         address-to:
223         - "csit-report@lists.fd.io"
224         # Sender
225         address-from: "testuser@testserver.com"
226
227       # Configuration of notifications sent by Jenkins.
228       jenkins:
229         # The directory in the workspace where the generated data is stored and
230         # then read by Jenkins job.
231         output-dir: "_build/_static/vpp"
232         # The name of the output files. ASCII text and HTML formats are
233         # generated.
234         output-file: "trending-failed-tests"
235         # If defined, all output files are zipped into this file.
236         zip-output: "failed-tests.tar.gz"
237
238 ################################################################################
239 ###                               S T A T I C                                ###
240 ################################################################################
241
242 - type: "static"
243   src-path: "{DIR[RST]}"
244   dst-path: "{DIR[WORKING,SRC]}"
245
246 ################################################################################
247 ###                               O U T P U T                                ###
248 ################################################################################
249
250 - type: "output"
251   arch-file-format:
252     - ".gz"
253     - ".zip"
254   output: "trending"
255   format:
256     html:
257     - full