Skip to content

Commit f848462

Browse files
authored
Merge pull request #9853 from woocommerce/use-updated-annotate-test-failures-plugin
Send Slack notification for UI/Unit test failures
2 parents 2e8ac7e + 06c13dd commit f848462

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

.buildkite/cache-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
common_params:
88
# Common plugin settings to use with the `plugins` key.
99
- &common_plugins
10-
- automattic/a8c-ci-toolkit#2.13.0
10+
- automattic/a8c-ci-toolkit#2.17.0
1111
- automattic/git-s3-cache#1.1.4:
1212
bucket: "a8c-repo-mirrors"
1313
# This is not necessarily the actual name of the repo or the GitHub organization

.buildkite/commands/run-ui-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ else
4747
echo "The UI Tests, which ran inside the '🧪 Testing' section above in the logs, have failed."
4848
echo "For more details about the failed tests, check the Buildkite annotation, the logs under the '🧪 Testing' section and the \`.xcresult\` and test reports in Buildkite artifacts."
4949
fi
50-
annotate_test_failures "fastlane/test_output/WooCommerce.xml"
50+
51+
if [[ $BUILDKITE_BRANCH == trunk ]] || [[ $BUILDKITE_BRANCH == release/* ]]; then
52+
annotate_test_failures "fastlane/test_output/WooCommerce.xml" --slack "build-and-ship"
53+
else
54+
annotate_test_failures "fastlane/test_output/WooCommerce.xml"
55+
fi
5156

5257
exit $TESTS_EXIT_STATUS

.buildkite/commands/run-unit-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ else
3636
echo "The Unit Tests, which ran inside the '🧪 Testing' section above in the logs, have failed."
3737
echo "For more details about the failed tests, check the Buildkite annotation, the logs under the '🧪 Testing' section and the \`.xcresult\` and test reports in Buildkite artifacts."
3838
fi
39-
annotate_test_failures "fastlane/test_output/WooCommerce.xml"
39+
40+
if [[ $BUILDKITE_BRANCH == trunk ]] || [[ $BUILDKITE_BRANCH == release/* ]]; then
41+
annotate_test_failures "fastlane/test_output/WooCommerce.xml" --slack "build-and-ship"
42+
else
43+
annotate_test_failures "fastlane/test_output/WooCommerce.xml"
44+
fi
4045

4146
exit $TESTS_EXIT_STATUS

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
common_params:
33
# Common plugin settings to use with the `plugins` key.
44
- &common_plugins
5-
- automattic/a8c-ci-toolkit#2.16.0
5+
- automattic/a8c-ci-toolkit#2.17.0
66
- automattic/git-s3-cache#1.1.4:
77
bucket: "a8c-repo-mirrors"
88
# This is not necessarily the actual name of the repo or the GitHub organization

.buildkite/release-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
common_params:
55
# Common plugin settings to use with the `plugins` key.
66
- &common_plugins
7-
- automattic/a8c-ci-toolkit#2.13.0
7+
- automattic/a8c-ci-toolkit#2.17.0
88
- automattic/git-s3-cache#1.1.4:
99
bucket: "a8c-repo-mirrors"
1010
# This is not necessarily the actual name of the repo or the GitHub organization

0 commit comments

Comments
 (0)