@@ -256,7 +256,7 @@ functions:
256
256
. ./activate-authawsvenv.sh
257
257
python ./lib/aws_assign_instance_profile.py
258
258
fi
259
-
259
+
260
260
" run tests " :
261
261
- command : shell.exec
262
262
type : test
@@ -277,9 +277,9 @@ functions:
277
277
AZUREKMS_KEY_NAME : ${testazurekms_keyname}
278
278
script : |
279
279
${PREPARE_SHELL}
280
-
280
+
281
281
. ${DRIVERS_TOOLS}/.evergreen/csfle/set-temp-creds.sh
282
-
282
+
283
283
export AWS_TEMP_ACCESS_KEY_ID=$CSFLE_AWS_TEMP_ACCESS_KEY_ID
284
284
export AWS_TEMP_SECRET_ACCESS_KEY=$CSFLE_AWS_TEMP_SECRET_ACCESS_KEY
285
285
export AWS_TEMP_SESSION_TOKEN=$CSFLE_AWS_TEMP_SESSION_TOKEN
@@ -375,7 +375,7 @@ functions:
375
375
STREAM_TYPE="netty" AUTH="${AUTH}" SSL="${SSL}" NETTY_SSL_PROVIDER="${NETTY_SSL_PROVIDER}" MONGODB_URI="${MONGODB_URI}" \
376
376
TOPOLOGY="${TOPOLOGY}" COMPRESSOR="${COMPRESSOR}" JAVA_VERSION="${JAVA_VERSION}" \
377
377
AZUREKMS_KEY_VAULT_ENDPOINT=${testazurekms_keyvaultendpoint} AZUREKMS_KEY_NAME=${testazurekms_keyname} \
378
- .evergreen/run-tests.sh
378
+ .evergreen/run-tests.sh
379
379
380
380
" run plain auth test " :
381
381
- command : shell.exec
@@ -683,11 +683,11 @@ functions:
683
683
script : |
684
684
${PREPARE_SHELL}
685
685
. ${DRIVERS_TOOLS}/.evergreen/csfle/set-temp-creds.sh
686
-
686
+
687
687
export AWS_TEMP_ACCESS_KEY_ID=$CSFLE_AWS_TEMP_ACCESS_KEY_ID
688
688
export AWS_TEMP_SECRET_ACCESS_KEY=$CSFLE_AWS_TEMP_SECRET_ACCESS_KEY
689
689
export AWS_TEMP_SESSION_TOKEN=$CSFLE_AWS_TEMP_SESSION_TOKEN
690
-
690
+
691
691
MONGODB_URI="${MONGODB_URI}" JAVA_VERSION="${JAVA_VERSION}" .evergreen/run-csfle-tests-with-mongocryptd.sh
692
692
693
693
" trace artifacts " :
@@ -777,9 +777,41 @@ functions:
777
777
PROJECT_DIRECTORY=${PROJECT_DIRECTORY} .evergreen/run-perf-tests.sh
778
778
779
779
" send dashboard data " :
780
- - command : perf.send
780
+ - command : shell.exec
781
781
params :
782
- file : src/results.json
782
+ script : |
783
+ if [ "${requester}" == "commit" ]; then
784
+ echo "is_mainline: true" >> expansion.yml
785
+ else
786
+ echo "is_mainline: false" >> expansion.yml
787
+ fi
788
+
789
+ echo "parsed_order_id: $(echo "${revision_order_id}" | awk -F'_' '{print $NF}')" >> expansion.yml
790
+ - command : expansions.update
791
+ params :
792
+ file : expansion.yml
793
+ - command : shell.exec
794
+ params :
795
+ script : |
796
+ response=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X 'POST' \
797
+ "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}" \
798
+ -H 'accept: application/json' \
799
+ -H 'Content-Type: application/json' \
800
+ -d @src/results.json)
801
+
802
+ http_status=$(echo "$response" | grep "HTTP_STATUS" | awk -F':' '{print $2}')
803
+ response_body=$(echo "$response" | sed '/HTTP_STATUS/d')
804
+
805
+ # We want to throw an error if the data was not successfully submitted
806
+ if [ "$http_status" -ne 200 ]; then
807
+ echo "Error: Received HTTP status $http_status"
808
+ echo "Response Body: $response_body"
809
+ exit 1
810
+ fi
811
+
812
+ echo "Response Body: $response_body"
813
+ echo "HTTP Status: $http_status"
814
+ add_expansions_to_env : true
783
815
784
816
" run graalvm native image app " :
785
817
- command : shell.exec
0 commit comments