PeaBox Lab › PeaLang › Dev › Build & test
Build & Test

From clone to green build

Set up

git clone https://github.com/PeaBox-Lab/PeaLang.git
cd PeaLang
python -m venv .venv
source .venv/bin/activate     # .venv\Scripts\activate on Windows
python -m pip install --upgrade pip
python -m pip install -e .[dev]
pea --version

Python 3.10+ is required. CI targets 3.10–3.13.

Run the test suites

python -m pytest tests/ -q          # unit & integration
python -m pytest pea_tests/ -q      # language-level suite
pea spec                            # verify the bundled specification
pea fmt --check .                   # formatting gate
python -m pytest tests/ -k differential -q   # interpreter vs VM agreement

The conformance gates are the ones that matter before a release: 500+ conformance tests, parser/VM coverage ≥ 90%, and 100% coverage on the security boundary. Fuzzing runs over lexer/parser/compiler entry points — if you change the grammar, run it.

Differential testing — interpreter vs VM

Every program in the conformance corpus runs under both engines. Outputs must match exactly; any divergence blocks the release. When you add a feature, add a corpus case — do not merge a feature that only the interpreter understands.

Specification verification

pea spec checks the implementation against the normative specification in spec/ — grammar, feature stability registry and compatibility rules. If the spec and the code disagree, the build fails. That's the point: the spec is the contract, not a document.

Performance baselines

benchmarks/ holds baselines for interpreter startup, VM throughput and memory. Regressions beyond thresholds fail the performance gate; report numbers in your PR when you touch hot paths (parser, VM dispatch, stdlib collections).

What CI enforces

  • Cross-platform matrix: Windows, Linux, macOS.
  • Conformance + differential suites on every PR.
  • Security boundary suites: capabilities, limits, sandbox escapes.
  • Lint, format and type-check gates.
  • Release candidates require an RC validation run (see Release engineering).

← Architecture  ·  Contributing →