-
Notifications
You must be signed in to change notification settings - Fork 338
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
Post error test results to Slack #4404
Conversation
cb2b1d2
to
fe6bc4d
Compare
So I believe this might be quite noisy, but it's working for now so I thought we can merge and tweak as needed. |
.circleci/config.yml
Outdated
@@ -461,6 +472,7 @@ jobs: | |||
- run: | |||
name: Check pods and deployment targets | |||
command: bundle exec fastlane check_pods | |||
- slack-notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also runs on PRs, we don't need it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm pod-lib-lint is executed also in main
right? I'm planning to only remove the ones for jobs that are not supposed to run on main never
.circleci/config.yml
Outdated
@@ -1080,6 +1111,7 @@ jobs: | |||
- run: | |||
name: Prepare next version | |||
command: bundle exec fastlane prepare_next_version | |||
- slack-notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love we are going to get notified by this
.circleci/config.yml
Outdated
@@ -1188,6 +1224,7 @@ jobs: | |||
path: fastlane/test_output | |||
- store_artifacts: | |||
path: fastlane/test_output | |||
- slack-notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shouldn't run this on lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually runs on main
. I think the chances of merging something breaking this would be low, but better to keep it. Lmk if you think otherwise!
e04cde2
to
cd3c29a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding a slack-notify
step to every job, can we add a slack-notify
job to certain workflows? That way we can more easily make it notify on main
only.
We can make the job only run when the test job failed, for instance like so:
- slack-notify:
requires:
- lint: failed
Hmm that's interesting... I can try that, thanks! I guess we might lose the data of what jobs failed in Slack though, not sure if it's that important though. |
Well, I think we can make it, only that it won't be as personalized, as I mentioned in my previous comment. Nvm then! |
cd3c29a
to
8edc6c2
Compare
8edc6c2
to
c63d92c
Compare
An update here. We haven't had time to dedicate to this yet, so we're planning on merging the approach of a notification as a step of each job, instead of a separate job in the workflow for now. We can revisit this later, when we can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have this! Just a naming suggestion.
Description
This adds a slack notification to all CircleCI jobs that error out. Currently posts to the #feed-circleci-ios-failures