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.ymloutside 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 Nto 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:andservices: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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9a15588723a81bc722a2d1db90867fbb0a7e08c88532685afe0e26cd02d8312
|
|
| MD5 |
186b99f98d2f762c31ae85f3347c7127
|
|
| BLAKE2b-256 |
43bb593a47cb865c0925e25c6f9a09182ec89f7d931ec42fe3e35a93443fc8d9
|
Provenance
The following attestation bundles were made for bitrab-0.3.0.tar.gz:
Publisher:
publish_to_pypi.yml on matthewdeanmartin/bitrab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitrab-0.3.0.tar.gz -
Subject digest:
a9a15588723a81bc722a2d1db90867fbb0a7e08c88532685afe0e26cd02d8312 - Sigstore transparency entry: 1196498013
- Sigstore integration time:
-
Permalink:
matthewdeanmartin/bitrab@8eb3b35a1433908f372f4bc22b56412ad22549e3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/matthewdeanmartin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@8eb3b35a1433908f372f4bc22b56412ad22549e3 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89d063b3383fce05e353e5d5979db686e74b2f6b715c9c138be6d3dff27966c5
|
|
| MD5 |
e547cccd419f50bbff06729e8c4f329b
|
|
| BLAKE2b-256 |
80bb98d74fda73964e984cb785a3d132d1677e594bb2693db07366fb6c0d9dbe
|
Provenance
The following attestation bundles were made for bitrab-0.3.0-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on matthewdeanmartin/bitrab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitrab-0.3.0-py3-none-any.whl -
Subject digest:
89d063b3383fce05e353e5d5979db686e74b2f6b715c9c138be6d3dff27966c5 - Sigstore transparency entry: 1196498077
- Sigstore integration time:
-
Permalink:
matthewdeanmartin/bitrab@8eb3b35a1433908f372f4bc22b56412ad22549e3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/matthewdeanmartin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@8eb3b35a1433908f372f4bc22b56412ad22549e3 -
Trigger Event:
workflow_dispatch
-
Statement type: