From 7a12fd9ac4550bfb35f2fa5bfb7d193cf8ea6156 Mon Sep 17 00:00:00 2001 From: David Bradford Date: Mon, 25 Oct 2021 13:09:12 -0400 Subject: SERVER-60971: Remove calls to BF Suggestion service (cherry picked from commit bb31ac84744de48a5013ee747c08ee942e317eb3) --- etc/evergreen.yml | 10 ---------- etc/query.yml | 10 ---------- evergreen/functions/bf_suggestion_service_call.sh | 22 ---------------------- 3 files changed, 42 deletions(-) delete mode 100755 evergreen/functions/bf_suggestion_service_call.sh diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 712eaffb0bc..5bd678d2b8c 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -714,15 +714,6 @@ functions: - *f_expansions_write - *set_up_remote_credentials - "call BF Suggestion service": - - *f_expansions_write - - command: subprocess.exec - params: - binary: bash - silent: true - args: - - "./src/evergreen/functions/bf_suggestion_service_call.sh" - "upload debugsymbols": &upload_debugsymbols command: s3.put params: @@ -1982,7 +1973,6 @@ post: - func: "attach report" - func: "attach artifacts" - func: "save ec2 task artifacts" - - func: "call BF Suggestion service" - func: "attach wiki page" - func: "kill processes" - func: "save local client logs" diff --git a/etc/query.yml b/etc/query.yml index 4f188133a00..d101006a7b5 100644 --- a/etc/query.yml +++ b/etc/query.yml @@ -680,15 +680,6 @@ functions: - *f_expansions_write - *set_up_remote_credentials - "call BF Suggestion service": - - *f_expansions_write - - command: subprocess.exec - params: - binary: bash - silent: true - args: - - "./src/evergreen/functions/bf_suggestion_service_call.sh" - "upload debugsymbols": &upload_debugsymbols command: s3.put params: @@ -1877,7 +1868,6 @@ post: - func: "attach report" - func: "attach artifacts" - func: "save ec2 task artifacts" - - func: "call BF Suggestion service" - func: "attach wiki page" - func: "kill processes" - func: "save local client logs" 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 -- cgit v1.2.1