[wp-trac] [WordPress Trac] #52644: Configure Slack notifications for GitHub Action workflows

WordPress Trac noreply at wordpress.org
Fri Jul 30 13:08:00 UTC 2021


#52644: Configure Slack notifications for GitHub Action workflows
------------------------------+---------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  5.9
Component:  Build/Test Tools  |     Version:  5.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by desrosj):

 Looks like [51511] is doing the trick!

 Some notes:

 - This will post every non-pull request workflow failure to #core.
 - Unfortunately, because this requires the job to actually run, a
 notification will not be posted if the job times out or fails due to a
 failure at the service level, such as a GitHub Action outage, or a runner
 that hangs and times out.
 - In Travis, there was a setting to post the first successful job
 following a failure to Slack. There is no straightforward way to
 accomplish this in GHA. It could be accomplished with a combination of
 REST API calls, but haven't figured out the best way for this yet.
 - We could also post all workflow results regardless of outcome to the
 #core-firehose.
 - We could also create a #core-ci channel that also receives a post for
 all workflow results regardless of outcome.
 - This will need to be backported to all branches so that Slack
 notifications are posted when old branches have failed workflow runs.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52644#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list