Skip to content
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

Update annotate_test_failures to only send Slack notification for trunk merges #6300

Merged
merged 4 commits into from
Oct 19, 2023
Merged
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
7 changes: 6 additions & 1 deletion .buildkite/commands/test-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ else
echo "npm run $TESTS_CMD failed."
echo "For more details about the failed tests, check the Buildkite annotation, the logs under the '$SECTION' section and the tests results in the artifacts tab."

annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE" --slack "build-and-ship"
if [[ $BUILDKITE_BRANCH == trunk ]]; then
annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE" --slack "build-and-ship"
else
annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE"
fi

exit $TESTS_EXIT_CODE
fi
Loading