From 4e8c28c9f377d527105e149cd1f8ec86a7119cd2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 3 May 2024 00:42:15 +0100 Subject: [PATCH] Add daily email for 2024-05-01 Broken pipeline? Fix or revert it. --- source/_daily_emails/2024-05-01.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 source/_daily_emails/2024-05-01.md diff --git a/source/_daily_emails/2024-05-01.md b/source/_daily_emails/2024-05-01.md new file mode 100644 index 000000000..406eee04d --- /dev/null +++ b/source/_daily_emails/2024-05-01.md @@ -0,0 +1,30 @@ +--- +title: Broken pipeline? Fix or revert it. +date: 2024-05-01 +permalink: archive/2024/05/01/broken-pipeline-fix-or-revert-it +tags: + - software-development + - continuous-integration + - trunk-based-development +cta: ~ +snippet: | + What do you do if someone's pushed a failing commit and broken the CI pipeline? +--- + +If you're doing trunk-based development where multiple people are committing and pushing work to the same branch, what do you do if you've pushed a commit that fails the checks and breaks the pipeline? + +This is a bad state and needs to be solved as soon as possible as it's causing a problem for everyone else. + +If the pipeline is failing, someone else could push a change and have it fail for a different reason, but wouldn't know. + +The responsibility is on the person who pushed the failing commit to resolve it and get the pipeline passing again as soon as possible. + +You break it, you bought it. + +Hopefully, the changes in the failing commit are small and it's something you can resolve quickly and push a fixed commit. + +If you can't fix it within a few minutes, revert the failing commit and try again. + +What if someone's pushed a failing commit and hasn't fixed it in a timely manner? + +Revert it for them, fix the pipeline and unblock the rest of the team.