mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
## Description - announce a GitHub Release in Slack only after `create-release` has successfully uploaded its assets - build an accessible Block Kit payload with the exact release name, tag, repository, actor, and GitHub Release link - isolate the incoming webhook to the delivery step and fail closed on missing configuration or an unexpected Slack response - add a reproducible `act` smoke workflow whose `ACT=true` guard builds and validates the production payload without sending network traffic ## Changes Made - Adds a gated release-notification job, a local composite action, a payload builder, and smoke/regression coverage. ## Boundary and rollout This notification means **the GitHub Release and its assets are ready**. It intentionally does not claim that every package registry publish succeeded, matching the existing `create-release` contract. Configure `SLACK_RELEASES_WEBHOOK_URL` as a repository Actions secret containing an incoming webhook already bound to `#headroom`. Slack incoming webhooks cannot override their configured channel. No Slack request was made while developing or validating this PR. This is additive to the current publication flow and does not implement or bypass the future Gate B work tracked by Linear HEAOSS-19. ## Testing - Rebased onto current `main` at `94206e265`; refreshed focused qualification on `477f68047`. - [x] Focused tests pass ### Test Output ```text 68 passed ``` - `uv run --extra dev pytest tests/test_release_workflows.py tests/test_release_version.py -q` (68 passed) - `uv run --extra dev ruff check .github/actions/release-slack-notification/build_payload.py tests/test_release_workflows.py` - `uv run --extra dev ruff format --check .github/actions/release-slack-notification/build_payload.py tests/test_release_workflows.py` - `actionlint .github/act/release-slack-notification.yml .github/workflows/release.yml` - `act workflow_dispatch -W .github/act/release-slack-notification.yml -j smoke --pull=false` ## Type of Change - [x] CI / release automation ## Real Behavior Proof - Environment: maintainer macOS/Python 3.13 checkout at aedf2c2e. - Exact command / steps: `python -m pytest tests/test_release_workflows.py tests/test_release_version.py -q`. - Observed result: 68 passed; current hosted build, test and security checks pass. Payload and workflow guards are covered by the focused tests. - Not tested: delivery to the production Slack webhook. No notification or release was sent during this review. ## Runtime Rollout Safety - Rollout-managed feature(s): no runtime feature; release notification only. - Minimum rollout channel: human-reviewed repository workflow deployment. - Stable/default behavior changed: successful GitHub Release asset publication triggers the notification. - Kill switch / disable path: disable or revert the notification job; missing webhook configuration fails that job. - Unsafe override required: no. - Qualification impact: notification signifies GitHub Release assets ready, not registry-wide publication success. - Rollback path: revert the additive notification workflow/action. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review
13 lines
345 B
JSON
13 lines
345 B
JSON
{
|
|
"action": "published",
|
|
"release": {
|
|
"tag_name": "v0.9.2",
|
|
"name": "Release v0.9.2",
|
|
"html_url": "https://github.com/headroomlabs-ai/headroom/releases/tag/v0.9.2",
|
|
"draft": false,
|
|
"prerelease": false,
|
|
"body": "## What's Changed\n\n* fix: example change for act dry-run simulation"
|
|
},
|
|
"ref": "refs/tags/v0.9.2"
|
|
}
|