Skip to content

buildchecker: pipeline failure detection and branch locking

Administrator requested to merge buildsherrif into main

Created by: bobheadxi

This will run as an automated cron every ~15mins, and it will do the following:

  • get a page of recent builds and check if:
    • the most recent build is failed
    • that failure is consecutive
  • if no issues detected, remove branch push restrictions
    • if restrictions were removed, post in slack
  • if an issue is detected:
    • try and find github handles for the relevant authors of the commits
    • lock main branch: this is done by restricting push to these build authors + the devx team
    • post in slack if this is a new restriction (existing restrictions won't be overwritten)

I've tried to include some extensive testing because this is definitely not something we want misbehaving 😬

Close https://github.com/sourcegraph/sourcegraph/issues/25482 and https://github.com/sourcegraph/sourcegraph/issues/28834 and https://github.com/sourcegraph/sourcegraph/issues/29005

Notes:

Merge request reports

Loading