fix(SaveData): use C++20 file clock conversion #1260
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1260"
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 MarcZX10 on 2026-10-07T20:11:45Z.
What
Use C++20's
file_time_type::clock::to_sysconversion when mapping saved-data file timestamps to system-clock time points. The source diff contains only this conversion. The nonportable directory-mtime check remains removed as requested in review.Tested
Current head
db3ccb5481226b1b2fae411bb01961a76d929495is based linearly on upstreammainat8b393b6e. The complete source diff is one line incore/libs/prx/libSceSaveData.native/Export.cpp.libSceSaveData.nativeandsavedata_memory_metadata_tests;savedata_memory_metadatapassed (1/1) on this head.savedata_memory_metadatapassed 3/3 on this head, tested alone onmain8b393b6e.4934c29f; the single failure was unrelated to this change (#2359). This aggregate run is not an exact-head full Build.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEADpass.Checklist
main; no other open PR implements the same changeImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T05:12:45Z.
Please drop the new check in
SaveDataMemoryMetadata.cpp. The fix is compile-time, so it passes on main too, and on Windows it aborts setting the directory's mtime:The
to_syschange on its own can go in.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T06:37:18Z.
Please rebase onto main and force-push instead of merging main in; the branch has two merge commits (6bc63c000, e5a90886a). The one-line change can go in after that.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T10:52:26Z.
Rebased this branch onto current
mainand removed the nonportable directory-mtime test, leaving only the requestedto_sysconversion in the diff. Builtsavedata_memory_metadata_tests;savedata_memory_metadatapassed three consecutive Linux runs. The updated-head GitHub workflows are markedaction_requiredwith no jobs; could a maintainer approve the checks?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T11:18:56Z.
Rebased onto current
upstream/main(0596a7a2), now at head99f38bc125bcc51dbdd094e835598df0841c7acd. The full diff remains only thefile_time_type::clock::to_sysconversion. Builtsavedata_memory_metadata_tests;savedata_memory_metadatapassed (1/1). Conventions andgit diff --checkpass. The upstream Build, Conventions and Progress report workflows have no jobs for this fork head. Could a maintainer approve them?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T13:06:38Z.
Rebased directly onto
upstream/main(c68c7576); current head is5c783b8fdadc7d22a91e7d1674eace9bf8b04f3d. The reviewer-requested diff is only theto_sysconversion; the nonportable directory-mtime fixture is removed. On Debian 12/GCC 12.2,savedata_memory_metadatapassed (1/1), and conventions plusgit diff --checkpass. The current-head workflows areaction_requiredwith no jobs. Could a maintainer approve them so CI can run?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T19:05:27Z.
Rebased onto current upstream
main(55e8959b) and reran the focused Linux validation:savedata_memory_metadatapasses (1/1), conventions andgit diff --checkpass. The full diff remains oneto_sysconversion. The current upstream workflows still need maintainer approval before Windows CI can run.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T19:26:58Z.
Rebased this two-commit PR onto current
upstream/main(0447793); the final code diff is still only the C++20file_clock::to_sysconversion. I rebuiltsavedata_memory_metadata_tests; focused CTest passes (1/1), conventions pass, andgit diff --checkpasses. The updated head is88c1d1e, but upstream reports no checks or workflow runs for it yet. Per CONTRIBUTING, fork workflows may need maintainer approval; could an authorized maintainer approve them so CI validates this head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:23:39Z.
Rebased onto current upstream
main(364a56b). Reviewed the full diff: the only code change remains replacingclock_castwith the C++20file_time_type::clock::to_sysconversion. The focused SaveData CTest passed (1/1) on the prior head; conventions andgit diff --checkpass on this head. No checks are reported for the rebased head yet.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:24:50Z.
The Build/Conventions workflow runs for current head
45f4a5416bce3d55bfd07492103e7819c548cc54are markedaction_requiredand have no jobs, so upstream CI has not run yet. CONTRIBUTING requires maintainer approval for fork workflows. Could an authorized maintainer approve these current-head runs?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:53:04Z.
Rebased again onto current upstream
main(94b1eecb; head5eca5a56). Reviewed the full diff: the only code change remains the C++20 file-clock conversion. The focused SaveData CTest passed on a prior head; conventions andgit diff --checkpass now. Current Build/Conventions/Progress runs areaction_requiredwith no jobs; could a maintainer approve this final head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T00:20:29Z.
Rebased onto current upstream
main(f145139676a48306681d3a4d5fabf83938759daf) at head0e5f7eb2a1661bb137f2db645c5e996d82eccd32. The final source diff is still one C++20 file-clock conversion. The focused SaveData CTest, conventions andgit diff --checkpass on this head. Upstream CI needs to run on this rebased head under the fork workflow policy.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T00:25:23Z.
Rebased head
0e5f7eb2a1661bb137f2db645c5e996d82eccd32is on current upstreammain(f145139676a48306681d3a4d5fabf83938759daf), and the focused SaveData CTest passes. No checks are reported for the new head. Under CONTRIBUTING's fork workflow policy, could an authorized maintainer approve Build and Conventions for this head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T00:41:06Z.
The fork Build for current head
0e5f7eb2a1661bb137f2db645c5e996d82eccd32passed: Linux, Windows, and relinker jobs on Ubuntu, Windows, and macOS. I added the run link to the PR description. Upstream still reports no checks for this fork head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:12:05Z.
Rebased the two commits onto current upstream
main25f10087and reviewed the full diff; it remains only the requested C++20 file-clock conversion. The nonportable directory-mtime check stays removed as requested. The focused Linux SaveData test passed on the previous head with identical source; conventions and diff checks pass on this rebased head. Fork Build 37903483153 is running for the current head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:27:39Z.
Rebased the one-line conversion change onto current upstream
main6cc0503dand pushed head3318c99b. The updated Linuxsavedata_memory_metadataCTest passes (1/1); conventions and diff checks pass. Fork Build 37905051633 is running on the new head. The description records the prior full-build failure from the missing SPIR-V test include path, addressed by #2093.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:37:59Z.
Addressed: the branch is now a linear rebase onto current upstream
main6cc0503d, with no merge commits (git log --merges upstream/main..HEADis empty). The only source diff remains the requested one-linefile_time_type::clock::to_sysconversion; focused SaveData CTest passes and the updated fork Build is running.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:38:57Z.
Latest fork Build completed with the same baseline failure on Linux and Windows:
agc_shader_fusion_testscannot includespirv/unified1/spirv.hppfromVulkanTestDevice.hpp. The relinker jobs passed. This matches #2093; I recorded the exact result in the PR description and kept this PR's scope separate.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T09:26:04Z.
Rebased the one-line conversion onto current
maind9484c71at head04713edc. The focused SaveData CTest passed on the immediately preceding head with the identical source diff; local and exact-head Conventions pass. The earlier full Build failure was the missing SPIRV-Headers include, fixed by #2099 now in this base. Under #2113, could an upstream collaborator run the manual Build for PR #1260?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T11:14:52Z.
Rebased PR #1260 linearly onto current
main(d70b8998); the one-line source diff is unchanged. On head2ef6b821,savedata_memory_metadatapassed (1/1), Conventions is green, and GitHub reports the PR mergeable. Under #2113, could a collaborator with write access run Actions → Build for this PR so the full Linux, Windows and relinker checks are recorded on the rebased head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T18:44:46Z.
Done: I rebased the branch linearly onto current
main(f8c2f072) and force-pushed the existing PR branch. The full code diff remains the singlefile_clock::to_sysconversion, with the directory-mtime test removed as requested.On the rebased source,
libSceSaveData.nativeandsavedata_memory_metadata_testsbuild on Linux/GCC 12.2, and the focused CTest passes (1/1). Conventions andgit diff --checkpass. I updated the description with the new head and evidence; the authorized upstream Build/relinker matrix remains pending under #2113.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T19:05:44Z.
Updated the existing branch with a linear rebase onto current
main(ae3d5f95); current head is4934c29f. The complete source diff is still the singlefile_clock::to_sysconversion. On this head, the SaveData target builds,savedata_memory_metadatapasses (1/1), and Conventions is green.\n\nThe full upstream Build and relinker matrix was required to rerun after this head update under CONTRIBUTING/#2113. Could a collaborator with write access run Actions → Build for PR #1260 on this current head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T19:37:00Z.
Validation on the updated head
I rebased the existing branch linearly onto upstream
mainat8b393b6eand pushed headdb3ccb54. The complete source diff remains the singlefile_time_type::clock::to_sysconversion. The Linux SaveData target builds,savedata_memory_metadatapasses (1/1), and local Conventions plusgit diff --checkpass.The repository contribution policy requires the full Linux/Windows Build and relinker matrix to be dispatched by a collaborator with write access. Could someone run Actions → Build for PR #1260 on this head? The earlier runs were on prior heads and do not validate this rebase.
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:44:40Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release.
db3ccb54, alone onmain8b393b6e:savedata_memory_metadatapasses 3 of 3, so the C++20 file clock conversion builds with MinGW.4934c29fhas the samelibSceSaveData.nativechange. It was in a batch build with 31 other PRs, where the full ctest passed apart from one unrelated failure from #2359 (520 of 521).No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T19:52:13Z.
Thanks for the Windows validation. I updated the description to distinguish the exact-head
savedata_memory_metadataresult (3/3 on Windows 10/MinGW, headdb3ccb54) from the separate 520/521 batch CTest result, whose only failure was unrelated #2359. That gives focused Linux and Windows evidence for the one-line conversion; the upstream full Build/relinker matrix and title testing remain outstanding.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T23:11:48Z.
Checked on Linux with the PR merged onto current
main: full build and ctest green (550/550, includingsavedata_memory_metadata). The diff is the singleto_sysconversion that was requested, with no merge commits. Windows/MinGW result from @popcoder565 covers the head. Merging.