Skip to content

Commit

Permalink
Revert "WT-12554 Treat git clone failures as setup failures in Evergr…
Browse files Browse the repository at this point in the history
…een" (#10457)

Reverts #10428
  • Loading branch information
jbergler authored and tod-johnson-mongodb committed Apr 19, 2024
1 parent dc62a00 commit e79f7cb
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions test/evergreen.yml
Expand Up @@ -141,17 +141,6 @@ functions:
type: setup
params:
directory: wiredtiger
"get automation-scripts": &get_automation_scripts
command: shell.exec
type: setup
params:
shell: bash
script: |
set -o errexit
set -o verbose
if ! [ -d "./automation-scripts" ]; then
git clone git@github.com:wiredtiger/automation-scripts.git
fi
"fetch artifacts": &fetch_artifacts
command: s3.get
type: setup
Expand Down Expand Up @@ -308,9 +297,10 @@ functions:
else
echo "Using config flags $DEFINED_EVERGREEN_CONFIG_FLAGS ${posix_configure_flags|}"
# Fetch the gperftools library if needed. This will also get tcmalloc.
if [[ ${ENABLE_TCMALLOC|0} -eq 1 ]]; then
if [[ ${ENABLE_TCMALLOC|0} -eq 1 ]] && [ ! -d "./automation-scripts" ]; then
is_cmake_build=true
. ../automation-scripts/evergreen/find_gperftools.sh ${s3_access_key} ${s3_secret_key} ${build_variant} $is_cmake_build
git clone git@github.com:wiredtiger/automation-scripts.git
. automation-scripts/evergreen/find_gperftools.sh ${s3_access_key} ${s3_secret_key} ${build_variant} $is_cmake_build
fi
# Compiling with CMake.
echo "Find CMake"
Expand Down Expand Up @@ -362,7 +352,6 @@ functions:
fi
echo "Ending 'make wiredtiger' step"
"compile wiredtiger":
- *get_automation_scripts
- *configure_wiredtiger
- *make_wiredtiger
"dump stacktraces": &dump_stacktraces
Expand Down Expand Up @@ -1268,7 +1257,6 @@ functions:
${python_binary|python3} wiredtiger/bench/perf_run_py/perf_json_converter_for_atlas_evergreen.py -i ${input_file} -n ${test_name} -o ${output_path}
"upload stats to atlas":
- *get_automation_scripts
- command: shell.exec
params:
shell: bash
Expand All @@ -1279,6 +1267,9 @@ functions:
virtualenv -p ${python_binary|python3} venv
source venv/bin/activate
pip3 install pymongo[srv]==3.12.2 pygit2==1.10.1
if [[ ! -d "automation-scripts" ]]; then
git clone git@github.com:wiredtiger/automation-scripts.git
fi
EVERGREEN_TASK_INFO='{ "evergreen_task_info": { "is_patch": "'${is_patch}'", "task_id": "'${task_id}'", "distro_id": "'${distro_id}'", "execution": "'${execution}'", "task_name": "'${task_name}'", "version_id": "'${version_id}'", "branch_name": "'${branch_name}'" } }'
echo "EVERGREEN_TASK_INFO: $EVERGREEN_TASK_INFO"
${python_binary|python3} automation-scripts/evergreen/upload_stats_atlas.py -u ${atlas_perf_test_username} -p ${atlas_perf_test_password} -c ${collection|} -d ${database|} -f ${stats_dir|./wiredtiger/cmake_build/bench/wtperf/test_stats}/atlas_out_${test-name}.json -t ${created_at} -i "$EVERGREEN_TASK_INFO" -g "./wiredtiger"
Expand Down Expand Up @@ -3074,8 +3065,9 @@ tasks:
#######################################################
# Obtain the complexity metrics for the 'previous' code
#######################################################
git worktree add --detach wiredtiger_previous "${github_commit}"
git clone https://github.com/wiredtiger/wiredtiger.git wiredtiger_previous
cd wiredtiger_previous
git checkout ${github_commit}
if [ ${is_patch|false} = true ]; then
# Checkout the point at which this patch/branch diverged from develop
git checkout `python3 dist/common_functions.py last_commit_from_dev`
Expand Down

0 comments on commit e79f7cb

Please sign in to comment.