issues: the bug report template says how to get a log #3158

Merged
fiestorra merged 1 commit from upstream-pr/3158 into main 2026-12-02 20:47:34 +00:00
fiestorra commented 2026-12-02 14:57:10 +00:00 (Migrated from github.com)

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:

Could not find a log file. I checked the expected log directory from the documentation,
but no log file was generated.      (#3122's Output)

That is right: the D3D12 runtime writes nothing under %LOCALAPPDATA%\Leonida\logs until -Log
is 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:

For the D3D12 runtime add -Log to play-nvidia.ps1 or play-d3d12.ps1 - the file is
%LOCALAPPDATA%\Leonida\logs\play-*.log, and without -Log nothing is written there; its
last 30 lines name the card (host wave lanes), the shader cache (shader preparation) and
the error.

python -I tests/test_docs_issue_template.py: 2 tests, OK. The second is the control - an
empty 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5608986055 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3158). Originally posted by [fiestorra](https://github.com/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: Could not find a log file. I checked the expected log directory from the documentation, but no log file was generated. (#3122's Output) That is right: the D3D12 runtime writes nothing under %LOCALAPPDATA%\Leonida\logs until `-Log` is 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: For the D3D12 runtime add -Log to play-nvidia.ps1 or play-d3d12.ps1 - the file is %LOCALAPPDATA%\Leonida\logs\play-*.log, and without -Log nothing is written there; its last 30 lines name the card (host wave lanes), the shader cache (shader preparation) and the error. `python -I tests/test_docs_issue_template.py`: 2 tests, OK. The second is the control - an empty 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.
merzleckeier commented 2026-12-02 15:06:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T15:06:04Z.

Review: COMMENTED


-Log and %LOCALAPPDATA%\Leonida\logs\play-*.log match the current Windows D3D12 scripts. The wording about the last 30 lines is stronger than the implementation. play-nvidia.ps1 redirects only the runtime process’s stderr, after setup and shader preparation. A setup failure can still have no runtime log. host wave lanes is 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 current main 83046a71, as expected. I then moved the added paragraph to the System field in a local YAML copy. Both submitted tests passed even though the parsed Output description contained no -Log hint. Scoping the assertions to the description under id: output would catch that case. No title files or run output were used. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6153459757 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3158#pullrequestreview-6153459757). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T15:06:04Z. **Review:** COMMENTED --- `-Log` and `%LOCALAPPDATA%\Leonida\logs\play-*.log` match the current Windows D3D12 scripts. The wording about the last 30 lines is stronger than the implementation. `play-nvidia.ps1` redirects only the runtime process’s stderr, after setup and shader preparation. A setup failure can still have no runtime log. `host wave lanes` is 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 current `main` `83046a71`, as expected. I then moved the added paragraph to the `System` field in a local YAML copy. Both submitted tests passed even though the parsed `Output` description contained no `-Log` hint. Scoping the assertions to the description under `id: output` would catch that case. No title files or run output were used. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-02 18:13:48 +00:00 (Migrated from github.com)

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.

head      2cfbe969c
base      origin/main 45dc41f95, merge base 69cd4106c, merged locally (no conflict)
Python    3.13, no GPU, no game files
Command (on the merge) Result
python -I tests/test_docs_issue_template.py 2 tests, OK
same, with .github/ISSUE_TEMPLATE/bug_report.yml reverted to main FAILED (failures=1): red without the change
python -m unittest discover -s tests -p "test_docs_*.py" 59 tests, OK
python -I scripts/check_no_game_data.py .github/ISSUE_TEMPLATE/bug_report.yml tests/test_docs_issue_template.py exit 0
CI on the head 6 check runs, all green

The text against the code: -Log exists in both launchers (scripts/play-d3d12.ps1:78 forwards it, d3d12/scripts/play-nvidia.ps1:976-981 redirects stderr to %LOCALAPPDATA%\Leonida\logs\play-<stamp>.log only when it is set), so "without -Log nothing is written there" is right. host wave lanes is a real log line (leonida-gpu/src/host.rs:1533).

Nits (not blocking)

  • "(shader preparation)" reads like a log line to search for, but no message in d3d12/ contains that text. Either name the line the log really prints or say "the shader cache lines".
  • Launcher.bat users pass -Log through the "Log to a file (-Log)" checkbox (tools/leonida_launcher.py:873), not on a command line, and scripts/play-linux.sh has no log switch. One more sentence for those two would stop the same "no log" reports from them.
  • No 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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354170609 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3158#issuecomment-7354170609). Originally posted by [MoonEyes](https://github.com/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.** ``` head 2cfbe969c base origin/main 45dc41f95, merge base 69cd4106c, merged locally (no conflict) Python 3.13, no GPU, no game files ``` | Command (on the merge) | Result | |---|---| | `python -I tests/test_docs_issue_template.py` | 2 tests, OK | | same, with `.github/ISSUE_TEMPLATE/bug_report.yml` reverted to `main` | **FAILED (failures=1)**: red without the change | | `python -m unittest discover -s tests -p "test_docs_*.py"` | 59 tests, OK | | `python -I scripts/check_no_game_data.py .github/ISSUE_TEMPLATE/bug_report.yml tests/test_docs_issue_template.py` | exit 0 | | CI on the head | 6 check runs, all green | **The text against the code:** `-Log` exists in both launchers (`scripts/play-d3d12.ps1:78` forwards it, `d3d12/scripts/play-nvidia.ps1:976-981` redirects stderr to `%LOCALAPPDATA%\Leonida\logs\play-<stamp>.log` only when it is set), so "without -Log nothing is written there" is right. `host wave lanes` is a real log line (`leonida-gpu/src/host.rs:1533`). **Nits (not blocking)** - "(shader preparation)" reads like a log line to search for, but no message in `d3d12/` contains that text. Either name the line the log really prints or say "the shader cache lines". - `Launcher.bat` users pass `-Log` through the "Log to a file (-Log)" checkbox (`tools/leonida_launcher.py:873`), not on a command line, and `scripts/play-linux.sh` has no log switch. One more sentence for those two would stop the same "no log" reports from them. - No `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](https://claude.ai/code)_
MoonEyes commented 2026-12-02 20:31:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T20:31:51Z.


RUN (independent run on Windows, head 2cfbe969c9fac8e2ab0c56b289dabbbc70a36dfa, merged into main b41763227aeed2d23c98af84bcbc1bddc7acdc90 with git merge --no-ff)

Green

  • Merge is clean (2 files: .github/ISSUE_TEMPLATE/bug_report.yml, new tests/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.py on both changed files: clean. compileall on the test: clean.
  • CI on the head, as reported by GitHub (read, not run by me): change-scope, no-game-data, jactionlint, check, linux-python-and-viewer, semantic-tests all SUCCESS, completed 2026-12-02. Given today's Actions incident I did not rely on it; the local runs above are what I stand on.

Red

  • With main's bug_report.yml swapped back (git checkout HEAD^ -- <file>), the new test fails: all three hints (-Log, %LOCALAPPDATA%\Leonida\logs, play-nvidia.ps1) reported missing. Restored; tree clean.
  • Mutations of the template: play-nvidia.ps1 -> play.ps1 caught; %LOCALAPPDATA% -> %TEMP% caught; "add -Log to" -> "add it to" survives (-Log still appears in "without -Log"); removing "(shader preparation)" survives, because the test does not look at it.

Review

  • DEFECT (blocks PASS): the template tells users the last 30 lines of the log "name ... the shader cache (shader preparation)". The string "shader preparation" is not printed by any Rust file under d3d12/ (grep over *.rs). It only exists in the new template, docs/launcher.md line 26 and tools/leonida_launcher.py line 881, where it is a launcher setting (off is -NoPrecompile), not a log line. The shader-cache code logs only no 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 in host.rs; that was wrong.
  • Smaller: "host wave lanes" does exist (d3d12/crates/leonida-gpu/src/host.rs:1533, tracing::info!). "its last 30 lines" has no source I could find in d3d12/scripts or docs/launcher.md; the number is unsupported.
  • Claim checked: d3d12/scripts/play-nvidia.ps1 has [switch]$Log, writes %LOCALAPPDATA%\Leonida\logs\play-<stamp>.log only with -Log (lines 976-981). That part is right.
  • Process: references #3122 but gives no coordination-issue item ID. Docs-only change, so a process gap.
  • No reviewer comments read, nothing posted.

Not covered

  • No game run, so I could not see what a real log's last 30 lines contain; the fix is to name only lines the code prints (for example the wave lanes line and the no shader cache warning) or to drop the parenthesis.
  • The test checks substrings only, not YAML structure or GitHub rendering, and not the log-line names the text promises.

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7357883079 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3158#issuecomment-7357883079). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T20:31:51Z. --- RUN (independent run on Windows, head `2cfbe969c9fac8e2ab0c56b289dabbbc70a36dfa`, merged into `main` `b41763227aeed2d23c98af84bcbc1bddc7acdc90` with `git merge --no-ff`) **Green** - Merge is clean (2 files: `.github/ISSUE_TEMPLATE/bug_report.yml`, new `tests/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.py` on both changed files: clean. `compileall` on the test: clean. - CI on the head, as reported by GitHub (read, not run by me): change-scope, no-game-data, jactionlint, check, linux-python-and-viewer, semantic-tests all SUCCESS, completed 2026-12-02. Given today's Actions incident I did not rely on it; the local runs above are what I stand on. **Red** - With main's `bug_report.yml` swapped back (`git checkout HEAD^ -- <file>`), the new test fails: all three hints (`-Log`, `%LOCALAPPDATA%\Leonida\logs`, `play-nvidia.ps1`) reported missing. Restored; tree clean. - Mutations of the template: `play-nvidia.ps1` -> `play.ps1` caught; `%LOCALAPPDATA%` -> `%TEMP%` caught; "add -Log to" -> "add it to" survives (`-Log` still appears in "without -Log"); removing "(shader preparation)" survives, because the test does not look at it. **Review** - DEFECT (blocks PASS): the template tells users the last 30 lines of the log "name ... the shader cache (shader preparation)". The string "shader preparation" is not printed by any Rust file under `d3d12/` (grep over `*.rs`). It only exists in the new template, `docs/launcher.md` line 26 and `tools/leonida_launcher.py` line 881, where it is a launcher setting (off is `-NoPrecompile`), not a log line. The shader-cache code logs only `no 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 in `host.rs`; that was wrong. - Smaller: "host wave lanes" does exist (`d3d12/crates/leonida-gpu/src/host.rs:1533`, `tracing::info!`). "its last 30 lines" has no source I could find in `d3d12/scripts` or `docs/launcher.md`; the number is unsupported. - Claim checked: `d3d12/scripts/play-nvidia.ps1` has `[switch]$Log`, writes `%LOCALAPPDATA%\Leonida\logs\play-<stamp>.log` only with `-Log` (lines 976-981). That part is right. - Process: references #3122 but gives no coordination-issue item ID. Docs-only change, so a process gap. - No reviewer comments read, nothing posted. **Not covered** - No game run, so I could not see what a real log's last 30 lines contain; the fix is to name only lines the code prints (for example the wave lanes line and the `no shader cache` warning) or to drop the parenthesis. - The test checks substrings only, not YAML structure or GitHub rendering, and not the log-line names the text promises. **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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3158
No description provided.