Tie routing documentation to user and developer workflows
This commit is contained in:
parent
2d77877fff
commit
2c7a7ea90a
1 changed files with 309 additions and 148 deletions
|
|
@ -9,12 +9,15 @@
|
|||
|
||||
## Check a change
|
||||
|
||||
1. Run `uv sync` to install development dependencies. Activate `.venv` or prefix the commands with `uv run`.
|
||||
2. Run `python -m pytest` for the correctness suite. Use `python -m pytest -m "not routing_corpus"` for a shorter local check and `ruff check inire scripts` for lint.
|
||||
3. For a routing change, compare coverage, geometry, and work using a consistent [benchmark profile](benchmarks.md#choose-a-profile). If you expect exact paths, costs, and trace data to match, run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare).
|
||||
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.
|
||||
|
||||
For documentation figures, run `python -m scripts.render_documentation_figures` from the repository root. It writes the route plots and planner diagram under `docs/figures`. Pass `--output-dir` to render a scratch copy for comparison.
|
||||
### Check a documentation figure
|
||||
|
||||
Run `python -m scripts.render_documentation_figures --output-dir /tmp/inire-figures` to preview changes. Compare the port labels, keepouts, path, and caption against the published example. Run the script without `--output-dir` to regenerate the figures in `docs/figures`.
|
||||
|
||||
## Development history
|
||||
|
||||
See the [routing development archive](../archive/routing/README.md) for old plans, optimization logs, and recorded trace and performance data.
|
||||
To recover the inputs, metrics, or rationale behind an earlier routing decision, use the [routing development archive](../archive/routing/README.md).
|
||||
|
|
|
|||
Loading…
Reference in a new issue