File tree Expand file tree Collapse file tree 4 files changed +43
-5
lines changed Expand file tree Collapse file tree 4 files changed +43
-5
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,17 @@ functions:
168
168
args :
169
169
- .evergreen/scripts/perf-submission-setup.sh
170
170
working_dir : src
171
+ include_expansions_in_env :
172
+ - requester
173
+ - revision_order_id
174
+ - project_id
175
+ - version_id
176
+ - build_variant
177
+ - parsed_order_id
178
+ - task_name
179
+ - task_id
180
+ - execution
181
+ - is_mainline
171
182
type : test
172
183
- command : expansions.update
173
184
params :
@@ -178,6 +189,17 @@ functions:
178
189
args :
179
190
- .evergreen/scripts/perf-submission.sh
180
191
working_dir : src
192
+ include_expansions_in_env :
193
+ - requester
194
+ - revision_order_id
195
+ - project_id
196
+ - version_id
197
+ - build_variant
198
+ - parsed_order_id
199
+ - task_name
200
+ - task_id
201
+ - execution
202
+ - is_mainline
181
203
type : test
182
204
183
205
# Setup system
Original file line number Diff line number Diff line change @@ -1102,10 +1102,26 @@ def create_attach_benchmark_test_results_func():
1102
1102
1103
1103
1104
1104
def create_send_dashboard_data_func ():
1105
+ includes = [
1106
+ "requester" ,
1107
+ "revision_order_id" ,
1108
+ "project_id" ,
1109
+ "version_id" ,
1110
+ "build_variant" ,
1111
+ "parsed_order_id" ,
1112
+ "task_name" ,
1113
+ "task_id" ,
1114
+ "execution" ,
1115
+ "is_mainline" ,
1116
+ ]
1105
1117
cmds = [
1106
- get_subprocess_exec (args = [".evergreen/scripts/perf-submission-setup.sh" ]),
1118
+ get_subprocess_exec (
1119
+ include_expansions_in_env = includes , args = [".evergreen/scripts/perf-submission-setup.sh" ]
1120
+ ),
1107
1121
expansions_update (file = "src/expansion.yml" ),
1108
- get_subprocess_exec (args = [".evergreen/scripts/perf-submission.sh" ]),
1122
+ get_subprocess_exec (
1123
+ include_expansions_in_env = includes , args = [".evergreen/scripts/perf-submission.sh" ]
1124
+ ),
1109
1125
]
1110
1126
return "send dashboard data" , cmds
1111
1127
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# We use the requester expansion to determine whether the data is from a mainline evergreen run or not
3
3
4
- set -eu
4
+ set -x
5
5
6
6
# shellcheck disable=SC2154
7
7
if [ " ${requester} " == " commit" ]; then
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# We use the requester expansion to determine whether the data is from a mainline evergreen run or not
3
3
4
- set -eu
4
+ set -x
5
5
6
6
# Submit the performance data to the SPS endpoint
7
7
# shellcheck disable=SC2154
8
8
response=$( curl -s -w " \nHTTP_STATUS:%{http_code}" -X ' POST' \
9
9
" https://performance-monitoring-api.corp.mongodb.com/raw_perf_results/cedar_report?project=${project_id} &version=${version_id} &variant=${build_variant} &order=${parsed_order_id} &task_name=${task_name} &task_id=${task_id} &execution=${execution} &mainline=${is_mainline} " \
10
10
-H ' accept: application/json' \
11
11
-H ' Content-Type: application/json' \
12
- -d @performance_results .json)
12
+ -d @results .json)
13
13
14
14
http_status=$( echo " $response " | grep " HTTP_STATUS" | awk -F' :' ' {print $2}' )
15
15
response_body=$( echo " $response " | sed ' /HTTP_STATUS/d' )
You can’t perform that action at this time.
0 commit comments