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

Post error test results to Slack #4404

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
47 changes: 37 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
orbs:
macos: circleci/[email protected]
slack: circleci/slack@4.10.1
slack: circleci/slack@5.0.0
# Disabled until compatible with M1: codecov: codecov/[email protected]
# codecov: codecov/[email protected]

Expand Down Expand Up @@ -92,6 +92,13 @@ aliases:
only: main

commands:
slack-notify:
steps:
- slack/notify:
branch_pattern: main
channel: 'feed-circleci-ios-failures'
event: fail
template: basic_fail_1
set-maximum-duration:
parameters:
seconds:
Expand Down Expand Up @@ -461,6 +468,7 @@ jobs:
- run:
name: Check pods and deployment targets
command: bundle exec fastlane check_pods
- slack-notify
Copy link
Contributor

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

Copy link
Contributor Author

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


spm-release-build:
executor:
Expand Down Expand Up @@ -590,6 +598,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output
destination: scan-test-output
- slack-notify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also runs on every PR


run-revenuecat-ui-ios-18:
executor:
Expand Down Expand Up @@ -623,6 +632,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output
destination: scan-test-output
- slack-notify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same about running on every PR


spm-revenuecat-ui-watchos:
executor:
Expand Down Expand Up @@ -698,6 +708,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
- slack-notify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also runs on every PR


run-test-ios-17:
executor:
Expand Down Expand Up @@ -726,6 +737,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
- slack-notify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also runs on every PR


run-test-ios-16:
executor:
Expand Down Expand Up @@ -943,7 +955,6 @@ jobs:
steps:
- run-backend-tests:
test_plan: "BackendIntegrationTests-SK2"

backend-integration-tests-other:
executor:
name: macos-executor
Expand All @@ -964,7 +975,6 @@ jobs:
steps:
- run-backend-tests:
test_plan: "BackendIntegrationTests-CustomEntitlements"

release-checks:
executor:
name: macos-executor
Expand Down Expand Up @@ -1080,6 +1090,7 @@ jobs:
- run:
name: Prepare next version
command: bundle exec fastlane prepare_next_version
- slack-notify
Copy link
Contributor

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


installation-tests-cocoapods:
executor:
Expand Down Expand Up @@ -1188,6 +1199,7 @@ jobs:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output
- slack-notify
Copy link
Contributor

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

Copy link
Contributor Author

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!


danger:
docker:
Expand Down Expand Up @@ -1296,6 +1308,7 @@ jobs:
- run:
name: Build Paywalls Tester
command: bundle exec fastlane build_paywalls_tester_for_emerge
- slack-notify

deploy-to-spm:
docker:
Expand Down Expand Up @@ -1344,13 +1357,27 @@ workflows:
- not: << pipeline.parameters.generate_snapshots >>
- not: << pipeline.parameters.generate_revenuecatui_snapshots >>
jobs:
- lint
- run-test-ios-17
- run-test-ios-18
- pod-lib-lint
- run-revenuecat-ui-ios-17
- run-revenuecat-ui-ios-18
- emerge_purchases_ui_snapshot_tests
- lint:
context:
- slack-secrets-ios
- run-test-ios-17:
context:
- slack-secrets-ios
- run-test-ios-18:
context:
- slack-secrets-ios
- pod-lib-lint:
context:
- slack-secrets-ios
- run-revenuecat-ui-ios-17:
context:
- slack-secrets-ios
- run-revenuecat-ui-ios-18:
context:
- slack-secrets-ios
- emerge_purchases_ui_snapshot_tests:
context:
- slack-secrets-ios

create-tag:
when:
Expand Down