fix(apr): resolve marked backing files for missing guest paths #1764
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1764
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1764/head"
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?
@SilentBless on GitHub · 2026-10-20 15:52 UTC · original
SilentBless:fix/apr-marker-path-resolution→main· +73 −1 · 3 files · 1 commits · closed without mergingSummary
.sndrand.emfsuffixes.--apr-onlyregression mode.Related to #1540. This only addresses APR path resolution; ordinary directory listings and the separate exit/logging problems are unchanged. It does not claim that the affected game boots.
Verification
kernel_file_system_testson macOS x86_64/Rosetta;--apr-onlypasses.cubic review --jsoncompleted with no findings, without an additional prompt. Repository-specific cubic settings/learnings were unavailable (Repository not found).The complete filesystem executable stops before APR at
mutex lock defers cancellation until explicit cancellation pointon this host; the full suite is not reported as passing.@coderabbitai[bot] on GitHub · 2026-10-20 15:56 UTC · original
📝 Walkthrough
ResolveOnePathnow checks.sndrand.emfbacking-file candidates when an exact path is missing. APR tests verify resolution, precedence, rejection cases, metadata, and cached IDs. The test executable adds an APR-only mode, with macOS build and run instructions in the README.Suggested reviewers:
chenxiao07,nmzik,pipe530Priority: ⬇️ Low
Change: Bug fix
Merge Risk: 🔵 Low · up to
15dcfAPR suffix resolution works for the main case. A stale cached suffix file is possible if an exact file appears after the first lookup. The precedence test should be strengthened so it can catch a wrong selection. Neither point is likely to block merge, but both are worth addressing.
Pre-merge checks:
4 ·
1
Full details: Docstring Coverage
Explanation
Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -218,0 +222,4 @@if (Common::File::IsFileExisting(candidate)) {info.host_path = std::move(candidate);info.file_size = Common::File::Size(info.host_path);info.result = OK;@coderabbitai[bot] on GitHub · 2026-10-20 15:56 UTC · original
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Invalidate a suffix resolution when an exact file becomes available.
If an exact file appears after this fallback succeeds,
g_resolved_pathsretains theOKsuffix result.InvalidateFailedResolves()does not remove it. Later resolves return the suffixed file ID, and queued reads continue to use the suffixed file instead of the exact file. Recheck exact-path precedence when the filesystem or mounts change, or invalidate successful fallback entries at that point.@ -1732,0 +1738,4 @@create_marker_file("content.pak.emf", "wrong container");create_marker_file("engine.ucas.emf", "engine");create_marker_file("exact.pak", "exact");create_marker_file("exact.pak.sndr", "wrong");@coderabbitai[bot] on GitHub · 2026-10-20 15:56 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Make the exact-path precedence fixture distinguishable.
exact.pakcontains"exact"andexact.pak.sndrcontains"wrong". Both are five bytes. If APR incorrectly selects the suffixed file, themarked_sizes[2] == 5assertion still passes. Give the suffixed file a different size or read the resolved ID and check its contents. The PR identifies exact-path precedence as required behavior. (github.com)@coderabbitai[bot] on GitHub · 2026-10-20 15:56 UTC · original · reviewed
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
395d6c82-34ed-405b-b9e2-9c80023931dc📥 Commits
Reviewing files that changed from the base of the PR and between
7b7f9a70c6and15dcf315c4.📒 Files selected for processing: 3
README.mdsrc/libs/libAmpr.cpptests/KernelFileSystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Pull request closed