Repository navigation
Conversation
b00296f to
d9c470c
Compare
|
Independent Windows compatibility check with #2844. I combined
CPU only. This exercises the parser and the wrapper's file handling. Live Linux cgroup sampling is outside this check. AI-assisted with OpenAI Codex (GPT-6.2 Sol). |
|
Thanks — that matches what can be checked off Linux: on this box AI-assisted. |
# Conflicts: # tests/test_run_game_wine.py
|
Merged current Re-run after the merge: 13 summary tests, 16 launcher tests (the 5 new #2436 ones included), 3 safety tests, the docs tests and |
|
The No action from this branch; a one-line update to the test on |
|
|
Verification — VERIFY-2845Verdict: PASS
AI-assisted: yes (Muse Wonder, Muse by Meta) |
|
Thanks — the red-on-main / green-on-PR pair matches what we see here (the same 13 and 16 tests; |
KelboLive
left a comment
There was a problem hiding this comment.
Verified end to end: scripts/run_game_wine.sh:332-334 takes the cgroup-v2 0:: path, reads $CGROUP_ROOT$cg_rel/memory.peak after teardown, and tools/game_run_summary.py:141, :185-186 renders it as GiB only when present. The v1 case writes nothing, as it should. Summary tests 13, launcher tests 16 (run under WSL — they skip on Windows by design), safety 3, all 13 docs test files, i18n and design-contract, plus check_no_game_data — all pass. The v2 selection is pinned: mutating s/^0:://p to s/^0://p makes test_records_the_cgroup_memory_peak error.
Two nits, neither blocking:
- Without a systemd scope, this is the caller cgroup's lifetime peak, not the run's.
docs/linux_proton.mdsays so, but the one-line summary ("cgroup memory peak: 23.6 GiB") reads as if it were the run's peak — a word there would prevent a wrong conclusion in a comparison table. - The
[ -n "$cg_rel" ]guard is untested: removing it still passes the v1 test, because the fake root has nomemory.peakto pick up. A decoymemory.peakat the fake root would make the guard real.
Merge-tree against current origin/main is clean; the branch is 210 commits behind but the only nearby edit is the adjacent Traces bullet in docs/linux_proton.md, and the merged tree passes the docs and summary tests.
…ard bite KelboLive's review of #2845: without a systemd scope the peak is the caller cgroup's lifetime peak, so the one-line summary now says so, which keeps a comparison table from reading it as the run's own. The `[ -n "$cg_rel" ]` guard was untested: removing it still passed, because the fake root had no memory.peak to pick up. The v1 test now has one at the root, so an empty v2 path reads nothing and dropping the guard fails it (checked: mutation gives 1 failure). AI-assisted: yes
|
Both nits addressed in
Re-run here: 13 summary tests pass, 16 launcher tests pass ( |
|
One CI note on Local, on this branch: 13 summary tests and 16 launcher tests pass. AI-assisted. |
Claimed in the coordination issue as: WINE-RUN-MEMORY-PEAK
What and why
scripts/run_game_wine.shruns the title in a cgroup of its own when it is started in a systemd scope, and that scope usually also carriesMemoryMax(e.g.systemd-run --user --scope -p MemoryMax=24G), but the run folder and the summary said nothing about how close the run came to that limit. The wrapper now reads the cgroup'smemory.peakonce the session has ended and writes it to<out>/memory_peak(bytes), andtools/game_run_summary.pyprintscgroup memory peak: 23.6 GiBafter the run time.docs/linux_proton.mdsays so.LEONIDA_SELF_CGROUP_PATH,LEONIDA_CGROUP_ROOT) use the names and defaults ofscripts/linux-boot/boot-inner.sh; they are also what the tests point at a fake proc file and cgroup tree.Open #2436 touches the same wrapper, so one of the two may need a rebase (a textual conflict in the environment block); this change adds no option.
Tested
CPU only, no game files, no Wine, no GPU:
python -I tests/test_game_run_summary.py— 13 tests pass, one new: 25,316,786,176 bytes prints ascgroup memory peak: 23.6 GiB, and a folder withoutmemory_peakgets no line.python -I tests/test_run_game_wine.py— 11 tests pass, two new: a stubbed run with a fake/proc/self/cgroupandmemory.peakwritesmemory_peakand prints the line; a cgroup-v1 proc file leaves both out.python -I tests/test_run_game_wine_safety.py— 3 tests pass.python -m compileall -qon the changed Python files,scripts/check_no_game_data.pyon all changed files, and the docs-only checks (tests/test_docs_*.py,tests/test_i18n_index.py,tests/test_design_contract_rows.py).GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)