issues: the bug report template says how to get a log #3158
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3158"
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 ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T14:57:10Z.
issues: the bug report template says how to get a log
Reports arrive saying they have no log:
That is right: the D3D12 runtime writes nothing under %LOCALAPPDATA%\Leonida\logs until
-Logis passed, and the template asked only for "the last lines the console printed". So the Output
field now names the switch, the file and the first lines worth reading in it:
python -I tests/test_docs_issue_template.py: 2 tests, OK. The second is the control - anempty template lists all three hints, so the first test cannot pass on a template that lost
them.
python -m unittest discover -s tests -p "test_docs_*.py": 57 tests, OK.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T15:06:04Z.
Review: COMMENTED
-Logand%LOCALAPPDATA%\Leonida\logs\play-*.logmatch the current Windows D3D12 scripts. The wording about the last 30 lines is stronger than the implementation.play-nvidia.ps1redirects only the runtime process’s stderr, after setup and shader preparation. A setup failure can still have no runtime log.host wave lanesis a conditional startup line containing lane counts, and a later error excerpt can omit it. I would ask for the relevant error excerpt from the file when one exists, or console output from setup/precompile, with startup diagnostics requested separately if available.The 59 documentation tests passed on
43fc605e+2cfbe969. The new Output test failed on currentmain83046a71, as expected. I then moved the added paragraph to theSystemfield in a local YAML copy. Both submitted tests passed even though the parsedOutputdescription contained no-Loghint. Scoping the assertions to the description underid: outputwould catch that case. No title files or run output were used. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:13:48Z.
Verified on Linux: it merges into current
main, the new test is red without the template change and green with it, and the docs suite passes.python -I tests/test_docs_issue_template.py.github/ISSUE_TEMPLATE/bug_report.ymlreverted tomainpython -m unittest discover -s tests -p "test_docs_*.py"python -I scripts/check_no_game_data.py .github/ISSUE_TEMPLATE/bug_report.yml tests/test_docs_issue_template.pyThe text against the code:
-Logexists in both launchers (scripts/play-d3d12.ps1:78forwards it,d3d12/scripts/play-nvidia.ps1:976-981redirects stderr to%LOCALAPPDATA%\Leonida\logs\play-<stamp>.logonly when it is set), so "without -Log nothing is written there" is right.host wave lanesis a real log line (leonida-gpu/src/host.rs:1533).Nits (not blocking)
d3d12/contains that text. Either name the line the log really prints or say "the shader cache lines".Launcher.batusers pass-Logthrough the "Log to a file (-Log)" checkbox (tools/leonida_launcher.py:873), not on a command line, andscripts/play-linux.shhas no log switch. One more sentence for those two would stop the same "no log" reports from them.GPUs tested:line, which is fine for a template-only change. AI use is disclosed.Verdict: ready.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T20:31:51Z.
RUN (independent run on Windows, head
2cfbe969c9fac8e2ab0c56b289dabbbc70a36dfa, merged intomainb41763227aeed2d23c98af84bcbc1bddc7acdc90withgit merge --no-ff)Green
.github/ISSUE_TEMPLATE/bug_report.yml, newtests/test_docs_issue_template.py).python -I tests/test_docs_issue_template.py: 2 tests, OK.python -m unittest discover -s tests -p "test_docs_*.py": 59 tests, OK (121 s).python -I scripts/check_no_game_data.pyon both changed files: clean.compileallon the test: clean.Red
bug_report.ymlswapped back (git checkout HEAD^ -- <file>), the new test fails: all three hints (-Log,%LOCALAPPDATA%\Leonida\logs,play-nvidia.ps1) reported missing. Restored; tree clean.play-nvidia.ps1->play.ps1caught;%LOCALAPPDATA%->%TEMP%caught; "add -Log to" -> "add it to" survives (-Logstill appears in "without -Log"); removing "(shader preparation)" survives, because the test does not look at it.Review
d3d12/(grep over*.rs). It only exists in the new template,docs/launcher.mdline 26 andtools/leonida_launcher.pyline 881, where it is a launcher setting (off is-NoPrecompile), not a log line. The shader-cache code logs onlyno shader cache(warn,shader_cache.rs:31) and debug lines. A user following the template looks for a line the runtime never prints. My earlier verdict claimed it was inhost.rs; that was wrong.d3d12/crates/leonida-gpu/src/host.rs:1533,tracing::info!). "its last 30 lines" has no source I could find ind3d12/scriptsordocs/launcher.md; the number is unsupported.d3d12/scripts/play-nvidia.ps1has[switch]$Log, writes%LOCALAPPDATA%\Leonida\logs\play-<stamp>.logonly with-Log(lines 976-981). That part is right.Not covered
no shader cachewarning) or to drop the parenthesis.Verdict: FAIL (the test and the file layout are fine; the template points users at a log line that does not exist)
AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.