File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -226,11 +226,19 @@ pre_commit() {
226
226
run_job_in_background " python_formatting"
227
227
run_job_in_background " check_erroneous_kubebuilder_annotations"
228
228
run_job_in_background " validate_snippets"
229
- run_job_in_background " lint_helm_chart"
230
229
231
230
if wait_for_all_background_jobs; then
232
- echo -e " ${GREEN} pre-commit: All checks passed!${NO_COLOR} "
233
- return 0
231
+ # lint_helm_chart must be run after all the background jobs are finished because one of the BG jobs (update_jobs)
232
+ # updates the helm chart. And lint_helm_chart requires the helm chart to be updated already.
233
+ lint_helm_chart
234
+
235
+ local lint_helm_chart_status=$?
236
+ if [ " $lint_helm_chart_status " -eq 0 ]; then
237
+ echo -e " ${GREEN} pre-commit: All checks passed!${NO_COLOR} "
238
+ return 0
239
+ else
240
+ return 1
241
+ fi
234
242
else
235
243
return 1
236
244
fi
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if [ -z "${EVERGREEN_API_KEY}" ]; then
33
33
fi
34
34
35
35
EVERGREEN_API=" https://evergreen.mongodb.com/api"
36
- MAX_RETRIES=" ${EVERGREEN_MAX_RETRIES :- 3} "
36
+ MAX_RETRIES=1
37
37
38
38
# Define build variants to exclude
39
39
# We ignore openshift because they only run one test at a time.
@@ -49,7 +49,7 @@ BUILD_IDS=($(curl -s -H "Api-User: ${EVERGREEN_USER}" -H "Api-Key: ${EVERGREEN_A
49
49
for BUILD_ID in " ${BUILD_IDS[@]} " ; do
50
50
echo " Finding failed tasks in BUILD ID: ${BUILD_ID} "
51
51
# shellcheck disable=SC2207
52
- 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' ) )
52
+ 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' ) )
53
53
54
54
for TASK_ID in " ${TASK_IDS[@]} " ; do
55
55
echo " Retriggering TASK ID: ${TASK_ID} "
You can’t perform that action at this time.
0 commit comments