ENGINEERING

GitLab MR Pipeline Slowdown Reviewer Comment

On each merge-request pipeline, compares its duration to the target branch's recent baseline and, if this MR's changes slowed CI, posts a GitLab comment on the MR naming…

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab merge-request pipeline finishedGitLabGitLab
  • ActionFetch target-branch baseline pipelinesGitLabGitLab
  • LogicDetect MR-introduced slowdown; stop if clean
  • ActionBisect stage that grew most under the MRGitLabGitLab
  • OutputComment regression evidence on the MRGitLabGitLab

What it does

It shifts CI-duration regressions left to the merge request. When an MR pipeline finishes, it compares that run against the target branch's recent baseline. If the MR's changes made the pipeline slower, it bisects to the responsible stage and leaves a comment on the MR itself, so the author sees the cost of their change before it lands.

When to use it

Use it when slow CI regressions keep slipping into main because nobody reviews pipeline timing during code review. This puts the regression evidence right in the MR thread, making it part of the merge conversation instead of a post-merge surprise.

How it works

  1. 1A GitLab pipeline webhook fires for a merge-request pipeline.
  2. 2The flow fetches recent target-branch pipelines to establish the expected duration.
  3. 3A logic step checks whether the MR run exceeds the baseline beyond the allowed margin; clean MRs stop here.
  4. 4It bisects per-job timings to the stage that grew most under this MR.
  5. 5A comment is posted on the merge request naming the stage, the delta, and a suggestion to investigate before merging.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  3. 3
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  4. 4
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.