Skip to content

Additions to ProdOps Slackbot

Brian Rhea requested to merge add-release-post-slack-messages into main

Summary

This MR will add the Slack announcements and reminders that have been done manually by the release post manager. The announcements it replaces are listed in #4489 (closed)

  • Creates bin/send-slackbot-messages which will be triggered in the pipeline on an hourly basis
  • Adds a send_slack_messages job to the pipeline in .gitlab-ci.yml
  • Modifies config/slackbot_messages.yml to add a blocks_file key to each message block. This keeps the primary yml file clean as the message blocks can be lengthy.
  • Adds a dry_run option to lib/prod_ops_slackbot.rb. When dry_run is passed as true, as in bin/send-slackbot-messages true, all the messages are sent to a #prodops-slackbot-test channel.
  • Adds a utc_hour_of_day option if the message should be sent on a specific hour of the day in UTC time
  • Adds the templates/slack_blocks directory to hold all the message block files
Edited by Brian Rhea

Merge request reports