xcl run: warn when title network access is enabled #299
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!299
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@SandimL on GitHub · 2026-11-23 22:42 UTC · original
SandimL:xcl-run-network-warning→main· +23 −5 · 3 files · 1 commits · openPart 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
@Kalmarv on GitHub · 2026-11-24 00:15 UTC · original
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
@MesshM on GitHub · 2026-11-24 04:27 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 14:43 UTC · original
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!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.