projects /

GitLab Browser Companion

Stop scrolling, start fixing: read a red GitLab pipeline in seconds instead of minutes.

  • JavaScript
  • Chrome / Brave / Edge
  • MIT

Summary

GitLab Browser Companion is an extension for Chrome, Brave and Edge (Manifest V3). On GitLab’s raw job log page it replaces the wall of text with a collapsible, color-coded, filterable view that opens already scrolled to the line that broke the pipeline. On the artifacts page it adds a browser that shows logs, JUnit reports, JSON, CSV, images and HTML reports right in the browser, without downloading the zip.

The raw log opens at the root cause: an AddressSanitizer report in the failing test, with the Problems panel on the right

Why it exists

A C++ project with a few thousand build steps and a hundred test executables easily produces a multi-megabyte job log. The failure is in there somewhere: a compiler error between two thousand Building CXX object lines, a sanitizer report in test 75 of 106, or a gtest assertion. Searching for error gives two thousand hits, thanks to -Werror, and passing tests that log protocol error: send you the wrong way.

What GitLab shows: the raw log, a wall of timestamps

I wanted the five minutes of scrolling and squinting to become one click.

What it does

Opens at the root cause

The viewer picks the first real failure: a compiler or linker error, a sanitizer report, a gtest failure, a crash, a CMake error or a Python traceback. For a build failure it skips Ninja’s terse FAILED: line and lands on the compiler message that explains it. Error-looking lines in tests that passed are left out, so a noisy log doesn’t hide the real problem. Press r to go back to the root cause, n and Shift+N to step through the other errors.

A log you can fold

The flat text becomes a tree: GitLab’s sections with their durations, every command the runner executed, thousands of build lines folded into one block, and every CTest test with a green Passed or red Failed marker and its runtime. Only the groups with problems are open, so you see the shape of the job at a glance.

The log as a tree: sections, build output and every test with its result and runtime

Filters that understand logs

Type in the filter box (or press /) and the log becomes a list of matches, grouped by where they came from, with as many context lines as you choose. Filter on a level (only errors and warnings), on text, or on a regular expression such as /planner(_test)?\.cc:\d+/. A click on a line number jumps back into the full tree at that spot.

Every error and warning, with two lines of context

Artifacts, without downloading the zip

On a job’s Browse artifacts page the extension adds a panel above GitLab’s own listing, with every file of every folder, a search box and quick filters for logs, reports, text, images and binaries.

Every artifact of the job in one list

View opens a file in a form that suits it: logs get the same structured viewer, JUnit XML becomes a test report with the failures first, JSON a collapsible tree, CSV a table, and images show inline. HTML reports, such as coverage reports, render with their styles. When a report needs its JavaScript, one click runs it in an isolated sandbox, with its data files and links between pages but without access to GitLab or your login.

A JUnit artifact as a test report, failures first

Nothing is hidden

The extension only adds a view, it never replaces GitLab. Every screen has a way back to the original: Plain text and Original ↗ on logs, Raw ↗, Download and GitLab ↗ on every artifact. Add ?gbc=off to any URL to switch the extension off for that page.

Built for C++ pipelines

  • CMake with Ninja or Make, CTest with GoogleTest
  • GCC, Clang and MSVC diagnostics
  • AddressSanitizer, UndefinedBehaviorSanitizer, ThreadSanitizer and LeakSanitizer reports
  • GitLab.com and self-hosted GitLab, with or without job log timestamps
  • Fast: a 7 MB log of 13,000 lines opens in well under a second

Private by design

Everything happens in your browser. The only requests go to the GitLab server you are already on, with your existing login: the artifact listings and the files you open. Nothing is sent to me or to anyone else, there are no analytics, and the extension asks for no special permissions.

Install

Download the zip of the latest release and unzip it. Open chrome://extensions (Brave: brave://extensions, Edge: edge://extensions), turn on Developer mode, click Load unpacked and select the gitlab-browser-companion/extension folder of the zip. Then open a GitLab job and click Show complete raw, or Browse for its artifacts. The user manual describes every feature.

Technology

Plain JavaScript, HTML and CSS, without a framework or a build step: the src/ folder is the extension. The tests are unit tests of the log parser and the root-cause rules, and end-to-end tests that run the extension in a real Chromium (Playwright) against a mock GitLab with fictional demo projects; the screenshots are generated from the same demo data. Builds are reproducible: the same sources give byte-identical zips. MIT licensed.