Skip to content

ci: fail notify job when Slack webhook returns an error - #1739

Merged
kajalj22 merged 1 commit into
mainfrom
fix-slack-curl-fail-on-error
Jun 25, 2026
Merged

kajalj22 merged 1 commit into
mainfrom
fix-slack-curl-fail-on-error

Conversation

@kajalj22

@kajalj22 kajalj22 commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds -f flag to curl in the notify-failure job so the step fails (non-zero exit) when Slack returns an HTTP error (e.g. no_service for a revoked webhook), instead of silently succeeding with a useless 10-byte error body.

Test plan

  • Update SLACK_TEAM_CHANNEL_WEBHOOK secret to a valid webhook and verify the step succeeds with ok response

🤖 Generated with Claude Code

Without -f, curl exits 0 even on non-2xx responses (e.g. no_service),
causing the notify-failure job to silently succeed while no message is sent.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22
kajalj22 merged commit 445961b into main Jun 25, 2026
32 checks passed

This branch was previously deployed

1 inactive deployment
public — 383ceccd Deployed Jun 25, 2026 by copy-pr-bot[bot] via release / finalize / notify #447
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