ci: add shared e2e-staging Slack summary script - #223
Merged
Merged
Conversation
Add scripts/slack_summary.py with 'e2e-staging' mode for posting workflow
summaries to Slack. This enables a shared implementation for both bitkit-ios
and bitkit-android E2E staging nightlies.
Features:
- CLI mode: e2e-staging (rejects unknown modes)
- Posts plain {"text": ...} to SLACK_WEBHOOK_URL via urllib
- Skips gracefully (exit 0) if SLACK_WEBHOOK_URL is unset
- Status icon helpers (checkmarks, X, warning, etc.)
- Platform-aware title (iOS/Android)
Required env vars for app workflows:
- SLACK_WEBHOOK_URL: Slack incoming webhook
- PLATFORM: ios|android
- STAGING_RESULT: overall workflow result
- BUILD_RESULT, E2E_BRANCH_RESULT, E2E_TESTS_RESULT: job results
- RUN_URL, RUN_ATTEMPT: GitHub Actions context
- E2E_TESTS_REF (optional): resolved e2e-tests branch
Includes unit tests in scripts/test_slack_summary.py.
Co-authored-by: piotr-iohk <piotr-iohk@users.noreply.github.com>
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a shared Slack summary script for Bitkit E2E Staging nightlies, enabling a single implementation for both
bitkit-iosandbitkit-androidapp repos.Changes
scripts/slack_summary.py: New script withe2e-stagingCLI modescripts/test_slack_summary.py: Unit tests (14 tests covering status icons, platform display, message rendering)Features
{"text": ...}JSON toSLACK_WEBHOOK_URLvia urllib (no Slack action dependency)SLACK_WEBHOOK_URLis not set:white_check_mark:success,:x:failure,:warning:cancelled,:fast_forward:skippedMessage Format
Environment Variables for App Workflows
Required
SLACK_WEBHOOK_URLPLATFORMiosorandroidSTAGING_RESULTsuccess/failure/cancelled/...)BUILD_RESULTbuild-stagingjob resultE2E_BRANCH_RESULTe2e-branchjob resultE2E_TESTS_RESULTe2e-tests-stagingjob resultRUN_URLRUN_ATTEMPTOptional
E2E_TESTS_REFGITHUB_REPOSITORYsynonymdev/bitkit-ios)Usage in App Workflows
Call from the
slack-reportjob:Related
Testing
All 14 tests pass.