1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+
18+ # External systems connectors configuration:
19+ postgres :
20+ hostname : ${POSTGRES_HOSTNAME}
21+ port : ${POSTGRES_PORT}
22+ username : ${POSTGRES_USERNAME}
23+ password : ${POSTGRES_PASSWORD}
24+ database : ${POSTGRES_DATABASE}
25+
26+ # Templates define common bits shared between test definitions:
27+ templates :
28+ common :
29+ type : postgres
30+ time_column : commit_ts
31+ attributes : [experiment_id, commit, config_id]
32+ # required for --update-postgres to work
33+ update_statement : |
34+ UPDATE results
35+ SET {metric}_rel_forward_change=%s,
36+ {metric}_rel_backward_change=%s,
37+ {metric}_p_value=%s
38+ WHERE experiment_id = '{experiment_id}' AND config_id = {config_id}
39+ metrics :
40+ process_cumulative_rate_mean :
41+ direction : 1
42+ scale : 1
43+ process_cumulative_rate_stderr :
44+ direction : -1
45+ scale : 1
46+ process_cumulative_rate_diff :
47+ direction : -1
48+ scale : 1
49+
50+ # Define your tests here:
51+ tests :
52+ aggregate_mem :
53+ inherit : [ common ] # avoids repeating metrics definitions and postgres-related config
54+ query : |
55+ SELECT e.commit,
56+ e.commit_ts,
57+ r.process_cumulative_rate_mean,
58+ r.process_cumulative_rate_stderr,
59+ r.process_cumulative_rate_diff,
60+ r.experiment_id,
61+ r.config_id
62+ FROM results r
63+ INNER JOIN configs c ON r.config_id = c.id
64+ INNER JOIN experiments e ON r.experiment_id = e.id
65+ WHERE e.exclude_from_analysis = false AND
66+ e.branch = '${BRANCH}' AND
67+ e.username = 'ci' AND
68+ c.store = 'MEM' AND
69+ c.cache = true AND
70+ c.benchmark = 'aggregate' AND
71+ c.instance_type = 'ec2i3.large'
72+ ORDER BY e.commit_ts ASC;
73+
74+ aggregate_time_rocks :
75+ inherit : [ common ]
76+ query : |
77+ SELECT e.commit,
78+ e.commit_ts,
79+ r.process_cumulative_rate_mean,
80+ r.process_cumulative_rate_stderr,
81+ r.process_cumulative_rate_diff,
82+ r.experiment_id,
83+ r.config_id
84+ FROM results r
85+ INNER JOIN configs c ON r.config_id = c.id
86+ INNER JOIN experiments e ON r.experiment_id = e.id
87+ WHERE e.exclude_from_analysis = false AND
88+ e.branch = '${BRANCH}' AND
89+ e.username = 'ci' AND
90+ c.store = 'TIME_ROCKS' AND
91+ c.cache = true AND
92+ c.benchmark = 'aggregate' AND
93+ c.instance_type = 'ec2i3.large'
94+ ORDER BY e.commit_ts ASC;
0 commit comments