Skip to content

fix: collapse Slack notification jobs into helm-deploy steps - #120

Merged
alovh merged 3 commits into
mainfrom
slack-step
Jul 2, 2026
Merged

fix: collapse Slack notification jobs into helm-deploy steps#120
alovh merged 3 commits into
mainfrom
slack-step

Conversation

@henrik242

Copy link
Copy Markdown
Contributor

The deploy workflow graph showed five Slack jobs (slack-pending, slack-pending-notify, prepare-slack, slack-notify, slack-approved-react) as skipped boxes on every run without Slack enabled.

  • Merge pending-approval check, message build and post into a single slack-pending job using the gha-slack composite actions. It must stay a separate job: the environment approval gate blocks helm-deploy's steps, so a pre-approval notification cannot run inside it.
  • Move the approval reaction and deploy status message into conditional steps in helm-deploy.
  • Make Slack failures non-blocking via continue-on-error, so a Slack outage no longer fails a successful deploy.

Inputs, outputs and the secrets: inherit requirement are unchanged.

The deploy workflow graph showed five Slack jobs (slack-pending,
slack-pending-notify, prepare-slack, slack-notify, slack-approved-react)
as skipped boxes on every run without Slack enabled.

- Merge pending-approval check, message build and post into a single
  slack-pending job using the gha-slack composite actions. It must stay
  a separate job: the environment approval gate blocks helm-deploy's
  steps, so a pre-approval notification cannot run inside it.
- Move the approval reaction and deploy status message into conditional
  steps in helm-deploy.
- Make Slack failures non-blocking via continue-on-error, so a Slack
  outage no longer fails a successful deploy.

Inputs, outputs and the secrets: inherit requirement are unchanged.
@henrik242

Copy link
Copy Markdown
Contributor Author

@henrik242

Copy link
Copy Markdown
Contributor Author

Byggefeilen kan fikses hvis #121 merges først :)

Follow-up to the job collapse, addressing review findings:
- Bound each external Slack call with timeout-minutes: 1 so a hung or
  retrying Slack API (gha-slack defaults to ~5 retries over 5 min)
  cannot consume the deploy/rollback timeout budget.
- Add continue-on-error to the status-message builder and gate the
  result post on its success, so a Slack-side failure can never fail
  an otherwise-successful deploy.
- Warn (::warning::) when a deploy-status or approval notification
  fails or returns an empty message_ts, surfacing otherwise-silent
  channel / token / bot-invite misconfiguration.
@alovh
alovh merged commit ef73584 into main Jul 2, 2026
24 checks passed
@alovh
alovh deleted the slack-step branch July 2, 2026 10:05
@henrik242

henrik242 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@alovh 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants