Skip to main content

Run GitLab CI pipelines locally

Project description

Bitrab 🐰

Bitrab runs your .gitlab-ci.yml on a plain machine so you can find problems before you push, wait, and repeat.

It is built for the expensive part of CI: feedback latency and duplicated setup. Instead of burning build minutes on every small YAML tweak, you can validate and run the same pipeline definition locally, then reuse that same definition inside CI when it makes sense.

Why you might want to use it

  • Run GitLab-style pipelines locally and catch failures before pushing.
  • Shorten the edit-test-debug loop for CI changes.
  • Reuse .gitlab-ci.yml outside GitLab on any Python-capable host.
  • Run multiple jobs in parallel inside one host or container instead of paying full per-job startup overhead every time.
  • Keep one build script closer to reality instead of maintaining separate local and CI scripts.

The theme is simple: save developer time, save CI minutes, and stop paying for "push, wait, discover typo, push again".

Where the savings come from

GitLab CI is great at orchestrating remote jobs, but remote feedback is naturally slower:

  • every iteration costs a push or MR update
  • every job pays queue and startup overhead
  • every "just checking if the YAML works" run consumes minutes
  • local and remote scripts can drift when they are maintained separately

Bitrab helps by moving more of that loop earlier:

  • validate and dry-run the pipeline locally
  • execute jobs directly on your workstation when container isolation is unnecessary
  • use the same pipeline file in CI with bitrab run --no-tui --parallel N to fan jobs out inside one container
  • optionally keep one source of truth for your build steps

Quick start

pipx install bitrab
pipx install 'bitrab[fast]'
bitrab validate
bitrab run --no-tui --parallel 1

For this repo's own dogfooding flow:

uv run bitrab run --no-tui --parallel 1

What Bitrab is

Bitrab is a local runner for a practical subset of GitLab CI. It executes jobs as native shell processes, supports stage execution, DAG needs:, job filtering, retries, local and remote includes, artifacts, watch mode, graph output, and optional mutation warnings.

What Bitrab is not

Bitrab is not a drop-in replacement for GitLab Runner.

  • It does not provide container isolation.
  • image: and services: are not executed locally.
  • Some GitLab features are ignored, partially supported, or intentionally blocked.
  • GitLab-specific server features still need GitLab.

The docs call these differences out explicitly instead of pretending full compatibility.

Docs

GITLAB is a trademark of GitLab Inc. Bitrab is not affiliated with, endorsed by, or approved by GitLab Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitrab-0.3.0.tar.gz (91.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitrab-0.3.0-py3-none-any.whl (103.7 kB view details)

Uploaded Python 3

File details

Details for the file bitrab-0.3.0.tar.gz.

File metadata

  • Download URL: bitrab-0.3.0.tar.gz
  • Upload date:
  • Size: 91.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bitrab-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a9a15588723a81bc722a2d1db90867fbb0a7e08c88532685afe0e26cd02d8312
MD5 186b99f98d2f762c31ae85f3347c7127
BLAKE2b-256 43bb593a47cb865c0925e25c6f9a09182ec89f7d931ec42fe3e35a93443fc8d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitrab-0.3.0.tar.gz:

Publisher: publish_to_pypi.yml on matthewdeanmartin/bitrab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitrab-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bitrab-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 103.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bitrab-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89d063b3383fce05e353e5d5979db686e74b2f6b715c9c138be6d3dff27966c5
MD5 e547cccd419f50bbff06729e8c4f329b
BLAKE2b-256 80bb98d74fda73964e984cb785a3d132d1677e594bb2693db07366fb6c0d9dbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitrab-0.3.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on matthewdeanmartin/bitrab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page