Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .evergreen/execute-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,25 @@ set +a

cd ${REPO_NAME}

bash ${ROOT_DIR}/${DIR}/run.sh
MAX_ATTEMPTS=3
ATTEMPT=1
EXIT_CODE=0
set +e

while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
bash ${ROOT_DIR}/${DIR}/run.sh

EXIT_CODE=$?

if [ $EXIT_CODE -eq 0 ]; then
break
else
echo "Tests failed on attempt $ATTEMPT of $MAX_ATTEMPTS..."
((ATTEMPT++))
fi
done

if [ $EXIT_CODE -ne 0 ]; then
echo "Tests failed after $MAX_ATTEMPTS attempts."
fi
exit $EXIT_CODE
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ evergreen patch -p ai-ml-pipeline-testing --param REPO_ORG=caseyclements --param

### Handling Failing Tests

Tests are run periodically (nightly) and any failures will propagate into both the `dbx-ai-ml-testing-pipline-notifications` and `dbx-ai-ml-testing-pipeline-notifications-{language}` channel. Repo owners of this `ai-ml-testing-pipeline` library are required to join the `dbx-ai-ml-testing-pipeline-notifications`. Pipeline specific implementers must **at least** join `dbx-ai-ml-testing-pipline-notifications-{language}` (e.g. whomever implemented `langchain-js` must at least be a member of `dbx-ai-ml-testing-pipeline-notifications-js`).
Tests are run periodically (nightly). All failing test suites are automatically retried up to two times. Any failures will propagate into both the `dbx-ai-ml-testing-pipline-notifications` and `dbx-ai-ml-testing-pipeline-notifications-{language}` channel. Repo owners of this `ai-ml-testing-pipeline` library are required to join the `dbx-ai-ml-testing-pipeline-notifications`. Pipeline specific implementers must **at least** join `dbx-ai-ml-testing-pipline-notifications-{language}` (e.g. whomever implemented `langchain-js` must at least be a member of `dbx-ai-ml-testing-pipeline-notifications-js`).

If tests are found to be failing, and cannot be addressed quickly, the responsible team MUST create a JIRA ticket within their team's project (e.g. a python failure should generate an `INTPYTHON` ticket), and disable the relevant tests
in the `config.yml` file, with a comment about the JIRA ticket that will address it.
Expand Down