Tests: cover PersistentLocalStorage SizeMB parsing bounds #1543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1553"
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 ivall/xcl. Originally posted by pane33 on 2026-11-24T17:35:14Z.
Cover the numeric boundaries of
PersistentLocalStorage/SizeMB. Negative, overflowing, and non-numeric values leavepls_mbunset.u64::MAXis accepted with surrounding whitespace.What is in it
crates/xcl/src/manifest.rs.Tested
32.0.16.2124), Rust1.100.0(x86_64-pc-windows-msvc), DXC from Windows SDK10.0.26100.0, debug profile. Ran on9e3831e1f570d3646e53ab753b19ec07eb8f1485with the proposed test applied.cargo test -p xcl --lib manifest::tests— 5 passed, 0 failed, 0 ignored, 744 filtered out..\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedwithRUST_TEST_NOCAPTURE=1— 776 passed as reported by Cargo, 0 failed, 41 ignored, 1 filtered out. The pass count includes the three GPU skips below.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).git diff --check— passed.python -m unittest discover -s scripts -p test_pr_check.py -vwithPYTHONDONTWRITEBYTECODE=1— 13 passed, 0 failed, 0 skipped.Regression run
#[cfg(test)]. Requesting maintainer review for thetest-onlylabel.Not tested
test_title_runs_and_game_folder_is_untouched. Tests that depend on unsetXCL_SAMPLE_*variables provided no sample-data coverage.AI use
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T17:43:44Z.
Review: COMMENTED
Tested commit
cda1c881e70d2d9c000956202129a637cd55e409on hostRATO, Windows 11 build26200, with Rust1.98.1/ Cargo1.98.1:cargo test -p xcl --lib parses_persistent_local_storage_size_bounds -- --nocaptureResult:
1 passed, 0 failed, 0 ignored; 748 filtered out. The full workspace suite and GPU tests were not run. AI use: GPT-6 helped select the targeted test and draft this report; I ran the command locally and verified its output.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:19:22Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-24T21:43:12Z.
Regression run of
cda1c881on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 99 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
upstream-sync referenced this pull request2026-11-25 19:07:20 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:58Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:05:33Z.
Triage (#1607) – head
cda1c88Test-only. It pins the current
manifest.rs:parsebehaviour forSizeMB(negative, u64 overflow, non-numeric, surrounding whitespace). #1275 and #1304 changeelement/textparsing in the same file but test other things, so there is no overlap.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.