mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
By the maintainer's decision of 2026-11-25, recorded in the handover. The option as offered: "One line in `.dockerignore` names `benchmarks/search/private/`, with a test that pins it. The local image then holds what a checkout holds." `.gitignore` ignores `benchmarks/search/private/`, where the feasibility pilot keeps its local identities and working files. `.dockerignore` did not, so `COPY --chown=1000 benchmarks` baked the directory of a local tree, 49,961 files, into the local image `openultrasast:dev`; nothing under it is tracked. A checkout has none of these files, so an image built from one never held them. Nothing under `src/` names the directory: the pilot scripts, `benchmarks/search/pilot_run.py` and `pilot_select.py`, run on the host and take the image under test as an argument. Tests: `tests/test_task_images.py::test_search_pilot_files_stay_out_of_the_image` pins the pattern, and that no `!` line with its exact prefix, with or without the trailing slash, lets it back in. It failed before the change (1 failed, 14 deselected) and passes after; with `tests/test_search_image.py`, 16 passed. On scratch copies the test fails when the line is removed, and when `!benchmarks/search/private` or `!benchmarks/search/private/` is appended. ruff, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in one round; its remark on the re-include check is applied. Not claimed here: the rebuilt image. It follows in this step's next part, with the check that the directory is absent from it.
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
# Build context for the root Dockerfile. The image copies pyproject.toml, README.md, src/, benchmarks/ and
|
|
# ops/frontend-retention/install.py; everything below is either never copied or is evidence the image does not
|
|
# need. plane/Dockerfile.runner has its own plane/Dockerfile.runner.dockerignore.
|
|
|
|
# Local state, never part of an image (agent worktrees alone run to hundreds of MB; .env holds keys).
|
|
.git
|
|
.claude
|
|
.venv
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
**/__pycache__
|
|
**/*.pyc
|
|
.mypy_cache
|
|
.ruff_cache
|
|
.pytest_cache
|
|
.openultrasast
|
|
reports
|
|
*.sarif
|
|
|
|
# The measurement archive (about 20 MB) is evidence, not runtime input. These records stay:
|
|
# ops/smoke_report.py reads the two 2026-09-13 ones from /app inside the image (ops/README.md).
|
|
benchmarks/measurements/*
|
|
!benchmarks/measurements/2026-09-13-delta-comparison-smoke.json
|
|
!benchmarks/measurements/2026-09-13-admission-policy-smoke.json
|
|
# A label source of `ousast learn` (src/openultrasast/learn/sources.toml).
|
|
!benchmarks/measurements/2026-09-30-harnessx-removal-baseline/pairs.json
|
|
|
|
# The image is published on every tag, so the reserved populations stay out of it. The scan path reads neither;
|
|
# the hunter's contamination report reads them from a checkout, not from the image.
|
|
benchmarks/valid
|
|
benchmarks/unseen
|
|
|
|
# The search pilot's working files are git-ignored (.gitignore), so a checkout never has them; a local
|
|
# build context does.
|
|
benchmarks/search/private/
|