SERVER-116370 Small antithesis test composer fixes (#46030)
GitOrigin-RevId: 374cd03d285d01ddbe03a297edf5fff452cb1b8d
This commit is contained in:
committed by
MongoDB Bot
parent
93bd0d9f72
commit
61d4116416
@@ -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() {
|
||||
|
||||
@@ -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();"
|
||||
|
||||
@@ -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();"
|
||||
|
||||
@@ -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();"
|
||||
|
||||
@@ -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();"
|
||||
|
||||
@@ -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();"
|
||||
|
||||
@@ -379,6 +379,8 @@ class DockerComposeImageBuilder:
|
||||
"setup-repro-env",
|
||||
"--variant",
|
||||
"ubuntu2204",
|
||||
"-p",
|
||||
"ubuntu2204",
|
||||
"--linkDir",
|
||||
mongodb_binaries_destination,
|
||||
"--installLastContinuous",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user