summaryrefslogtreecommitdiff
path: root/evergreen/functions
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2021-10-25 13:09:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-25 18:14:44 +0000
commitbb31ac84744de48a5013ee747c08ee942e317eb3 (patch)
tree5b124e60d21e7884afd85d986374f3df664f9912 /evergreen/functions
parent62866f01a95187048c07446bc1a604786d7c3d29 (diff)
downloadmongo-bb31ac84744de48a5013ee747c08ee942e317eb3.tar.gz
SERVER-60971: Remove calls to BF Suggestion service
Diffstat (limited to 'evergreen/functions')
-rwxr-xr-xevergreen/functions/bf_suggestion_service_call.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/evergreen/functions/bf_suggestion_service_call.sh b/evergreen/functions/bf_suggestion_service_call.sh
deleted file mode 100755
index ebc3004a6c4..00000000000
--- a/evergreen/functions/bf_suggestion_service_call.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
-. "$DIR/../prelude.sh"
-
-cd src
-
-report_file="report.json"
-# Check if the report file exists and has failures.
-if [ -f $report_file ] && grep -Eq "\"failures\": [1-9]" $report_file; then
- # Calling the BF Suggestion server endpoint to start feature extraction.
- payload="{\"task_id\": \"${task_id}\", \"execution\": ${execution}}"
- echo "Sending task info to the BF suggestion service"
- # The --user option is passed through stdin to avoid showing in process list.
- user_option="--user ${bfsuggestion_user}:${bfsuggestion_password}"
- curl --header "Content-Type: application/json" \
- --data "$payload" \
- --max-time 10 \
- --silent \
- --show-error \
- --config - \
- https://bfsuggestion.corp.mongodb.com/tasks <<< $user_option
- echo "Request to BF Suggestion service status: $?"
-fi