- Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-4721 - Create individualized scripts for all shell.exec commands #1997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
52 commits Select commit Hold shift + click to select a range
14d26bc
[1/x] Migrate all pre and most post scripts to subprocess in /scripts
Jibola 56fafb8
command-type fix
Jibola 71de21f
Merge branch 'master' into PYTHON-4069-1
Jibola f957a69
remove .evergreen/scripts/run-tests from this PR
Jibola 94db687
Merge branch 'master' into PYTHON-4069-1
NoahStapp 051e733
download_and_merge_coverage
NoahStapp ea5dff8
mockupdb, doctests, atlas
NoahStapp b10bd37
modwsgi, enterprise auth
NoahStapp a9b1c07
Fix modwsgi, aws auth
NoahStapp c017581
Fix aws auth, ocsp
NoahStapp 6ce1f86
Standardize binary to bash
NoahStapp ec3c2c4
All but run_tests
NoahStapp 312266f
Run tests
NoahStapp 1b1abc8
Cleanup
NoahStapp b395f01
Debugging
NoahStapp 7bda294
Fixes
NoahStapp 3ef0084
Add run-with-env.sh
NoahStapp 8176e6c
Fix client context OS var checks
NoahStapp c3bcada
Fix data lake tests
NoahStapp a49e630
Fix data lake tests
NoahStapp 4a9ddf9
Add expansions to env
NoahStapp fbc5a0b
debugging
NoahStapp fe40a95
More env fixes
NoahStapp 40a9984
Add setup-tests.sh
NoahStapp 01704ba
Cleanup
NoahStapp 57acb85
Cleanup
NoahStapp 13c6e83
Merge branch 'master' into PYTHON-4721
NoahStapp 707452b
Remove LOAD_BALANCER from system setup env
NoahStapp 7617ac6
Fix unbound variables
NoahStapp 3ff9a41
Add AUTH + SSL to bootstrap orchestration
NoahStapp 2a3cc4c
Remove AUTH and SSL from system env
NoahStapp 4a83e54
Fixes
NoahStapp 9d2212f
Don't pass PYTHON_BINARY to CSFLE setup
NoahStapp 9949ac9
Silent coverage
NoahStapp fb15895
Pass TEST_SUITES to run-tests
NoahStapp 6f74878
Fix archive-logs
NoahStapp ae446f6
Remove unneeded s3 put
NoahStapp 5f0b429
Add drivers-evergreen-tools teardown
NoahStapp 3a3b542
More upload fixes
NoahStapp d7f79ca
More fixes
NoahStapp b8cd932
Remove TEST_SUITES from system-setup env, fix bucket
NoahStapp 717c7c0
Add default TEST_SUITES to run-tests.sh
NoahStapp f7ad42d
Fix upload-coverage-report
NoahStapp 68c9d29
run-with-env.sh should use -u not -eu
NoahStapp 637a6cc
Add type:test back to run tests
NoahStapp ed73e72
Fix AUTH + SSL
NoahStapp 18d82e0
Merge branch 'master' into PYTHON-4721
NoahStapp b4695c1
Fix bootstrap AUTH + SSL
NoahStapp 7654361
Only pass PYTHON_BINARY where it was before
NoahStapp ebab2b6
Merge branch 'master' into PYTHON-4721
NoahStapp 82dcf30
Cleanup
NoahStapp d5de764
AWS auth fix
NoahStapp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[1/x] Migrate all pre and most post scripts to subprocess in /scripts
- Loading branch information
commit 14d26bc660afa81f440f585919954c6fd42f885b
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!bin/bash | ||
| ||
. src/.evergreen/scripts/env.sh | ||
set -o xtrace | ||
mkdir out_dir | ||
find $MONGO_ORCHESTRATION_HOME -name \*.log -exec sh -c 'x="{}"; mv $x $PWD/out_dir/$(basename $(dirname $x))_$(basename $x)' \; | ||
tar zcvf mongodb-logs.tar.gz -C out_dir/ . | ||
rm -rf out_dir |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
| ||
. src/.evergreen/scripts/env.sh | ||
set -o xtrace | ||
| ||
# Enable core dumps if enabled on the machine | ||
# Copied from https://github.com/mongodb/mongo/blob/master/etc/evergreen.yml | ||
if [ -f /proc/self/coredump_filter ]; then | ||
# Set the shell process (and its children processes) to dump ELF headers (bit 4), | ||
# anonymous shared mappings (bit 1), and anonymous private mappings (bit 0). | ||
echo 0x13 >/proc/self/coredump_filter | ||
| ||
if [ -f /sbin/sysctl ]; then | ||
# Check that the core pattern is set explicitly on our distro image instead | ||
# of being the OS's default value. This ensures that coredump names are consistent | ||
# across distros and can be picked up by Evergreen. | ||
core_pattern=$(/sbin/sysctl -n "kernel.core_pattern") | ||
if [ "$core_pattern" = "dump_%e.%p.core" ]; then | ||
echo "Enabling coredumps" | ||
ulimit -c unlimited | ||
fi | ||
fi | ||
fi | ||
| ||
if [ $(uname -s) = "Darwin" ]; then | ||
core_pattern_mac=$(/usr/sbin/sysctl -n "kern.corefile") | ||
if [ "$core_pattern_mac" = "dump_%N.%P.core" ]; then | ||
echo "Enabling coredumps" | ||
ulimit -c unlimited | ||
fi | ||
fi | ||
| ||
if [ -n "${skip_crypt_shared}" ]; then | ||
export SKIP_CRYPT_SHARED=1 | ||
fi | ||
| ||
MONGODB_VERSION=${VERSION} \ | ||
TOPOLOGY=${TOPOLOGY} \ | ||
AUTH=${AUTH} \ | ||
SSL=${SSL} \ | ||
STORAGE_ENGINE=${STORAGE_ENGINE} \ | ||
DISABLE_TEST_COMMANDS=${DISABLE_TEST_COMMANDS} \ | ||
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \ | ||
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \ | ||
LOAD_BALANCER=${LOAD_BALANCER} \ | ||
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh | ||
# run-orchestration generates expansion file with the MONGODB_URI for the cluster |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
| ||
set +x | ||
. src/.evergreen/scripts/env.sh | ||
for filename in $(find $DRIVERS_TOOLS -name \*.json); do | ||
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|$DRIVERS_TOOLS|g" $filename | ||
done |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
| ||
set +x | ||
. src/.evergreen/scripts/env.sh | ||
echo '{"results": [{ "status": "FAIL", "test_file": "Build", "log_raw": "No test-results.json found was created" } ]}' >$PROJECT_DIRECTORY/test-results.json |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.