fix(zip-logs): include play.err diagnostics #460

Open
github-bot wants to merge 1 commit from github-bot/gh-460 into main AGit
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:11 UTC · original
vanya890:fix/zip-logs-include-err → main · +22 −2 · 2 files · 1 commits · open

Summary

  • Include both .log and .err files when collecting logs, so play.err diagnostics are preserved in bug-report archives.
  • Add a focused extension-selection test (case-insensitive) and update the CLI reference.

Context

Issue #352 reported that larp zip-logs omitted play.err, which contained the draw-count, regions, and map-mouse diagnostics needed to investigate the menu wedge.

Validation

  • cargo test -p larp --bin larp ziplogs::tests::includes_log_and_error_logs_case_insensitively (1 passed)
  • git diff --check
**@⁠vanya890** on GitHub · 2026-12-06 01:11 UTC · [original](https://github.com/gamingwithhomie/larp/pull/460) `vanya890:fix/zip-logs-include-err` → `main` · +22 −2 · 2 files · 1 commits · open ## Summary - Include both `.log` and `.err` files when collecting logs, so `play.err` diagnostics are preserved in bug-report archives. - Add a focused extension-selection test (case-insensitive) and update the CLI reference. ## Context Issue #352 reported that `larp zip-logs` omitted `play.err`, which contained the draw-count, regions, and map-mouse diagnostics needed to investigate the menu wedge. ## Validation - `cargo test -p larp --bin larp ziplogs::tests::includes_log_and_error_logs_case_insensitively` (1 passed) - `git diff --check`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 01:11:25 +00:00
Author
Owner

@⁠christopear on GitHub · 2026-12-06 01:58 UTC · original

I tested the archive contents on cd000a4d with synthetic logs and the PR's unchanged ziplogs.rs in a standalone Rust harness. Both play.err and an unrelated other.err were included, as documented.

One privacy caveat worth mentioning now that stderr is included. With a dummy Windows username, the exact profile path was redacted, but a differently capitalized spelling of the same username survived inside the ZIP. Wine drive mappings and Linux home paths also survived. The sanitizer already behaved this way before this PR.

Could the CLI success message and docs say something like “Known Windows profile paths are redacted. Check the archive for personal information before sharing”? If only play.err is needed, matching that filename case-insensitively alongside existing logs would also avoid collecting unrelated stderr files. A useful regression fixture would inspect the extracted entry contents as well as the extension filter.

**@⁠christopear** on GitHub · 2026-12-06 01:58 UTC · [original](https://github.com/gamingwithhomie/larp/pull/460#issuecomment-7449588534) I tested the archive contents on `cd000a4d` with synthetic logs and the PR's unchanged `ziplogs.rs` in a standalone Rust harness. Both `play.err` and an unrelated `other.err` were included, as documented. One privacy caveat worth mentioning now that stderr is included. With a dummy Windows username, the exact profile path was redacted, but a differently capitalized spelling of the same username survived inside the ZIP. Wine drive mappings and Linux home paths also survived. The sanitizer already behaved this way before this PR. Could the CLI success message and docs say something like “Known Windows profile paths are redacted. Check the archive for personal information before sharing”? If only `play.err` is needed, matching that filename case-insensitively alongside existing logs would also avoid collecting unrelated stderr files. A useful regression fixture would inspect the extracted entry contents as well as the extension filter.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/460/head:github-bot/gh-460'
git switch 'github-bot/gh-460'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-460'
git switch 'github-bot/gh-460'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-460'
git switch 'github-bot/gh-460'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-460'
git switch 'main'
git merge --squash 'github-bot/gh-460'
git switch 'main'
git merge --ff-only 'github-bot/gh-460'
git switch 'main'
git merge 'github-bot/gh-460'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.