33 lines
2.4 KiB
Markdown
33 lines
2.4 KiB
Markdown
# Developer guide
|
|
|
|
## Choose a task
|
|
|
|
- Measure a single case, compare modes, or run the regression corpus with the [benchmark CLI](benchmarks.md).
|
|
- Find where to change planner selection, locks, search, or verification in the [architecture guide](architecture.md).
|
|
- Investigate coverage, route quality, or runtime using the [routing diagnostics](routing-diagnostics.md).
|
|
- Check the caller contract before changing an option or result field in the [public API reference](user/api-reference.md).
|
|
|
|
## Check a change
|
|
|
|
1. From the repository root, run `uv sync` to install development dependencies. Activate `.venv` or prefix commands with `uv run`.
|
|
2. Run `python -m pytest` for the correctness suite and `ruff check inire scripts` for lint. Use `python -m pytest -m "not routing_corpus"` for a shorter local check.
|
|
3. For a cleanup that should preserve paths, capture both revisions and run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare). Include callbacks or traces if the change affects them.
|
|
4. For a policy or budget change, start with a case that exhibits the behavior. Compare verified IDs, cost, and work under the same [benchmark profile](benchmarks.md#choose-a-profile). Check the corpus and related holdouts before adopting the change.
|
|
|
|
### Check a documentation figure
|
|
|
|
Run `python -m scripts.render_documentation_figures --output-dir /tmp/inire-figures` to preview the guides' figures. Check the port directions, keepouts, and route against the runnable example before writing its caption. Omit `--output-dir` to write the guide figures to `docs/figures`. The basic example scripts save their own plots in `examples/`.
|
|
|
|
### Refresh the advanced example gallery
|
|
|
|
After changing a stress fixture or the nine-net board, export the inputs again and regenerate the [advanced example figures](../examples/advanced.md). The exporter checks that the saved data reproduces the benchmark geometry and public-default options. Regenerate the intermediate views when the [complex-routing walkthrough](complex-routing-example-1.md) changes.
|
|
|
|
```sh
|
|
python -m scripts.export_advanced_examples
|
|
python examples/advanced_layouts.py --output-dir docs/figures
|
|
python -m scripts.render_complex_routing_example
|
|
```
|
|
|
|
## Development history
|
|
|
|
To recover the inputs, metrics, or rationale behind an earlier routing decision, use the [routing development archive](../archive/routing/README.md).
|