Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Overpass API fork: working rules

This is cldellow's fork, for exploring performance and robustness changes. The production
servers (overpass-api.de) run `fossgis/Overpass-API`; its `master` is the baseline.
servers (overpass-api.de) run `fossgis/Overpass-API`; its `master` (`upstream/master`) is the baseline.
This fork's `master` only adds fork-specific files (this file, the README); never base changes on it.

## GitHub

Expand All @@ -21,31 +22,32 @@ servers (overpass-api.de) run `fossgis/Overpass-API`; its `master` is the baseli
## Issues and PRs

- Open one issue per topic explored, even if a PR already fixes it.
- Use one branch per change, from `master`. A dependent PR targets its base branch and says so at
- Use one branch per change, from `upstream/master`, so fork-specific files never enter a change.
PRs still target this fork's `master`. A dependent PR targets its base branch and says so at
the top.
- Start a PR description with `Fixes cldellow/Overpass-API#N.`, one line per issue it fixes.
- Label every PR `no-format-change` or `format-change`. Ask if unsure.
- PR descriptions cover the change, the impact on the benchmark queries and on the prompting query
versus `master`, testing, and limitations or open questions.
versus `upstream/master`, testing, and limitations or open questions.
- Descriptions and commit messages must stand alone. Define every query you cite (full text, or a
table of the benchmark queries) in the same text. No `…` in place of query text.
- Keep `all-changes` (every change, cherry-picked onto `master`) and its PR current. Its PR tracks
`master` against `all-changes` for the benchmark queries and each commit's prompting query.
- Keep `all-changes` (every change, cherry-picked onto `upstream/master`) and its PR current. Its PR tracks
`upstream/master` against `all-changes` for the benchmark queries and each commit's prompting query.

## Testing changes

The tools are in `bench/` on the `bench-tools` branch; see `bench/README.md`. The test database is
the Geofabrik Nova Scotia extract, imported with `--meta` (convert PBF to XML with `osmium`).

- **Performance:** run `bench/compare.py`. Don't re-time `master`; the baseline is cached. Use
- **Performance:** run `bench/compare.py`. Don't re-time the baseline; it is cached. Use
`--no-cache` (alternating runs) when the expected difference is under about 25%: separately
timed runs can drift by up to about 20%.
- **Correctness:** run `bench/fuzz.py` against `master`. Run a build against itself first to check
- **Correctness:** run `bench/fuzz.py` against the baseline. Run a build against itself first to check
that outputs are deterministic.
- **Pruning or skipping changes** also need long-limit re-runs of queries that time out on
`master`, and a mutation test where practical. Before trusting a clean mutation result,
the baseline, and a mutation test where practical. Before trusting a clean mutation result,
confirm the mutant differs from the change on at least one query.
- **Memory:** for any new allocation, state its bound and report peak memory (RSS) against `master`.
- **Memory:** for any new allocation, state its bound and report peak memory (RSS) against the baseline.
Follow the existing accounting: only result sets count toward `[maxsize:]`, and auxiliary
structures are not counted. Counting new ones would change which queries fail.
- **Degenerate queries:** use `fuzz.py --report` to find them, and open an issue per cause.
Expand Down