-
Notifications
You must be signed in to change notification settings - Fork 547
DEVPROD-20053 - Remove perf.send from latest release branch #1433
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 all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4c075d5
remove perf send
0cf9f1b
Update .evergreen/scripts/send-perf-data.sh
MAhmadShah 806dfd6
Update .evergreen/scripts/send-perf-data.sh
MAhmadShah 06341a8
Update .evergreen/config_generator/components/benchmarks.py
MAhmadShah 9e6a268
make script executable
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
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
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,30 @@ | ||||||||||
| #!/usr/bin/env bash | ||||||||||
|
|
||||||||||
| set -o errexit | ||||||||||
| set -o pipefail | ||||||||||
|
|
||||||||||
| # We use the requester expansion to determine whether the data is from a mainline evergreen run or not | ||||||||||
| if [ "${requester:?}" == "commit" ]; then | ||||||||||
| is_mainline=true | ||||||||||
| else | ||||||||||
| is_mainline=false | ||||||||||
| fi | ||||||||||
|
|
||||||||||
| # Parse the username out of the order_id. Patches append the username. The raw perf results end point does not need the other information. | ||||||||||
| parsed_order_id=$(echo "${revision_order_id}" | awk -F'_' '{print $NF}') | ||||||||||
|
|
||||||||||
| response=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X 'POST' \ | ||||||||||
| "https://performance-monitoring-api.corp.mongodb.com/raw_perf_results/cedar_report?project=${project_id}&version=${version_id}&variant=${build_variant}&order=${parsed_order_id}&task_name=${task_name}&task_id=${task_id}&execution=${execution}&mainline=${is_mainline}" \ | ||||||||||
| -H 'accept: application/json' \ | ||||||||||
| -H 'Content-Type: application/json' \ | ||||||||||
| -d @results.json) | ||||||||||
| http_status=$(echo "$response" | grep "HTTP_STATUS" | awk -F':' '{print $2}') | ||||||||||
| response_body=$(echo "$response" | sed '/HTTP_STATUS/d') | ||||||||||
|
Comment on lines
+21
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
SC2086. Also applies to other instances of |
||||||||||
| # We want to throw an error if the data was not successfully submitted | ||||||||||
| [[ "${http_status:?}" -eq 200 ]] || { | ||||||||||
| echo "Error: Received HTTP status $http_status" | ||||||||||
| echo "Response Body: $response_body" | ||||||||||
| exit 1 | ||||||||||
| } >&2 | ||||||||||
| echo "Response Body: $response_body" | ||||||||||
| echo "HTTP Status: $http_status" | ||||||||||
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.