Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for Rollback Medic

A deploy can pass every test and still break production. Rollback Medic is a GitLab Duo Agent Platform flow that handles the hours after that deploy.

The demo app is a small storefront with a pipeline that tests, builds, scans with Secret Detection and SAST, packages and deploys it, then probes it with a post-deploy health_check. In the demo, a plausible checkout change passes every unit test, then fails the health check with 4 of 11 requests erroring, an error rate of 36% against a 5% limit.

When the pipeline fails, the Duo flow takes over. It reads the failing job log, the recent commits and the diffs. It ranks the suspect commit and opens a revert merge request and an incident issue, both written in plain English with the evidence. Then it stops at a human approval gate (Approve, Modify or Reject). It never merges on its own. After a person approves and merges the revert, the pipeline goes green. A second trigger fires, and the flow writes a postmortem and closes the incident.

How GitLab is used: CI/CD stages and environments, Secret Detection and SAST templates, a custom Duo flow in YAML with two pipeline triggers, a human input gate, merge requests and incident issues, CODEOWNERS and a Duo agent config.

Everything in the video is from a real run on GitLab.com. The approval-button scene and some concept graphics are illustrations, and the video says so. The code and flow files are MIT-licensed.

Built With

Share this project:

Updates

Submission history