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