feat(libSceNKWebKit): implement WTF::GregorianDateTime constructors #14478

Closed
SHOnnay wants to merge 13 commits from upstream-pr/14478 into main
SHOnnay commented 2026-11-01 15:04:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SHOnnay on 2026-11-01T15:04:43Z.


What

WTF::GregorianDateTime's C1/C2 constructors were unimplemented and threw. They now initialize calendar fields from milliseconds, copy the DST flag, and convert the supplied offset to minutes, following pinned public WebKit source. The PS5 module's actual WebKit revision is unverified. Non-finite milliseconds and values outside ±8.64e15 still throw and are listed in the debt file.

Context-only overlap with #14164 in Export.cpp and InventoryExports.hpp; I will rebase if it merges first.

Tested

  • macOS (Apple M1, Rosetta x86-64): production WtfTime.cpp and the new test compiled standalone. Before: failed on the throwing stub. After: passed with the implementation. Public-header audit passed; python3 tools/check_conventions.py --base upstream/main passed. The full nkwebkit_wtf test was not run on macOS.
  • Windows 11 (build 26300), Intel Core i5-13400F, GCC 15.2.0 (WinLibs r7, UCRT, posix-seh), Release, BUILD_TESTING=ON, Ninja: ctest -R '^nkwebkit_wtf$' passed at head 9105dff522.
  • Linux: not run.

Behaviour follows pinned public WebKit revision c55364d53f971f63a709976f168d932d558b8909; the PS5 module's actual WebKit revision is unverified.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Codex)

Summary by CodeRabbit

  • Bug Fixes
    • Improved Gregorian date and time handling for timestamps with local-time offsets, including leap-year dates and values near the supported date limits.
    • Invalid timestamps, including non-finite values and values outside the supported range, are rejected rather than producing invalid date and time fields.
    • Both supported construction paths now return consistent date, time, offset, and daylight-saving information for valid timestamps.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5108583706 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478). Originally posted by [SHOnnay](https://github.com/SHOnnay) on 2026-11-01T15:04:43Z. --- ### What `WTF::GregorianDateTime`'s C1/C2 constructors were unimplemented and threw. They now initialize calendar fields from milliseconds, copy the DST flag, and convert the supplied offset to minutes, following pinned public WebKit source. The PS5 module's actual WebKit revision is unverified. Non-finite milliseconds and values outside ±8.64e15 still throw and are listed in the debt file. Context-only overlap with #14164 in `Export.cpp` and `InventoryExports.hpp`; I will rebase if it merges first. ### Tested - macOS (Apple M1, Rosetta x86-64): production `WtfTime.cpp` and the new test compiled standalone. Before: failed on the throwing stub. After: passed with the implementation. Public-header audit passed; `python3 tools/check_conventions.py --base upstream/main` passed. The full `nkwebkit_wtf` test was not run on macOS. - Windows 11 (build 26300), Intel Core i5-13400F, GCC 15.2.0 (WinLibs r7, UCRT, posix-seh), Release, `BUILD_TESTING=ON`, Ninja: `ctest -R '^nkwebkit_wtf$'` passed at head `9105dff522`. - Linux: not run. Behaviour follows pinned public WebKit revision `c55364d53f971f63a709976f168d932d558b8909`; the PS5 module's actual WebKit revision is unverified. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Codex) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved Gregorian date and time handling for timestamps with local-time offsets, including leap-year dates and values near the supported date limits. * Invalid timestamps, including non-finite values and values outside the supported range, are rejected rather than producing invalid date and time fields. * Both supported construction paths now return consistent date, time, offset, and daylight-saving information for valid timestamps. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
CnRJay commented 2026-11-01 19:47:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:47:04Z.

Review: COMMENTED


Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (Unblocks: none is allowed), and it contained no code review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729914355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-5729914355). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:47:04Z. **Review:** COMMENTED --- Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (`Unblocks: none` is allowed), and it contained no code review.
MarcZX10 commented 2026-11-02 05:38:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T05:38:31Z.

Review: COMMENTED


Reviewed — no blocking findings

The two GregorianDateTime constructors (C1 and C2) now fill the fields from ms the way upstream WebKit does, and the two NotImplemented stubs are gone. The hosted Windows CTest run passed 2594 of 2594 cases, including nkwebkit_wtf, which is the test this PR adds. Non-finite input and values outside ±8.64e15 still throw, as the debt entry says.

What I ran

  • Head 9105dff52253cff13fd3acc8dbe1fc40d9364962; PR base e4501451406e4d3516c5b0eaa854d6ec1a28082d; current main 52e9ae6d (merge preview clean). 6 files, +129/-10: src/WtfTime.cpp (+49), tests/Wtf.cpp (+76), Export.cpp (two stubs removed), include/WtfExports.hpp (two declarations added), include/InventoryExports.hpp (two removed) and docs/dev/debt/libSceNKWebKit.md (+2).
  • Read the production diff, the GregorianDateTime and LocalTimeOffset structs in src/WtfTimeTypes.hpp, the helpers isLeapYear, dayInYear and daysFrom1970ToYear, and the new test.
  • Read the pinned upstream Source/WTF/wtf/GregorianDateTime.cpp (commit c55364d5, lines 30-90), which the debt entry cites.
  • Read-only checks from the trusted main checkout (precheck not run: no PR-head code is run here): diff check, conventions, ABI audit and stack check all passed.
  • Hosted: Windows CTest run 2594 of 2594 cases.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed conventions check from the main checkout
Mergeability and dependencies passed no declared dependencies; merge preview clean against current main
Field order and units (struct, offset in minutes, isDST) passed matches GregorianDateTime in WtfTimeTypes.hpp; offset / 60000, as upstream
Fields computed from the unshifted ms passed matches upstream lines 38-85
Non-finite and out-of-range input passed throws NotImplemented; a deliberate difference from upstream, which computes a result, and the debt entry says so
Calendar rows in the test spot-checked weekdays and leap years checked by hand for 1900-02-28, 1968-02-29, 2100-02-28, 2400-02-29 and 275760-09-13 (yearDay 256); the other rows were not checked by hand
Test registration passed tests/*.cpp glob at CMakeLists.txt lines 49-57 registers nkwebkit_wtf; the test-quality helper's "possible-unregistered" warning is a false positive
nkwebkit_wtf (hosted) passed in the Windows CTest run
ABI audit (main-checkout tool) passed 10333 symbols, no findings
Build and runtime tests (Linux) not run no local build
Negative controls not run no local build
Hosted CI passed windows passed (2594/2594); linux, register-context, write-watch and relinkers skipped
Read-only check output

Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (10333 symbols). Stack check: clean merge preview, no declared dependencies. Hosted: gh api repos/boykopovar/AnyPS5/commits/9105dff52253cff13fd3acc8dbe1fc40d9364962/check-runs.

Negative control

Not run here. A negative control needs a build, and code from this head is not run here.

Findings

Blocking

None.

Non-blocking

  • Non-finite input and |ms| above 8.64e15 throw NotImplemented_nid_no_patch. The pinned upstream slow path has no range check and computes a result for these values. The difference is stated in the debt entry, so this is not a silent stub, but it does differ from the source the entry cites.

Sources

Not verified

  • The DateMath.h helpers cited in the debt entry were not re-read.
  • The pass count and the nkwebkit_wtf result come from the Windows check-run log summary; the full per-case log was not read.
  • Most calendar rows in the test were not checked by hand; the test passed in the hosted run.
  • Linux behaviour, and the PS5 module's real WebKit revision (the debt entry says this is unverified).

To get this to a good state

  • Nothing to change.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5732497114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-5732497114). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T05:38:31Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The two `GregorianDateTime` constructors (C1 and C2) now fill the fields from `ms` the way upstream WebKit does, and the two `NotImplemented` stubs are gone. The hosted Windows CTest run passed 2594 of 2594 cases, including `nkwebkit_wtf`, which is the test this PR adds. Non-finite input and values outside ±8.64e15 still throw, as the debt entry says. ## What I ran - Head `9105dff52253cff13fd3acc8dbe1fc40d9364962`; PR base `e4501451406e4d3516c5b0eaa854d6ec1a28082d`; current main `52e9ae6d` (merge preview clean). 6 files, +129/-10: `src/WtfTime.cpp` (+49), `tests/Wtf.cpp` (+76), `Export.cpp` (two stubs removed), `include/WtfExports.hpp` (two declarations added), `include/InventoryExports.hpp` (two removed) and `docs/dev/debt/libSceNKWebKit.md` (+2). - Read the production diff, the `GregorianDateTime` and `LocalTimeOffset` structs in `src/WtfTimeTypes.hpp`, the helpers `isLeapYear`, `dayInYear` and `daysFrom1970ToYear`, and the new test. - Read the pinned upstream `Source/WTF/wtf/GregorianDateTime.cpp` (commit `c55364d5`, lines 30-90), which the debt entry cites. - Read-only checks from the trusted main checkout (precheck not run: no PR-head code is run here): diff check, conventions, ABI audit and stack check all passed. - Hosted: Windows CTest run 2594 of 2594 cases. - No MarcZX10 review at this head. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | conventions check from the main checkout | | Mergeability and dependencies | passed | no declared dependencies; merge preview clean against current main | | Field order and units (struct, offset in minutes, isDST) | passed | matches `GregorianDateTime` in `WtfTimeTypes.hpp`; offset / 60000, as upstream | | Fields computed from the unshifted `ms` | passed | matches upstream lines 38-85 | | Non-finite and out-of-range input | passed | throws `NotImplemented`; a deliberate difference from upstream, which computes a result, and the debt entry says so | | Calendar rows in the test | spot-checked | weekdays and leap years checked by hand for 1900-02-28, 1968-02-29, 2100-02-28, 2400-02-29 and 275760-09-13 (yearDay 256); the other rows were not checked by hand | | Test registration | passed | `tests/*.cpp` glob at `CMakeLists.txt` lines 49-57 registers `nkwebkit_wtf`; the test-quality helper's "possible-unregistered" warning is a false positive | | `nkwebkit_wtf` (hosted) | passed | in the Windows CTest run | | ABI audit (main-checkout tool) | passed | 10333 symbols, no findings | | Build and runtime tests (Linux) | not run | no local build | | Negative controls | not run | no local build | | Hosted CI | passed | windows passed (2594/2594); linux, register-context, write-watch and relinkers skipped | <details><summary>Read-only check output</summary> Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (10333 symbols). Stack check: clean merge preview, no declared dependencies. Hosted: `gh api repos/boykopovar/AnyPS5/commits/9105dff52253cff13fd3acc8dbe1fc40d9364962/check-runs`. </details> ## Negative control Not run here. A negative control needs a build, and code from this head is not run here. ## Findings **Blocking** None. **Non-blocking** - Non-finite input and |ms| above 8.64e15 throw `NotImplemented_nid_no_patch`. The pinned upstream slow path has no range check and computes a result for these values. The difference is stated in the debt entry, so this is not a silent stub, but it does differ from the source the entry cites. ## Sources - Production: https://github.com/boykopovar/AnyPS5/blob/9105dff52253cff13fd3acc8dbe1fc40d9364962/core/libs/prx/libSceNKWebKit/src/WtfTime.cpp - Struct: https://github.com/boykopovar/AnyPS5/blob/9105dff52253cff13fd3acc8dbe1fc40d9364962/core/libs/prx/libSceNKWebKit/src/WtfTimeTypes.hpp - Test: https://github.com/boykopovar/AnyPS5/blob/9105dff52253cff13fd3acc8dbe1fc40d9364962/core/libs/prx/libSceNKWebKit/tests/Wtf.cpp - Registration: https://github.com/boykopovar/AnyPS5/blob/9105dff52253cff13fd3acc8dbe1fc40d9364962/core/libs/prx/libSceNKWebKit/CMakeLists.txt - Upstream, pinned and read only: https://github.com/WebKit/WebKit/blob/c55364d53f971f63a709976f168d932d558b8909/Source/WTF/wtf/GregorianDateTime.cpp ## Not verified - The `DateMath.h` helpers cited in the debt entry were not re-read. - The pass count and the `nkwebkit_wtf` result come from the Windows check-run log summary; the full per-case log was not read. - Most calendar rows in the test were not checked by hand; the test passed in the hosted run. - Linux behaviour, and the PS5 module's real WebKit revision (the debt entry says this is unverified). ## To get this to a good state - Nothing to change.
MarcZX10 commented 2026-11-14 04:45:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T04:45:04Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head 39d45a6b767689578bb9f1ff0f2375ccff53dcac using the prepared diff and repo_read.py for targeted source ranges. No commands or tests were run by me; reported platform test results are author-supplied.

Results

Check Result Note
Diff and changed behavior passed Constructor and test logic inspected
Tests run by reviewer not run No execution environment used

Findings

Blocking

None.

Non-blocking

  • WtfTime.cpp:78 casts the day count to int before computing the weekday. The accepted millisecond range permits day counts far outside int; converting an out-of-range floating value to int has undefined behavior. Consider computing the weekday using floating-point modulo or a wider integer type. The added boundary tests check the extreme dates, but their expected weekday values do not distinguish this cast from a safe calculation.

Not verified

Export.cpp and InventoryExports.hpp were read only around the removed declarations; the full texts were excluded from the review bundle. docs/dev/debt/libSceNKWebKit.md was read only around the changed debt entries; its full text was excluded. The included full texts for WtfTime.cpp, WtfExports.hpp, and tests/Wtf.cpp were reviewed only in relevant ranges. I did not run tests or verify console behavior; the WebKit revision on the PS5 module is unverified.

To get this to a good state

Nothing is required. The weekday conversion note above is optional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901713982 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-5901713982). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T04:45:04Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `39d45a6b767689578bb9f1ff0f2375ccff53dcac` using the prepared diff and `repo_read.py` for targeted source ranges. No commands or tests were run by me; reported platform test results are author-supplied. ## Results | Check | Result | Note | |---|---|---| | Diff and changed behavior | passed | Constructor and test logic inspected | | Tests run by reviewer | not run | No execution environment used | ## Findings ### Blocking None. ### Non-blocking - `WtfTime.cpp:78` casts the day count to `int` before computing the weekday. The accepted millisecond range permits day counts far outside `int`; converting an out-of-range floating value to `int` has undefined behavior. Consider computing the weekday using floating-point modulo or a wider integer type. The added boundary tests check the extreme dates, but their expected weekday values do not distinguish this cast from a safe calculation. ## Not verified `Export.cpp` and `InventoryExports.hpp` were read only around the removed declarations; the full texts were excluded from the review bundle. `docs/dev/debt/libSceNKWebKit.md` was read only around the changed debt entries; its full text was excluded. The included full texts for `WtfTime.cpp`, `WtfExports.hpp`, and `tests/Wtf.cpp` were reviewed only in relevant ranges. I did not run tests or verify console behavior; the WebKit revision on the PS5 module is unverified. ## To get this to a good state Nothing is required. The weekday conversion note above is optional.
MarcZX10 commented 2026-11-14 05:48:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T05:48:46Z.

Review: APPROVED


Reviewed — looks good

The implementation at head 7e8a0e174129295218de2aca602b80e8f5d85d40 follows the described date conversion and its added tests cover negative timestamps, leap years, range boundaries, and local offsets; the author reports Windows and standalone macOS checks, which I did not run.

What I ran

No commands or tests were run. I reviewed the prepared diff and targeted source at the pinned head.

Results

Check Result Note
Diff and targeted source review passed Reviewed changed implementation and tests
Programmatic checks not run Author-reported results were not rerun

Findings

Blocking

None.

Non-blocking

None.

Not verified

Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md were excluded from the prepared full-text bundle; their changed hunks were read in diff.patch, but surrounding file context was not reviewed. The PS5 module’s actual WebKit revision and console behavior are unverified. No tests were run by me; the macOS and Windows test results in the description are author-reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902051312 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-5902051312). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T05:48:46Z. **Review:** APPROVED --- # Reviewed — looks good The implementation at head `7e8a0e174129295218de2aca602b80e8f5d85d40` follows the described date conversion and its added tests cover negative timestamps, leap years, range boundaries, and local offsets; the author reports Windows and standalone macOS checks, which I did not run. ## What I ran No commands or tests were run. I reviewed the prepared diff and targeted source at the pinned head. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Reviewed changed implementation and tests | | Programmatic checks | not run | Author-reported results were not rerun | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` were excluded from the prepared full-text bundle; their changed hunks were read in `diff.patch`, but surrounding file context was not reviewed. The PS5 module’s actual WebKit revision and console behavior are unverified. No tests were run by me; the macOS and Windows test results in the description are author-reported. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 21:45:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T21:45:22Z.

Review: APPROVED


Reviewed — looks good

The changed implementation and tests are readable and internally consistent; I found no verified defect, but the PS5 module’s WebKit revision and invalid-input behavior remain unverified.

What I ran

Reviewed head d861d1b620f01d7c458c174067069a6c324ce7a1 against main. No commands or tests were run. Read description.md, commits.md, manifest.json, diff.patch, README.md, WtfExports.hpp, WtfTime.cpp, WtfTimeTypes.hpp, the added test range in tests/Wtf.cpp, and the new debt fragment. Export.cpp and InventoryExports.hpp were excluded from the review folder; their removal hunks were read in diff.patch.

Results

Check Result Note
Diff and changed code review passed Constructor logic and added test cases inspected
Test execution not run No commands were run in this review
Excluded files not applicable Full text unavailable; removal hunks inspected

Findings

Blocking

None.

Non-blocking

None.

Not verified

The PS5 module’s exact WebKit revision and console behavior were not verified. Invalid and out-of-range milliseconds take the existing NotImplemented_nid_no_patch path; that behavior was not exercised here. The author reports separate macOS compilation and Windows test results; those were not run as part of this review. Export.cpp and InventoryExports.hpp full contents were not read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5965677313 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-5965677313). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T21:45:22Z. **Review:** APPROVED --- # Reviewed — looks good The changed implementation and tests are readable and internally consistent; I found no verified defect, but the PS5 module’s WebKit revision and invalid-input behavior remain unverified. ## What I ran Reviewed head `d861d1b620f01d7c458c174067069a6c324ce7a1` against `main`. No commands or tests were run. Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `README.md`, `WtfExports.hpp`, `WtfTime.cpp`, `WtfTimeTypes.hpp`, the added test range in `tests/Wtf.cpp`, and the new debt fragment. `Export.cpp` and `InventoryExports.hpp` were excluded from the review folder; their removal hunks were read in `diff.patch`. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | Constructor logic and added test cases inspected | | Test execution | not run | No commands were run in this review | | Excluded files | not applicable | Full text unavailable; removal hunks inspected | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The PS5 module’s exact WebKit revision and console behavior were not verified. Invalid and out-of-range milliseconds take the existing `NotImplemented_nid_no_patch` path; that behavior was not exercised here. The author reports separate macOS compilation and Windows test results; those were not run as part of this review. `Export.cpp` and `InventoryExports.hpp` full contents were not read. ## To get this to a good state Nothing is required.
coderabbitai[bot] commented 2026-11-30 04:09:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T04:09:06Z.

Review: COMMENTED


Architecture findings (1)

Advisory architecture findings (1)

  • Minor — Both constructors introduce a direct write through the guest ABI destination pointer. The base stubs never wrote through that pointer, and the neighboring operation on the same type uses checked copy-out and reports copy failure through the module's failure handler. The new path can fault outside that checked write or leave the destination partly updated if a store is interrupted; the end-to-end fault outcome is unverified.
Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8518ee27-8207-4592-8f7d-7b79eff6dc98
Commits

Reviewing files that changed from the base of the PR and between 1841c37422 and 5014694e1e.

Files selected for processing: 6

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
  • core/libs/prx/libSceNKWebKit/include/WtfExports.hpp
  • core/libs/prx/libSceNKWebKit/src/WtfTime.cpp
  • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp
  • docs/dev/debt/changes/codex-feat-nkwebkit-gregorian-date-time.md
Files with no reviewable changes: 2

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6106778790 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-6106778790). Originally posted by [coderabbitai[bot]](https://github.com/apps/coderabbitai) on 2026-11-30T04:09:06Z. **Review:** COMMENTED --- <!-- coderabbit-ai-generated:v1 --> **Architecture findings (1)** <details> <summary>Advisory architecture findings (1)</summary> <dl> <dd> <br> - **Minor** — Both constructors introduce a direct write through the guest ABI destination pointer. The base stubs never wrote through that pointer, and the neighboring operation on the same type uses checked copy-out and reports copy failure through the module's failure handler. The new path can fault outside that checked write or leave the destination partly updated if a store is interrupted; the end-to-end fault outcome is unverified. </dd> </dl> </details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: Unavailable - **Branch**: Unavailable - **File**: No configuration file from this repository applied - **Commit**: Unavailable - **Layers**: defaults - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `8518ee27-8207-4592-8f7d-7b79eff6dc98` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 1841c37422d8e69a3bb8eeac19c1427e189baa5a and 5014694e1ed88739ba3d0b942c00ee5257956609. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 6</summary> <dl> <dd> <br> * `core/libs/prx/libSceNKWebKit/Export.cpp` * `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` * `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` * `core/libs/prx/libSceNKWebKit/src/WtfTime.cpp` * `core/libs/prx/libSceNKWebKit/tests/Wtf.cpp` * `docs/dev/debt/changes/codex-feat-nkwebkit-gregorian-date-time.md` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files with no reviewable changes: 2</summary> <dl> <dd> <br> * core/libs/prx/libSceNKWebKit/Export.cpp * core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=662876d0-8884-4c49-aaa4-a6b6278e5498 attempt=b67bcafb-3879-402e-b141-2d7d7d6fe5d3 batch=1/1 -->
MarcZX10 commented 2026-11-30 04:19:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T04:19:28Z.

Review: APPROVED


Reviewed — looks good

The constructor implementation and its focused tests support merging at head 5014694e1ed88739ba3d0b942c00ee5257956609; I did not run commands or tests.

What I ran

Read the prepared diff and targeted source ranges through repo_read.py. No commands or tests were run. The PR description reports Windows and standalone macOS results; those were not independently verified.

Results

Check Result Note
Source review passed Reviewed the implementation and tests
Tests in this review not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

The PS5 module's WebKit revision and console behavior remain unverified, as stated by the PR. I read WtfTime.cpp, WtfTimeTypes.hpp, WtfExports.hpp, InventoryExports.hpp, Export.cpp, Wtf.cpp, and the added debt fragment. Export.cpp was read through the pinned reader because its full text was excluded from the review bundle. No changed files were excluded from this review; manifest.json marks every changed file as reviewed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6106841789 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-6106841789). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-30T04:19:28Z. **Review:** APPROVED --- # Reviewed — looks good The constructor implementation and its focused tests support merging at head `5014694e1ed88739ba3d0b942c00ee5257956609`; I did not run commands or tests. ## What I ran Read the prepared diff and targeted source ranges through `repo_read.py`. No commands or tests were run. The PR description reports Windows and standalone macOS results; those were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Reviewed the implementation and tests | | Tests in this review | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The PS5 module's WebKit revision and console behavior remain unverified, as stated by the PR. I read `WtfTime.cpp`, `WtfTimeTypes.hpp`, `WtfExports.hpp`, `InventoryExports.hpp`, `Export.cpp`, `Wtf.cpp`, and the added debt fragment. `Export.cpp` was read through the pinned reader because its full text was excluded from the review bundle. No changed files were excluded from this review; `manifest.json` marks every changed file as reviewed. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 13:16:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:16:44Z.

Review: COMMENTED


Checked the branch sources and built the focused tests against the existing Linux runtime. Wtf passed, including the Gregorian date-time constructor cases.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6170530567 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-6170530567). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T13:16:44Z. **Review:** COMMENTED --- Checked the branch sources and built the focused tests against the existing Linux runtime. `Wtf` passed, including the Gregorian date-time constructor cases. AI-assisted: yes.
Plyxen commented 2026-12-03 16:19:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T16:19:41Z.

Review: APPROVED


I read the diff at 5014694e1e. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), applied onto main at c1593e4e1dd together with other open PRs (so not an isolated build).

  • nkwebkit_wtf: pass on both.
  • No control: on main the two constructors take no arguments and throw.

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173775643 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14478#pullrequestreview-6173775643). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T16:19:41Z. **Review:** APPROVED --- I read the diff at `5014694e1e`. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), applied onto `main` at `c1593e4e1dd` together with other open PRs (so not an isolated build). - `nkwebkit_wtf`: pass on both. - No control: on `main` the two constructors take no arguments and throw. Not checked: a title. AI-assisted: yes (Claude Code)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14478
No description provided.