Commit Graph

41 Commits

Author SHA1 Message Date
3e0f3074c4 manifest_verifier: restore write mode before unlink on replace failure and publish mode (MANIFEST-VERIFIER-STAGE-CLEANUP)
Apply published_mode(path) to temporary cache file before atomic replacement,
and restore write permission (0o600) before unlink in exception block when
replace fails, preventing Windows PermissionError [WinError 5] and stranded
temporary cache files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:10 +03:00
070799580a Merge pull request #1637 from KoLolX3/fix/verifier-case-exclude
manifest_verifier: exclude case aliases of manifest and cache (VERIFY-MANIFEST-WALK-CASE)
2026-11-29 01:37:01 +01:00
02a69e6028 Merge pull request #2403 from bimo0o/verify-flat-files
manifest_verifier: accept a flat entry named files
2026-11-29 00:47:41 +01:00
5aa76c5ff6 Merge main into fix/verifier-case-exclude (resolve conflict in tools/manifest_verifier.py)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:29:08 +01:00
2b738d3ba5 manifest_verifier: accept a flat entry named files
AI-assisted with Codex.
2026-11-26 23:17:26 +03:00
e7e2858743 Exclude case aliases in manifest verifier scans 2026-11-24 22:39:40 -08:00
ff426194a8 manifest_verifier: preserve published cache permissions 2026-11-24 21:14:37 +01:00
ec2ff813ec manifest_verifier: isolate each cache save in a unique temp file (VERIFY-CACHE-ATOMIC) 2026-11-24 21:14:15 +01:00
f5a2115b46 Merge pull request #346 from JiyouProt/codex/verify-cache-inputs
Merging.

**Why merged:** manifest_verifier also protects every file the manifest lists from being overwritten by cache writes (the companion to #334). Reviewed as good by Oliwettoo.

**Why it's good:** Its tests: 83 passed, 4 skipped, on its own and stacked with #334.

Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (21625bca8 or 51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main 2d73c242f (git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 08:37:13 -05:00
eb348cdd1f manifest_verifier: refuse caches that alias listed inputs (VERIFY-CACHE-INPUTS) 2026-11-24 04:35:18 +01:00
90b9fb86cc manifest_verifier: refuse cache paths that alias the input manifest (VERIFY-CACHE-COLLISION) 2026-11-24 04:09:00 +01:00
86d1c862d2 manifest_verifier: add --cache to skip unchanged verified files (BUILD-1328) (#6712)
Squash-merged after diff review of PR #6712
2026-11-23 10:53:36 -06:00
96b975627a manifest_verifier: verify explicit flat entries named like metadata (#6860)
Squash-merged after diff review of PR #6860 - manifest_verifier: verify explicit flat entries named like metadata
2026-11-23 09:39:52 -06:00
6a9796bd91 manifest_verifier: reuse the input buffer while hashing a file (#6298)
Squash-merged after diff review of PR #6298 - manifest_verifier: reuse the input buffer while hashing a file
2026-11-23 08:23:02 -06:00
c157080e26 Merge pull request #4487 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:10 -05:00
1c584f3018 Merge pull request #4369 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:06 -05:00
00b9b56869 Merge pull request #4316 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:13:29 -05:00
420c317b05 Merge pull request #4203 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:19 -05:00
365a4b0ab1 fix(manifest): distinguish target directory access errors 2026-11-23 02:44:34 +01:00
6f120304c2 Distinguish manifest input path errors 2026-11-23 02:04:47 +01:00
cfa408ba52 Show unreadable file reasons in manifest text reports 2026-11-23 01:46:53 +01:00
3878f4de8a Count only fully hashed bytes in manifest verification reports 2026-11-23 00:54:55 +01:00
42e9fbd00c manifest_verifier: a manifest with no entries is an error, not an OK that checked nothing
A manifest with no entries ({"files": {}}, {}, or metadata keys only) loaded as an empty table, so
every file in the target folder was reported NEW and manifest_verifier printed OK and exited 0
without hashing anything. A create that was cut short or a mistyped --manifest therefore passed as
a clean verification. tools/manifest.py verify already refuses this case.

verify_manifest now raises ManifestError when the manifest lists no files but the folder holds
some, with the same wording as manifest.py ("<manifest> lists no files, but <dir> holds N"). The
CLI reports it as ERROR on stderr and exits 2, like other manifest errors. An empty manifest
against an empty folder still passes.

test_cli_manifest_without_entries_is_an_error_not_ok runs the CLI on the synthetic test folder with
each of the three empty shapes and checks for exit 2, the message, and no OK. With the fix reverted
it fails on all three (exit 0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:53:18 +03:00
7469979110 Merge pull request #3237 from shdann 2026-11-22 15:16:04 -05:00
1ad7921fa6 Merge pull request #2989 from UNYTIX 2026-11-22 15:13:51 -05:00
8119bdf5eb Merge pull request #2881 from Shrey Ratna 2026-11-22 15:12:50 -05:00
5be5841d56 manifest_verifier: reject malformed SHA-256 digests 2026-11-22 22:47:16 +03:00
2c45b7a33e tools: use native Windows process handles for scanner priority 2026-11-22 20:20:40 +01:00
4dd0a44c16 manifest_verifier: reject files that change while hashing 2026-11-22 18:33:10 +00:00
a7e9fca8b9 Merge pull request #2235 from Vonsek 2026-11-22 11:43:14 -05:00
e8594fc3ea fix(manifest): preserve literal POSIX backslashes in scanned paths
Normalize only the host separator. A backslash is an ordinary filename character on POSIX and must not let a top-level file verify as a missing nested path.
2026-11-22 17:25:35 +01:00
664f596998 manifest_verifier: reject repeated JSON keys (BUILD-526) 2026-11-22 16:47:38 +02:00
286343fe72 Merge pull request #1474 from bbareth 2026-11-22 07:07:48 -05:00
04e83a31f2 manifest_verifier.py: reject duplicate normalized paths 2026-11-22 12:38:22 +01:00
89cf18645e Merge pull request #1428 from Dominik 2026-11-22 06:38:01 -05:00
f698bf2206 tools: a path outside the console's code page no longer crashes a tool's output
On Windows a redirected stdout uses the console's ANSI code page, and python -I ignores PYTHONUTF8 and
PYTHONIOENCODING, so a caller path with a character outside that code page ended a run with
UnicodeEncodeError as soon as a tool printed it. #1406 fixed make_game.py; every CLI tool in tools/ now starts
its __main__ block the same way (stdout errors="replace").

tests/test_tool_stdout_encoding.py checks every tool's __main__ block and reruns two measured crashes
(analyze_4240_full.py, meshlet_page.py) with a private-use-named input. Found by @abilliontokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:27:00 +00:00
36771bf567 manifest_verifier.py: count untracked files as strict report problems 2026-11-22 12:17:42 +01:00
26ff18382d Fix manifest validation and unreadable-dir handling in manifest_verifier 2026-11-22 14:22:58 +05:30
91c5eeedef manifest_verifier: reject an extra positional path 2026-11-22 04:18:21 -03:00
13b55c8625 Exclude the selected manifest from verification inventory 2026-11-22 02:45:17 +01:00
e65b6b532d feat(tools): add parallel manifest verifier and unit tests 2026-11-22 01:03:46 +01:00