-
Notifications
You must be signed in to change notification settings - Fork 21
Reduce Evergreen retries to 1 #491
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
Conversation
MCK 1.5.0 Release NotesNew Features
Bug Fixes
|
fi | ||
|
||
EVERGREEN_API="https://evergreen.mongodb.com/api" | ||
MAX_RETRIES="${EVERGREEN_MAX_RETRIES:-3}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had this env variable set to 2
in the Evergreen project settings, for some reason it was not picked up by the script, so I just left an hardcoded value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to have it inside an include_expansions_in_env
block for the task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, do we think we need an env variable for that ?
echo "Finding failed tasks in BUILD ID: ${BUILD_ID}" | ||
# shellcheck disable=SC2207 | ||
TASK_IDS=($(curl -s -H "Api-User: ${EVERGREEN_USER}" -H "Api-Key: ${EVERGREEN_API_KEY}" ${EVERGREEN_API}/rest/v2/builds/"${BUILD_ID}"/tasks | jq ".[] | select(.status == \"failed\" and .execution <= ${MAX_RETRIES})" | jq -r '.task_id')) | ||
TASK_IDS=($(curl -s -H "Api-User: ${EVERGREEN_USER}" -H "Api-Key: ${EVERGREEN_API_KEY}" ${EVERGREEN_API}/rest/v2/builds/"${BUILD_ID}"/tasks | jq ".[] | select(.status == \"failed\" and .execution < ${MAX_RETRIES})" | jq -r '.task_id')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.execution
is the id from the last failing task. Executions are 0-indexed
fi | ||
|
||
EVERGREEN_API="https://evergreen.mongodb.com/api" | ||
MAX_RETRIES="${EVERGREEN_MAX_RETRIES:-3}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to have it inside an include_expansions_in_env
block for the task?
Summary
Instead of five total attempts for end-to-end tests, let's reduce it to two. Decided in today's Discuss meeting, 02/10/25
Proof of Work
Failing tests must restart only once.