Skip to content

ci: add Slack notifications to release workflow#240

Merged
hedgar2017 merged 17 commits intomainfrom
ci/release-slack-notifications
Feb 27, 2026
Merged

ci: add Slack notifications to release workflow#240
hedgar2017 merged 17 commits intomainfrom
ci/release-slack-notifications

Conversation

@nebasuke
Copy link
Member

@nebasuke nebasuke commented Feb 24, 2026

Summary

  • Adds a notify-deploy job that sends a "Review requested" Slack message after the review stage passes, before the solx-release environment approval gate
  • Adds a "Deployment starting" notification as the first step of publish, firing after environment approval
  • Both notifications use continue-on-error: true so Slack outages never block releases
  • PR dry-runs skip both notifications entirely
  • Uses the same action (slackapi/slack-github-action@v2.1.1), pinning, and secret (PUBLISHING_NOTIFICATIONS_SLACK_WEBHOOK_URL) as edr

Test plan

  • Verified Slack webhook integration via temporary test notification step (since removed)
  • Validate Block Kit payloads in Slack Block Kit Builder
  • After merge, verify with a workflow_dispatch pre-release that both real notifications arrive

Split the monolithic prepare-release job into three environment-gated
stages so elevated permissions are only granted to the final publish
job, which requires manual approval. This v2 workflow runs in dry-run
mode for validation before replacing the original release.yaml.
…release-v2

- Guard platform-toggle block with event_name check so inputs are only
  read on workflow_dispatch, preventing an empty build matrix on
  pull_request events.
- Replace find|while subshell loop with sha256sum --check so a failed
  checksum actually fails the step.
PR ref names (e.g. `237/merge`) contain a slash which breaks the
binary mv in build-rust. Use `pr<number>` instead for pull_request events.
Only use github.ref_name when ref_type is 'tag'; otherwise fall back
to inputs.prerelease_suffix or 'notag'. This avoids slashes in paths
from any non-tag ref (PRs, branches) without event-specific guards.
The review job was skipped on PR builds because get-previous-release
(a transitive dependency via prepare) was skipped. GitHub Actions
propagates skipped status through the needs chain unless overridden.
Add !cancelled() + result check so review runs whenever prepare succeeds.
Replace the temporary unconditional pull_request trigger with a proper
label-gated mechanism matching the pattern used by integration-tests
and coverage workflows:

- Add label-check job gating on `ci:release` label (blocks forks)
- Run get-previous-release and changelog builder for PRs so dry-run
  output is realistic
- Handle pull_request event in release name identification to avoid
  stripping `refs/pull/*/merge` as a tag
- Skip the `release` environment approval gate for PR dry-runs
- Remove obsolete TODO comment about temporary trigger
The previous pin (v2, SHA 27d65e1) internally used
actions/cache/restore@v4 and actions/cache/save@v4 (unpinned tags),
which violates the org's SHA-pinning policy. v2.23.0 pins its cache
dependencies to full SHAs.
Delete release-v2.yaml — its 3-stage architecture (prepare/review/publish),
per-job permissions, SHA256 checksums, and bundle/review gate are now in
release.yaml alongside the production publish steps (attestation, softprops,
deploy-docs, check-install-script).

Remove the `always()` + `skipped` conditionals by making get-previous-release
always run (~10s read-only gh call) and dropping it from prepare's needs
(only publish consumes its output).
- Remove unused `tarball_name` output from prepare job
- Make `get-previous-release` resilient to fresh repos with no releases
- Add `permissions: contents: read` to `check-install-script` job
- Add checksum file count validation before `sha256sum --check`
- Clarify macOS universal binary condition with explicit trigger paths
- Add `|| github.sha` fallback to `target_commitish` for tag releases
- Trim `deploy-docs` permissions to only `contents: write`
- Remove dead code: unused `id: bundle` and `tarball_name` step output
- Add explicit `if` on publish job to tolerate get-previous-release failure
- Fix double ${{ }} evaluation in review job condition
- Increase artifact retention from 2 to 5 days for manual approval window
- Add `opened` to PR event types for pre-labeled PRs
- Enforce exact binary count (4) for tag releases to catch partial builds
Add "Review requested" and "Deployment starting" Slack notifications
to the release pipeline, matching the pattern used in edr. A new
notify-deploy job fires before the solx-release environment gate,
and a step inside publish fires after approval. Both use
continue-on-error: true so Slack outages never block releases.
PR dry-runs skip notifications entirely.
Temporary step in the review job that sends a test Slack message
during PR dry-runs to verify webhook integration. Clearly marked
as [TEST] and must be removed before merging.
@nebasuke nebasuke added the ci:release Trigger dry-run release workflow on PR label Feb 24, 2026
No need to wait for the full build pipeline — the test job now runs
as a standalone job gated only on label-check.
The webhook integration has been verified; remove the test-only
test-slack-notification job added for PR dry-run testing.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Slack notifications to the release workflow to improve visibility around the manual environment approval gate for solx-release.

Changes:

  • Introduces a notify-deploy job to send a “Review requested” Slack message after review completes and before the environment gate.
  • Adds a “Deployment starting” Slack notification as the first step in publish (after environment approval).
  • Updates publish job dependencies to include the new notification job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Job-level continue-on-error shows a red job in the UI even when
the failure is intentionally tolerated. Step-level keeps the job
green while still never blocking the release pipeline.
@nebasuke nebasuke requested a review from a team February 26, 2026 13:37
Base automatically changed from release-v2-workflow to main February 26, 2026 22:15
Copy link
Contributor

@hedgar2017 hedgar2017 left a comment

Choose a reason for hiding this comment

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

Looks good. Clean, minimal change — SHA-pinned action, step-level continue-on-error, correct dependency chain, PR dry-runs properly excluded. No issues found.

@hedgar2017 hedgar2017 merged commit d11dfb8 into main Feb 27, 2026
42 checks passed
@hedgar2017 hedgar2017 deleted the ci/release-slack-notifications branch February 27, 2026 14:23
@nebasuke nebasuke deployed to solx-release February 27, 2026 15:03 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:release Trigger dry-run release workflow on PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants