Skip to content

Commit f6ca3bf

Browse files
authored
RUST-1678 Switch junit merge tools (#1120)
1 parent 19d0460 commit f6ca3bf

8 files changed

+5
-150
lines changed

.evergreen/install-dependencies.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,13 @@ for arg; do
3030
elif [ $arg == "junit-dependencies" ]; then
3131
source ${CARGO_HOME}/env
3232

33-
# install npm/node
34-
./.evergreen/install-node.sh
35-
3633
source ./.evergreen/env.sh
3734

3835
# Install junit-compatible test runner
3936
cargo install cargo-nextest --locked
4037

4138
# Install tool for merging different junit reports into a single one
42-
set +o errexit
43-
set -o pipefail
44-
45-
npm install -g junit-report-merger --cache $(mktemp -d) 2>&1 | tee npm-install-output
46-
RESULT=$?
47-
MATCH=$(grep -o '/\S*-debug.log' npm-install-output)
48-
if [[ $MATCH != "" ]]; then
49-
echo ===== BEGIN NPM LOG =====
50-
cat $MATCH
51-
echo ===== END NPM LOG =====
52-
fi
53-
54-
set -o errexit
55-
if [ $RESULT -ne 0 ]; then
56-
exit $RESULT
57-
fi
39+
cargo install merge-junit
5840
elif [ $arg == "libmongocrypt" ]; then
5941
mkdir ${PROJECT_DIRECTORY}/libmongocrypt
6042
cd ${PROJECT_DIRECTORY}/libmongocrypt

.evergreen/install-node.sh

Lines changed: 0 additions & 109 deletions
This file was deleted.

.evergreen/run-aws-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ cargo_test spec::auth spec.xml
2424
cargo_test uri_options uri_options.xml
2525
cargo_test connection_string connection_string.xml
2626

27-
junit-report-merger results.xml auth_aws.xml lambda_handler.xml spec.xml uri_options.xml connection_string.xml
27+
merge-junit -o results.xml auth_aws.xml lambda_handler.xml spec.xml uri_options.xml connection_string.xml
2828

2929
exit $CARGO_RESULT

.evergreen/run-connection-string-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ cargo_test spec::auth spec.xml
1515
cargo_test uri_options uri_options.xml
1616
cargo_test connection_string connection_string.xml
1717

18-
junit-report-merger results.xml spec.xml uri_options.xml connection_string.xml
18+
merge-junit -o results.xml spec.xml uri_options.xml connection_string.xml
1919

2020
exit ${CARGO_RESULT}

.evergreen/run-csfle-kmip-servers.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.evergreen/run-csfle-mock-azure-imds.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.evergreen/run-csfle-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ unset AWS_ACCESS_KEY_ID
3434
unset AWS_SECRET_ACCESS_KEY
3535
cargo_test test::csfle::on_demand_aws_failure failure.xml
3636

37-
junit-report-merger results.xml prose.xml spec.xml failure.xml
37+
merge-junit -o results.xml prose.xml spec.xml failure.xml
3838

3939
exit ${CARGO_RESULT}

.evergreen/run-serverless-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ cargo_test test::cursor cursor.xml
2121
cargo_test test::spec::collection_management coll.xml
2222
cargo_test test::spec::command_monitoring_unified monitoring.xml
2323

24-
junit-report-merger results.xml crud.xml retryable_reads.xml retryable_writes.xml versioned_api.xml sessions.xml transactions.xml load_balancers.xml cursor.xml coll.xml monitoring.xml
24+
merge-junit -o results.xml crud.xml retryable_reads.xml retryable_writes.xml versioned_api.xml sessions.xml transactions.xml load_balancers.xml cursor.xml coll.xml monitoring.xml
2525

2626
exit $CARGO_RESULT

0 commit comments

Comments
 (0)