Skip to content

Commit c2c931b

Browse files
committed
running tests
1 parent af98ac5 commit c2c931b

File tree

4 files changed

+95
-1
lines changed

4 files changed

+95
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
6+
source .evergreen/env.sh
7+
8+
cargo nextest archive --workspace --all-features --archive-file nextest-archive.tar.zst

.evergreen/cargo-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cargo_test() {
3333
mv results.xml previous.xml
3434
merge-junit -o results.xml previous.xml target/nextest/ci/junit.xml
3535
else
36-
mv target/nextest/ci/junit.xml results.xml
36+
mv target/nextest/ci/junit.xml results.xml || true
3737
fi
3838
kill ${TAIL_PID}
3939
rm ${LOG_PATH}

.evergreen/config.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,16 @@ buildvariants:
419419
#- name: .8.0
420420
#- name: .7.0
421421

422+
- name: binary-cache-wip
423+
display_name: "Binary Caching WIP"
424+
run_on:
425+
- rhel87-small
426+
expansions:
427+
LIBMONGOCRYPT_OS: rhel-80-64-bit
428+
tasks:
429+
- build-nextest-archive
430+
- run-nextest-archive
431+
422432
###############
423433
# Task Groups #
424434
###############
@@ -1246,6 +1256,67 @@ tasks:
12461256
include_expansions_in_env:
12471257
- PROJECT_DIRECTORY
12481258

1259+
- name: build-nextest-archive
1260+
commands:
1261+
- func: "install libmongocrypt"
1262+
type: setup
1263+
- command: subprocess.exec
1264+
type: setup
1265+
params:
1266+
working_dir: src
1267+
binary: bash
1268+
args:
1269+
- .evergreen/build-nextest-archive.sh
1270+
include_expansions_in_env:
1271+
- PROJECT_DIRECTORY
1272+
- MONGOCRYPT_LIB_DIR
1273+
- command: s3.put
1274+
type: setup
1275+
params:
1276+
aws_key: ${aws_key}
1277+
aws_secret: ${aws_secret}
1278+
local_file: src/nextest-archive.tar.zst
1279+
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${build_id}-nextest-archive.tar.zst
1280+
bucket: mciuploads
1281+
permissions: public-read
1282+
content_type: application/zstd
1283+
display_name: nextest-archive.tar.zst
1284+
1285+
- name: run-nextest-archive
1286+
depends_on:
1287+
- name: build-nextest-archive
1288+
commands:
1289+
- command: s3.get
1290+
type: setup
1291+
params:
1292+
aws_key: ${aws_key}
1293+
aws_secret: ${aws_secret}
1294+
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${build_id}-nextest-archive.tar.zst
1295+
bucket: mciuploads
1296+
local_file: src/nextest-archive.tar.zst
1297+
- func: "install libmongocrypt"
1298+
type: setup
1299+
- func: "bootstrap mongo-orchestration"
1300+
type: setup
1301+
vars:
1302+
MONGODB_VERSION: latest
1303+
TOPOLOGY: server
1304+
- command: subprocess.exec
1305+
type: test
1306+
params:
1307+
working_dir: src
1308+
binary: bash
1309+
args:
1310+
- .evergreen/run-nextest-archive.sh
1311+
include_expansions_in_env:
1312+
- DRIVERS_TOOLS
1313+
- PROJECT_DIRECTORY
1314+
- SINGLE_MONGOS_LB_URI
1315+
- MULTI_MONGOS_LB_URI
1316+
- MONGODB_URI
1317+
- PATH
1318+
- LD_LIBRARY_PATH
1319+
12491320
#############
12501321
# Functions #
12511322
#############

.evergreen/run-nextest-archive.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set -o errexit
2+
set -o pipefail
3+
4+
source .evergreen/env.sh
5+
source .evergreen/cargo-test.sh
6+
7+
# Feature flags are set when the archive is built
8+
FEATURE_FLAGS=()
9+
CARGO_OPTIONS+=("--archive-file" "nextest-archive.tar.zst" "--workspace-remap" "$(pwd)")
10+
11+
set +o errexit
12+
13+
cargo_test ""
14+
15+
exit $CARGO_RESULT

0 commit comments

Comments
 (0)