Commit Graph

13 Commits

Author SHA1 Message Date
c5a4efea04 rpf_probe: write non-regular --out directly, guard empty/trailing-sep paths, enforce strict JSON 2026-11-25 06:28:12 +01:00
411aa80846 Merge remote-tracking branch 'origin/pr/9756'
# Conflicts:
#	tools/rpf_probe.py
2026-11-23 17:28:19 -05:00
55d21cc77f rpf_probe: stage --out with replace_retry so a write failure keeps the previous report
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-23 23:08:19 +01:00
8424d49e9a test_rpf_probe: wrap real probe() so negative control fails on scan ordering, not MagicMock serialization 2026-11-23 23:00:02 +01:00
44d359574b rpf_probe: refuse directory --out before scanning and preserve symlinked report targets 2026-11-23 22:24:33 +01:00
9caa43a8f3 Preserve RPF survey report permissions on replacement 2026-11-22 23:52:48 +01:00
f4c17b3d78 rpf_probe: refuse reports that overwrite input archives 2026-11-22 11:14:33 +00:00
cbcda88a81 rpf_probe: sort equal-sized archives by path 2026-11-22 04:41:03 -03:00
549d8ee955 rpf_probe.py: a failed report write keeps the previous survey
main() opened the output with "w" and then dumped the rows, so a write that
failed partway (a full disk, a file-size limit) left the previous survey
truncated to a partial JSON. The report is now written to a temporary file in
the output's folder and renamed into place; a failed write is one ERROR line,
exit 2, and the old report is untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:35:43 +01:00
49983c2dd8 rpf_probe: cover a permission error below the scan root 2026-11-22 00:48:17 +01:00
ca09a3c661 rpf_probe: cover a regular file passed as the survey directory 2026-11-22 00:45:42 +01:00
2ab5d1be0c rpf_probe.py: keep the previous report when a scan fails 2026-11-22 00:13:17 +01:00
48613bbda9 Tests: pin classify_carve classes and rpf_probe header reads 2026-11-21 21:01:30 +00:00