mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 02:08:18 +00:00
spec(contributor-scan): record the benchmark runs and the skipped runs directory under 3.1
The 3.1 task note gains two record paragraphs. `9e4983f` moved the benchmark runs beside the scan runs. `56c4620` made a scan skip its runs directory when it lies inside the scanned path: the maintainer's decision, as the handover records it, is quoted. Each paragraph closes the item the note of 2026-11-24 had marked "not yet done", and the older wording, "skip the cache when a scan meets a directory that contains it", is marked as overtaken by the decision, which names the runs directory only. The rest is labeled evidence on record: the skip applies only where the runs directory lies inside the scanned path (the reading the independent reviewer confirmed), it is silent, no run of this package keeps a source file today, and the counts of tests, lint and gates of `56c4620`. What is left for the maintainer is named as such and not decided: whether a scan should say when it left files out, whether a target inside the runs directory should be named, and a sentence for the user docs. No code changes.
This commit is contained in:
@@ -396,6 +396,32 @@
|
||||
the code before and after agree artifact for artifact in quick mode and in standard mode with and without the
|
||||
tool hunter. `_main`, `_pre_push` and `_plane` in the same file were already over the complexity cap and are
|
||||
not touched.
|
||||
- _Benchmark runs beside the scan runs, 2026-11-25 (fourth session), commit `9e4983f`, by the decision above._
|
||||
`ousast benchmark` and its MCP twin write `<runs_dir>/<benchmark-run-id>/`, beside the scan runs, and create
|
||||
the run once the scan has returned: created first, the run was under the scan's own retention while the scan
|
||||
ran. README.md and docs/examples.md name the location. This closes, above, "move `ousast benchmark` and its
|
||||
MCP twin to the cache and name them in the docs" and the open item "still write under
|
||||
`<target>/.openultrasast/benchmarks/` and no user doc names them". Left for the maintainer: no committed test
|
||||
pins the MCP twin's order; the reviewer's optional fix is the clock patch of
|
||||
`test_benchmark_keeps_its_run_when_its_scan_outlasts_the_retention`, applied in the MCP test.
|
||||
- _The runs directory is skipped, 2026-11-25 (fourth session), commit `56c4620`._ The maintainer's decision, as
|
||||
the handover records it: "a scan skips the runs directory when it lies inside the scanned path"; "the runs
|
||||
directory only (`config.runs_dir`, the default location or `OPENULTRASAST_RUNS_DIR`); the other directories
|
||||
under `~/.cache/openultrasast` are not skipped". `preprocess_repository` and `enumerate_source_files` take a
|
||||
`skip` directory, and the preprocess stage of a scan passes `Path(config.runs_dir)`. This closes "skip the
|
||||
cache when a scan meets a directory that contains it" above; that wording is overtaken by the decision quoted
|
||||
here, which names the runs directory only. Evidence on record, not decisions: the skip applies only where the
|
||||
runs directory lies inside the scanned path, so a target that is the runs directory or lies inside it is read
|
||||
as before (the reading of the decision that the independent reviewer confirmed; a first cut that skipped more
|
||||
was narrowed, test first); the skip is silent, nothing in the output counts the files left out; no run of this
|
||||
package keeps a source file today (the reviewer's count: a quick run holds 15 files, all `.json`, `.jsonl`,
|
||||
`.md` or `.sarif`), so the copied file in the tests is a constructed case; the nine test files around the
|
||||
change pass (113 passed), the 37 files that exercise the scan path pass (362 passed), ruff, mypy, the three
|
||||
gates and compileall pass, and runs of the real CLI against the code at `9e4983f` read the same files and
|
||||
report the same findings for every shape but the decided one. Left for the maintainer: whether a scan should
|
||||
say when it left files out under its runs directory; whether a scan whose target lies inside its runs
|
||||
directory should be named (it is read as before and prints nothing about it); a sentence for the user docs,
|
||||
since README.md and docs/examples.md say where a run goes and not what a scan reads.
|
||||
|
||||
- [ ] 3.2 Build and verify the image
|
||||
- `docker compose build`, then run a real scan through it and through the shell wrapper. The Dockerfile and
|
||||
|
||||
Reference in New Issue
Block a user