feat(libSceNKWebKit): implement SQLiteFileSystem::ensureDatabaseDirectoryExists #23752
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23752"
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 Dark3581 on 2026-11-19T15:51:48Z.
What
Implements
WebCore::SQLiteFileSystem::ensureDatabaseDirectoryExists(const String&)in libSceNKWebKit. It was a throwing stub inExport.cpp.WTF::FileSystemImpl::makeAllDirectories. This follows the pinned PS5 WebKit 11.x SQLiteFileSystem.cpp; WebKit Safari-611.1.1 has the same body.wtftest does formakeAllDirectories.computeHashForFileName, the otherSQLiteFileSystemplaceholder with a direct port, is left alone: noisyweather's #23575 (closed by the open-PR limit) and B-Howell's #21173 implement it.tools/pr_overlap.py --nameslists no open PR for this export. #20327 (the SQLite wrappers) does not touchSQLiteFileSystem.--branchshows only shared lines: the include every NKWebKit PR appends tolibSceNKWebKit.hpp, and the libkernel test list inCMakeLists.txtthat #23481, #23493 and #23725 also extend. It failed closed on 23 PRs that conflict withmain. I grepped each one's diff from its merge base, and none changes this export.Tested
Windows 10 22H2, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on
main77d2c4ae60plus this commit.ctest -R "^(nkwebkit_|guest_nkwebkit)": 154 of 154 pass, including the newnkwebkit_sqlitefilesystem.tools/check_conventions.py --base origin/main,tools/debt_fold.py --checkandtools/env_reference.py --checkpass.No title run: no title on hand reaches this function.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T15:58:37Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
a19db3eee1:tools/check_conventions.pypassed.nkwebkit_sqlitefilesystem_testsbuilt cleanly.nkwebkit_sqlitefilesystem):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/SQLiteFileSystem.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T16:26:39Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the optional point below is for review scope clarity.
What I ran
Reviewed head
a19db3eee163be7ac6140f0a7ad2ec002916b01eusing the prepared diff andrepo_read.py. I did not run build or test commands; the test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/tests/SQLiteFileSystem.cpp:41). Consider resetting or removing the alias if this test process may continue running other tests.Not verified
Export.cppandInventoryExports.hppwere excluded from the prepared full-text files because they were too large. Their relevant removals are visible in the prepared diff, but I did not inspect their full contents.files.jsonwas not available through the reader, so I could not verify its reviewed/excluded classifications. The manifest lists seven changed files; I read the full text for five, and the other two were excluded as noted above.To get this to a good state
Nothing is required. Optional: remove or restore the path alias during test cleanup if the test process shares alias state with later tests.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T17:00:22Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
b5f0cb79d5:tools/check_conventions.pypassed.nkwebkit_sqlitefilesystem_testsbuilt cleanly.nkwebkit_sqlitefilesystem):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/SQLiteFileSystem.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T17:03:47Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
b5f0cb79d5740ae1326d5719bd2bf70c86b99fd9using the prepared diff and the pinned repository reader (repo_read.py). No tests or build commands were run.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/tests/SQLiteFileSystem.cpp:41: The test removes its temporary directory but leaves/nkwebkit-sqliteregistered as a global path alias. Remove the alias before cleanup, asWtf.cppdoes for its directory test, to avoid stale process-wide state.Not verified
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas excluded from the review bundle and not read. The patch shows the stub and inventory declaration being removed, but those files were not fully inspected.Read:
core/libs/prx/libSceNKWebKit/CMakeLists.txt,core/libs/prx/libSceNKWebKit/include/SQLiteFileSystemExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/SQLiteFileSystem.cpp,core/libs/prx/libSceNKWebKit/tests/SQLiteFileSystem.cpp,docs/dev/debt/changes/feat-nkwebkit-sqlite-filesystem-helpers.md,core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp,core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp,core/libs/prx/libSceNKWebKit/include/WtfExports.hpp,core/libs/prx/libSceNKWebKit/tests/Wtf.cpp, andcore/libs/prx/libSceNKWebKit/tests/BlobDataFileReference.cpp. Also read the prepareddescription.md,commits.md,manifest.json,diff.patch, andREADME.md. Excluded changed files:core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hpp.To get this to a good state
Nothing is required. Optional: remove the test alias before deleting its temporary directory.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T06:39:45Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed implementation and test wiring support merging.
What I ran
Reviewed head
d6933b800d64bbc90a8247bbac078b25533aa777usingrepo_read.py.No build or test commands were run. The test results in the PR description are author-reported.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Export.cppandinclude/InventoryExports.hppwere excluded from the review bundle because they are too large; their changed hunks were reviewed indiff.patch. No build, tests, console behavior, or author-reported checks were independently verified. Read all changed lines in the included files:CMakeLists.txt,include/SQLiteFileSystemExports.hpp,libSceNKWebKit.hpp,src/SQLiteFileSystem.cpp,tests/SQLiteFileSystem.cpp, anddocs/dev/debt/changes/feat-nkwebkit-sqlite-filesystem-helpers.md.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:32:40Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation follows the stated behavior and the inspected build wiring and tests are consistent with it.
What I ran
Reviewed head
ffb43927857b204d5a2fcceac0d53326f735d3dc. No commands or tests were run in this review; the test results in the PR description are author-reported. I read all available changed-file text and inspected the relevant existing helper. The full text ofExport.cppandInventoryExports.hppwas excluded by the review bundle’s size rule; I read their changed hunks fromdiff.patchand the surrounding lines throughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the build, tests, convention checks, or debt checks. I did not read the full text of
Export.cpporInventoryExports.hpp; their relevant changed hunks and nearby source context were inspected. No console or hardware behavior was verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:59:58Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes at head
763cb4159b541b8b9a29de48dd254672c8ebed0eshow no verified blocking defect; the reported tests were not run independently.What I ran
Read the prepared diff and changed files at the pinned head. No commands or tests were run.
Results
Negative control
Not run; no test execution was available.
Findings
Blocking
None.
Non-blocking
None.
Sources
Reviewed the prepared diff and pinned source for the implementation, test, build registration, and debt entry.
Not verified
Tests and physical-console behavior were not independently verified. Read all changed files listed in the manifest, including the relevant changed-line ranges of
Export.cppandInventoryExports.hpp, which were excluded from the review folder because of size.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T17:16:30Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation follows the existing directory-creation helper, and the inspected tests cover null, empty, nested, and repeated paths.
What I ran
Reviewed head
f904fc0b9fd110adeaf0b26376c6f52f9638b898. I readdescription.md,commits.md,manifest.json,diff.patch, and the changed implementation, test, header, CMake, export, and inventory files throughrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed files listed in
manifest.jsonwere read.files.jsonwas not available through the reader; the manifest marksExport.cppandInventoryExports.hppas excluded from the review folder due to size, so only targeted portions of those files were read. The remaining portions of those files and any runtime behavior beyond the author-reported Windows test run were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T11:30:25Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation follows the stated WebKit behavior and delegates path creation to the existing filesystem helper.
What I ran
Reviewed head
7cea58c2f22da024b548076543d1d6d00df783f2. I did not run commands or tests. Read the prepared description, commits, manifest, diff, changed source and test files, relevant helper and ABI context, and the changed inventory/export/debt sections.Export.cppwas read at the changed symbol’s location. No files were excluded from this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Automated build and test results were not independently verified. Console behavior was not verified; the debt entry accurately says the implementation was not compared with a console module.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:52:10Z.
Review: COMMENTED
Built the branch’s changed sources and ran SQLiteFileSystem on Linux against the existing runtime libraries. The test run passed and covered the database-directory creation cases.
AI-assisted: yes.
Pull request closed