xcl run: warn when title network access is enabled #296
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/299"
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 SandimL on 2026-11-23T22:42:05Z.
Part of #156. XCL already has an opt-in network shim because bring-up titles can upload crash dumps, but xcl run did not tell users that title network access was enabled when XCL_NETWORK was unset. This adds a visible preflight/report warning and documents the safe opt-out.
What is in it
Tested
Regression run
The same controlled test title and settings were used on both commits. The title's own test result was clean in both runs.
Not tested
AI use
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-24T00:15:03Z.
Tested
4d95ee8merged onto main4017f8f(merge 7ffd807, whole suite) and rechecked on maina6f5f7a(merge cd76636, no conflicts). The warning works as described, and sincedb1ddb2on main what it says is true.The warning and #305.
XCL_NETWORKis not exactly0(netoff::enabled()), and not otherwise.XCL_NETWORK=0) was fixed on main indb1ddb2: the switch now also hooks the refusals into the system'swinhttp.dll,wininet.dllandws2_32.dllfor the whole process. The reporter of #305 reran ondb1ddb2and the upload stopped atWinHttpConnect. So on current main the fix text ("set XCL_NETWORK=0 to block title network access") and the README's line about a crash reporter hold for that case.Found::network_off: "Whether the title's WinHTTP and Winsock imports are blocked". Not only imports sincedb1ddb2.XCL_NETWORK=0: not every system network function could be hookedinxcl.logand preflight still shows no warning.The new test does test the change: with the condition made never true,
network_access_is_a_warning_until_explicitly_disabledfails (left: Ok, right: Warning). It cannot run on main, whereFoundhas nonetwork_off.Tested
RTX 5070 Ti (NVIDIA 610.74), Ryzen 9 9950X, Windows 11 26200, debug.
cargo build --workspace, thencargo test --workspace -- --test-threads=4on the merge 7ffd807 (onto4017f8f): 653 passed, 0 failed, 40 ignored. SKIPPED on this card:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).cargo test -p xcl --lib preflight::testson 7ffd807: 7 passed, 0 failed; with the warning never pushed 6 passed, 1 failed.cargo test -p xcl --lib -- preflight::tests netoff::on the merge cd76636 (ontoa6f5f7a): 9 passed, 0 failed (the 7 preflight tests and main's 2 tests of the switch).scripts/pr_check.pyfrom main0e946cfon the description: ok.Not tested
a6f5f7a.XCL_NETWORK=0: the points about #305 are from the code on main and that thread.🤖 Claude Fable 5.2
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:27:55Z.
Test run of
4d95ee83796f06d9bc6837c823be4b6ff0f6d516on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 702 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 661 passed, 0 failed, 21 ignoredSKIPPED;network_access_is_a_warning_until_explicitly_disabledpasses.Review: A preflight warning and a README note only; nothing in the network path changes. I found nothing to change.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
upstream-sync referenced this pull request2026-11-24 22:05:13 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:43:38Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:42:15Z.
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-01T03:05:42Z.
Triage (#1607) – head
4d95ee8No other open PR adds a preflight warning about network access. The README bullet overlaps #3118, which documents XCL_NETWORK=0.
No bugs found in the diff. Note that netoff is opt-in (
XCL_NETWORK=0), so this warning appears on every default run and in the end-of-run summary and report.json checks. The PR conflicts with main (launcher.rs summary and preflight.rs have changed).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.