Skip to content

feat(ci-test-notify): add info status for informational notices#160

Open
Piotr1215 wants to merge 1 commit into
mainfrom
devops-577/ci-test-notify-info-status
Open

feat(ci-test-notify): add info status for informational notices#160
Piotr1215 wants to merge 1 commit into
mainfrom
devops-577/ci-test-notify-info-status

Conversation

@Piotr1215

Copy link
Copy Markdown
Contributor

Adds an info status to the ci-test-notify action for standalone informational Slack pings (a deploy landed, a release candidate reached staging), where success/failure would force a misleading pass/fail header and suffix.

What

  • build-payload.sh: new info case, rocket emoji, no status suffix. Header assembly omits the trailing suffix only when empty, so existing success/failure/cancelled/skipped headers are byte-for-byte unchanged.
  • should-notify.sh: info always notifies (still suppressed on an empty webhook, e.g. fork PRs). Gating for cancelled/skipped is untouched.
  • action.yml + README.md: document the status; regenerated the auto-doc input table.
  • bats: added info coverage to build-payload.bats and should-notify.bats.

Why

hosted-platform PR #530 hand-rolls a jq+curl Slack POST to tell QA an RC deployed to staging. That duplicates the gate/payload/send logic already in this action. This is the smallest additive change that lets that workflow reuse ci-test-notify instead. See the reuse-first convention.

Tests

  • make test-ci-test-notify — 33/33 pass (2 new).
  • shellcheck clean on both scripts.
  • make generate-docs run; no drift outside this action.

References DEVOPS-577.

Callers that want a standalone Slack ping (a deploy landed, an RC reached
staging) had no fitting status: success and failure force a pass/fail
header with a "Success"/"Failed" suffix that misreads an informational
notice, and the fallback case renders "Unknown".

Add an `info` status that always notifies (still suppressed on an empty
webhook, same as before) and renders a rocket header with no status
suffix. This lets hosted-platform's staging RC notification reuse this
action instead of hand-rolling a jq+curl Slack POST that duplicates the
gate, payload, and send logic already living here (DEVOPS-577).
@Piotr1215 Piotr1215 requested a review from sydorovdmytro July 2, 2026 09:06
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.

1 participant