Skip to content

Commit cce0cbf

Browse files
committed
Add metadata
1 parent 0e33e17 commit cce0cbf

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.evergreen/scripts/perf-submission-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# We use the requester expansion to determine whether the data is from a mainline evergreen run or not
33

4-
set -x
4+
set -eu
55

66
# shellcheck disable=SC2154
77
if [ "${requester}" == "commit" ]; then

.evergreen/scripts/perf-submission.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# We use the requester expansion to determine whether the data is from a mainline evergreen run or not
33

4-
set -x
4+
set -eu
55

66
# Submit the performance data to the SPS endpoint
77
# shellcheck disable=SC2154

test/performance/async_perf_test.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ async def asyncTearDown(self):
144144
},
145145
},
146146
"metrics": [
147-
{"name": "megabytes_per_sec", "type": "MEDIAN", "value": megabytes_per_sec},
147+
{
148+
"name": "megabytes_per_sec",
149+
"type": "MEDIAN",
150+
"value": megabytes_per_sec,
151+
"metadata": {
152+
"improvement_direction": "up",
153+
"measurement_unit": "megabytes_per_second",
154+
},
155+
},
148156
],
149157
}
150158
)

test/performance/perf_test.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,15 @@ def tearDown(self):
151151
},
152152
},
153153
"metrics": [
154-
{"name": "megabytes_per_sec", "type": "MEDIAN", "value": megabytes_per_sec},
154+
{
155+
"name": "megabytes_per_sec",
156+
"type": "MEDIAN",
157+
"value": megabytes_per_sec,
158+
"metadata": {
159+
"improvement_direction": "up",
160+
"measurement_unit": "megabytes_per_second",
161+
},
162+
},
155163
],
156164
}
157165
)

0 commit comments

Comments
 (0)