A question I often run into in our trunk-based project at work is:
Can I push onto the current master, or is it broken again?
Yes, one should primarily concern oneself with the root cause of this question even existing and attempt to fix it, but I’m afraid in this project it’s a lost cause. So instead, I’ve taken to the next best thing I could think of: preventing myself and fellow team members from pushing more changes on a red pipeline and making things even worse™.
Introducing the Pipeline Stoplight, or: “Don’t push unless this thing is green”:
Making it was a nice, fairly simple DIY exercise combining the following aspects:
- 3D printing (the casing)
- Electronics (simple circuit design and soldering)
- Arduino programming (reading the pipeline status from the GitLab API via WiFi)