getsentry / eng-pipes

Automations for the Engineering organization ([get]sentry CI/CD tooling, metrics, issues/label management, ...)
Apache License 2.0
5 stars 1 forks source link

[SRE-176] Add run-custom-job replyCallback to produce stage update Slack notifications for GoCD Job Runner #833

Closed shashjar closed 2 weeks ago

shashjar commented 1 month ago

Adds a replyCallback to the goCDCustomJobRunnerFeed, producing messages in thread when run-custom-job (GoCD Job Runner) stages pass, fail, or are cancelled. The unknown (running) stage result is ignored.

Moves a few functions out of DeployFeed into gocdSlackFeeds/stage.ts.

The Slack reply message looks roughly like:

run-custom-job stage update (header)

stage name    stage result with link to stage overview

divider

cc'ing the user who started this deployment: @user
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.04%. Comparing base (7ec457c) to head (651c2b2). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #833 +/- ## ========================================== + Coverage 89.02% 89.04% +0.02% ========================================== Files 126 127 +1 Lines 3698 3715 +17 Branches 760 745 -15 ========================================== + Hits 3292 3308 +16 - Misses 374 395 +21 + Partials 32 12 -20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.