Skip to content

Conversation

Julien-Ben
Copy link
Collaborator

@Julien-Ben Julien-Ben commented Oct 2, 2025

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.

Copy link

github-actions bot commented Oct 2, 2025

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.5.0 Release Notes

New Features

  • Improve automation agent certificate rotation: the agent now restarts automatically when its certificate is renewed, ensuring smooth operation without manual intervention and allowing seamless certificate updates without requiring manual Pod restarts.

Bug Fixes

  • MongoDBMultiCluster: fix resource stuck in Pending state if any clusterSpecList item has 0 members. After the fix, a value of 0 members is handled correctly, similarly to how it's done in the MongoDB resource.

fi

EVERGREEN_API="https://evergreen.mongodb.com/api"
MAX_RETRIES="${EVERGREEN_MAX_RETRIES:-3}"
Copy link
Collaborator Author

@Julien-Ben Julien-Ben Oct 2, 2025

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.

Copy link
Member

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?

Copy link
Collaborator Author

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'))
Copy link
Collaborator Author

@Julien-Ben Julien-Ben Oct 2, 2025

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

@Julien-Ben Julien-Ben added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Oct 2, 2025
@Julien-Ben Julien-Ben marked this pull request as ready for review October 2, 2025 14:08
@Julien-Ben Julien-Ben requested a review from a team as a code owner October 2, 2025 14:08
fi

EVERGREEN_API="https://evergreen.mongodb.com/api"
MAX_RETRIES="${EVERGREEN_MAX_RETRIES:-3}"
Copy link
Member

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?

@Julien-Ben Julien-Ben merged commit 6611d46 into master Oct 3, 2025
33 of 38 checks passed
@Julien-Ben Julien-Ben deleted the jben/reduce-retries branch October 3, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Use this label in Pull Request to not require new changelog entry file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants