Skip to content

Instantly share code, notes, and snippets.

@toto-dev
toto-dev / repeat_all_tests_evg.patch
Last active April 29, 2024 11:31
Hack to make evergreen repeat all tests in all suites 15 times
diff --git a/buildscripts/evergreen_task_timeout.py b/buildscripts/evergreen_task_timeout.py
index 60ce3f8f7fc..0c624f9e125 100755
--- a/buildscripts/evergreen_task_timeout.py
+++ b/buildscripts/evergreen_task_timeout.py
@@ -41,8 +41,8 @@ IGNORED_SUITES = {
HISTORY_LOOKBACK = timedelta(weeks=2)
COMMIT_QUEUE_TIMEOUT = timedelta(minutes=20)
-DEFAULT_REQUIRED_BUILD_TIMEOUT = timedelta(hours=1, minutes=20)
-DEFAULT_NON_REQUIRED_BUILD_TIMEOUT = timedelta(hours=2)
@toto-dev
toto-dev / backport.sh
Created April 19, 2023 14:34
Script to automatically create backport patch in EVG
#!/bin/bash
############################################################
# Help #
############################################################
Help()
{
# Display Help
echo "Create backport."
echo
echo "Syntax: backport.sh [-h|t|b|c]"
@toto-dev
toto-dev / mongod
Created October 19, 2021 11:21
Mongod wrapper for mlaunch
#!/bin/sh
# Rename the orginal "mongod" to "mongod.bin"
export SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
exec "$SCRIPT_DIR/mongod.bin" --setParameter orphanCleanupDelaySecs=0 "$@"
@toto-dev
toto-dev / split_sessions.js
Last active January 17, 2020 11:52
Partitioning session collection
/*
* This script is meant to be executed on a mongos instance of a MongoDB
* sharded cluster.
*
* Sessions records are small in size, so usually the sessions collection
* doesn't get automatically splitted by the auto-splitter and thus it is
* not balanced automatically. This can cause an high load on the primary
* shard of the sessions collection.
*
* This script splits and distributes the `config.system.sessions`