SERVER-116370 Small antithesis test composer fixes (#46030)

GitOrigin-RevId: 374cd03d285d01ddbe03a297edf5fff452cb1b8d
This commit is contained in:
Trevor Guidry
2026-01-09 10:10:59 -06:00
committed by MongoDB Bot
parent 93bd0d9f72
commit 61d4116416
8 changed files with 12 additions and 8 deletions

View File

@@ -23,9 +23,11 @@ function retryOnFailure(func) {
err.name === "MongoNetworkTimeoutError" ||
err.name === "MongoPoolClearedError" ||
err.name === "PoolClearedOnNetworkError" ||
err.name === "InterruptedDueToReplStateChange" ||
err.message === "read ECONNRESET" ||
err.message === "read ETIMEDOUT" ||
err.message === "Shutting down"
err.message === "Shutting down" ||
err.message.startsWith("network error while attempting to run command")
) {
print(`Attempt ${retries} failed due to ${err.name}, retrying in 1 second...`);
sleep(1000);
@@ -129,7 +131,7 @@ function pitRead() {
// Assert that the snapshot read actually returned the version of the
// doc at the older value (1), not the newer one (2).
assert(EJSON.stringify(snapshotReadResult.cursor.firstBatch) == EJSON.stringify([{_id, value: 1}]));
assert(JSON.stringify(snapshotReadResult.cursor.firstBatch) == JSON.stringify([{_id, value: 1}]));
}
function validateCollections() {

View File

@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(realpath "$BASH_SOURCE"))
CONNECTION_URL=$(bash /scripts/print_connection_string.sh)
/bin/mongo --nodb --eval "var connection_string=${CONNECTION_URL};load('$SCRIPT_DIR/js/commands.js'); find();"
/bin/mongo --nodb --eval "var connection_string='${CONNECTION_URL}';load('$SCRIPT_DIR/js/commands.js'); find();"

View File

@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(realpath "$BASH_SOURCE"))
CONNECTION_URL=$(bash /scripts/print_connection_string.sh)
/bin/mongo --nodb --eval "var connection_string=${CONNECTION_URL};load('$SCRIPT_DIR/js/commands.js'); fsync();"
/bin/mongo --nodb --eval "var connection_string='${CONNECTION_URL}';load('$SCRIPT_DIR/js/commands.js'); fsync();"

View File

@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(realpath "$BASH_SOURCE"))
CONNECTION_URL=$(bash /scripts/print_connection_string.sh)
/bin/mongo --nodb --eval "var connection_string=${CONNECTION_URL};load('$SCRIPT_DIR/js/commands.js'); insert();"
/bin/mongo --nodb --eval "var connection_string='${CONNECTION_URL}';load('$SCRIPT_DIR/js/commands.js'); insert();"

View File

@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(realpath "$BASH_SOURCE"))
CONNECTION_URL=$(bash /scripts/print_connection_string.sh)
/bin/mongo --nodb --eval "var connection_string=${CONNECTION_URL};load('$SCRIPT_DIR/js/commands.js'); pitRead();"
/bin/mongo --nodb --eval "var connection_string='${CONNECTION_URL}';load('$SCRIPT_DIR/js/commands.js'); pitRead();"

View File

@@ -3,4 +3,4 @@
SCRIPT_DIR=$(dirname $(realpath "$BASH_SOURCE"))
CONNECTION_URL=$(bash /scripts/print_connection_string.sh)
/bin/mongo --nodb --eval "var connection_string=${CONNECTION_URL};load('$SCRIPT_DIR/js/commands.js'); validateCollections();"
/bin/mongo --nodb --eval "var connection_string='${CONNECTION_URL}';load('$SCRIPT_DIR/js/commands.js'); validateCollections();"

View File

@@ -379,6 +379,8 @@ class DockerComposeImageBuilder:
"setup-repro-env",
"--variant",
"ubuntu2204",
"-p",
"ubuntu2204",
"--linkDir",
mongodb_binaries_destination,
"--installLastContinuous",

View File

@@ -126,7 +126,7 @@ params=$(jq -n \
'{
params: {
"antithesis.description": $description,
"custom.duration": "1",
"custom.duration": ".5",
"antithesis.config_image": $config_image,
"antithesis.images": $images,
"antithesis.report.recipients": $author_email,