Skip to content

matthewdeanmartin/bitrab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

123 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

make quality-gate
just quality-gate
uv run bitrab -c .bitrab-ci.yml run --no-tui --parallel 4 --parallel-backend thread --no-worktrees

Usage

bitrab run --no-tui --parallel 4

For real runs in a Git checkout, parallel jobs use per-job git worktrees by default when they can, so sibling jobs do not fight over the same files. If you want changes to land in your real working tree instead, serialize the run:

bitrab run --no-tui --serial

--serial forces one job at a time in the project root and disables worktrees, which is the safe choice for formatters, autofixers, and other intentional mutations.

If repo-local .bitrab\worktrees interferes with your tools, set [tool.bitrab].worktree_root in pyproject.toml, for example ~/.bitrab/worktrees/bitrab.

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 Links

About

A pipeline runner that runs Gitlab syntax pipelines without docker or admin rights. Minimal feature set.

Topics

Resources

License

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors