This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# calc_release_version_selftest.sh is used to test output of calc_release_version.py. | |
# run with: | |
# cd build | |
# ./calc_release_version_selftest.sh | |
function assert_eq () { | |
a="$1" | |
b="$2" | |
if [[ "$a" != "$b" ]]; then | |
echo "Assertion failed: $a != $b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import yaml | |
try: | |
from yaml import CLoader as Loader | |
except ImportError: | |
from yaml import Loader | |
# Load evaluated Evergreen config. | |
# `evaluated.yml` was created by running: `evergreen evaluate ./.evergreen/config.yml > evaluated.yml` | |
with open("evaluated.yml", "r") as file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cursor": { | |
"nextBatch": [ | |
{ | |
"_id": { | |
"_data": "826402082C000000022B042C0100296E5A1004F5EE0D4649F9441FBB3F8068DB145455463C6F7065726174696F6E54797065003C64656C6574650046646F63756D656E744B657900461E5F69640029000004" | |
}, | |
"operationType": "delete", | |
"clusterTime": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from shrub.v3.evg_build_variant import BuildVariant | |
from shrub.v3.evg_task import EvgTaskRef | |
from config_generator.etc.distros import find_large_distro | |
from config_generator.etc.distros import make_distro_str | |
from config_generator.etc.distros import to_cc | |
from config_generator.etc.utils import EvgTaskWithRunOn | |
from config_generator.etc.sasl.compile import CompileCommon | |
from config_generator.components.funcs.upload_build import UploadBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PR=${PR:-} | |
REPO=${REPO:-} | |
ORG=${ORG:-mongodb} | |
if [[ "$(basename $(pwd))" != "review" ]]; then | |
echo "Must be in 'review' directory"; | |
exit 1; | |
fi | |
if [[ -z "$PR" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PR=${PR:-} | |
REPO=${REPO:-} | |
ORG=${ORG:-mongodb} | |
if [[ "$(basename $(pwd))" != "review" ]]; then | |
echo "Must be in 'review' directory"; | |
exit 1; | |
fi | |
if [[ -z "$PR" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
contents = sys.stdin.read() | |
lines = contents.splitlines () | |
inraw = False | |
rawstr = "" | |
import textwrap | |
print ("""// This is a copy of test vectors from the mongodb/mongo repository.""") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
contents = sys.stdin.read() | |
# Here is a sample input: | |
# contents = """ | |
# {&getEdgesDouble, 0.00000000000000000, boost::none, boost::none, 1, { | |
# "1", | |
# "10", | |
# "100", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SSLWrapper: | |
""" | |
SSLWrapper wraps an SSLSocket in an SSLObject. | |
This may be used to tunnel an SSL session inside another SSL session. | |
Example usage: | |
sslctx = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH) | |
ssock = socket.create_connection(("proxy.example", 443)) | |
ssock = sslctx.wrap_socket(ssock, server_hostname="localhost") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MONGOC_TEST_AWS_ACCESS_KEY_ID=$(cat ~/.csfle/kms_providers.json | jq -r ".aws.accessKeyId") | |
export MONGOC_TEST_AWS_SECRET_ACCESS_KEY=$(cat ~/.csfle/kms_providers.json | jq -r ".aws.secretAccessKey") | |
export MONGOC_TEST_MONGOCRYPTD_BYPASS_SPAWN=ON | |
export MONGOC_TEST_AZURE_TENANT_ID=$(cat ~/.csfle/kms_providers.json | jq -r ".azure.tenantId") | |
export MONGOC_TEST_AZURE_CLIENT_ID=$(cat ~/.csfle/kms_providers.json | jq -r ".azure.clientId") | |
export MONGOC_TEST_AZURE_CLIENT_SECRET=$(cat ~/.csfle/kms_providers.json | jq -r ".azure.clientSecret") | |
export MONGOC_TEST_GCP_EMAIL=$(cat ~/.csfle/kms_providers.json | jq -r ".gcp.email") | |
export MONGOC_TEST_GCP_PRIVATEKEY=$(cat ~/.csfle/kms_providers.json | jq -r ".gcp.privateKey") |
NewerOlder