fix(tools): publish NID database cache after download completes #1328
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1328"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by darhebkf on 2026-10-07T23:38:14Z.
What
An interrupted download leaves a partial NID database that subsequent runs reuse. Download into a closed temporary file in the cache directory, publish it only after success, and clean up on failure. Register the four failure, retry and successful-cache regressions with CTest.
Tested
Rebased onto main
d70b8998. macOS 15.7.3, Apple Silicon, AppleClang 17, Python 3.14.6. nid_database_cache passed through CTest, covering four regressions. The new group took 0.10 s locally.The shared upstream C++ relinker sources were built in Release during this review; subsequent tool-only branches ran their affected CTest groups. Conventions and whitespace checks pass for each branch. Full Linux/Windows runtime validation requires a maintainer-dispatched Build run; no title or homebrew was executed.
Checklist
main; no other open PR implements the same fix.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T23:11:10Z.
Checked: the temp-file +
replaceflow leaves no partial cache on failure, the four regressions are registered in ctest, andnid_database_cachefails without thenid_names.pychange. Full build + ctest green after the rebase (555/555).Rebased onto main (test-list adjacency in
CMakeLists.txtwithpr_overlap_exports); merging once CI is green.