victory doctor: a run's failures, each linked to the issues that report it #2676

Open
shawshanker18 wants to merge 5 commits from upstream-pr/2678 into main
shawshanker18 commented 2026-11-25 17:59:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-25T17:59:32Z.


What

A doctor command: point it at a run's log and it lists what went wrong, each failure with a link that searches this repository's issues and pull requests for it.

victory doctor run.log
15 kinds of failure, most severe first. Open a link to see who else reported it.

[1] Crash: access violation at image+0x23cf683 (write 0x0)  (x2)
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+0x23cf683
[2] Warning: a pipeline creation method that is not implemented the (slot=0x1c8)  (x16)
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22a+pipeline+creation+method+that+is+not+implemented+the%22
[5] Warning: host pipeline refused  (x6)
    shaders: <6 hashes, listed locally>
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22host+pipeline+refused%22

victory doctor run.log --draft 1 writes an issue for a failure nobody has reported yet. It contains an allowlist only: kind, title (our message text, or a crash's code and module-relative offsets), count, an environment checklist, and the search that came back empty. No log lines, shader hashes or memory values (rule 7 of #1633).

victory doctor run.log --json prints the same for scripts and agents that triage run reports: number, kind, a stable key, title, count, search terms and URL. The key is the same across runs and builds, so reports can be grouped by it.

Why

About 190 of the open issues are run reports, many of them the same few failures. The +0x23cf683 trap, the 1,000,000-slot view heap on NVIDIA, refused wave64 compute and B5G5R5A1 UAVs each have 7 to 18 reports. People paste whole logs because they cannot tell whether what they hit is known. One command that names each failure the way earlier reports did, and links to them, should mean fewer duplicates and more "+1 with my setup" on the issue that already exists.

How it reads a run

  • The log: WARN and ERROR lines, grouped by message. The words before the first key=value name the group, and slot, format, stage, dimension, kind and dll tell groups apart. Shader hashes named by hash= or [compute …] are collected per group. Messages expected in every run are left out (currently the loop-limit notice).
  • crashes.log: only the entries written between the log's first timestamp and a minute after its last, from every title folder under the configured data folder (or --crashes <file>).
    • A crash in a title image is named image+<offset>, the form the issues use, which is the same whatever the image's file name.
    • A crash in our own code is named by the first title frame below it (our offsets change with every build).
    • The commit limit (os error 1455) and lost devices (0x887A000x) get their own entries.
  • Nothing goes on the network. The links are for the person to open.

Checks

  • 5 unit tests on synthetic lines:
    • grouping, counting and severity order;
    • only the run's own crashes.log entries are read, including date arithmetic;
    • links and drafts carry no user name;
    • a shader hash, a peek line and a crash address next to the failures never reach a draft;
    • a log cut mid-line or holding invalid bytes does not stop it.
  • cargo test -p victory --bin victory: 16 passed.
  • cargo clippy -p victory --all-targets -- -D warnings and cargo fmt --check: clean. cargo xtask policy: ok.
  • Run on real logs from an RTX 4050 laptop (fxceless fork and main). The crash at +0x23cf683 and the capped view heap come out as above, and a crash from a later run in the same crashes.log is not attributed to the earlier log.

No new dependencies, no game data.

A standalone version for anyone not building from source is at shawshanker18/victory-doctor. It adds live GitHub lookups with NEW / KNOWN / PR / MERGED status, a local web page with filled-in issue forms, and an opt-in shared dataset of run results by GPU and settings.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6610547696 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-25T17:59:32Z. --- ## What A `doctor` command: point it at a run's log and it lists what went wrong, each failure with a link that searches this repository's issues and pull requests for it. ``` victory doctor run.log ``` ``` 15 kinds of failure, most severe first. Open a link to see who else reported it. [1] Crash: access violation at image+0x23cf683 (write 0x0) (x2) https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+0x23cf683 [2] Warning: a pipeline creation method that is not implemented the (slot=0x1c8) (x16) https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22a+pipeline+creation+method+that+is+not+implemented+the%22 [5] Warning: host pipeline refused (x6) shaders: <6 hashes, listed locally> https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22host+pipeline+refused%22 ``` `victory doctor run.log --draft 1` writes an issue for a failure nobody has reported yet. It contains an allowlist only: kind, title (our message text, or a crash's code and module-relative offsets), count, an environment checklist, and the search that came back empty. No log lines, shader hashes or memory values (rule 7 of #1633). `victory doctor run.log --json` prints the same for scripts and agents that triage run reports: number, kind, a stable key, title, count, search terms and URL. The key is the same across runs and builds, so reports can be grouped by it. ## Why About 190 of the open issues are run reports, many of them the same few failures. The `+0x23cf683` trap, the 1,000,000-slot view heap on NVIDIA, refused wave64 compute and B5G5R5A1 UAVs each have 7 to 18 reports. People paste whole logs because they cannot tell whether what they hit is known. One command that names each failure the way earlier reports did, and links to them, should mean fewer duplicates and more "+1 with my setup" on the issue that already exists. ## How it reads a run - **The log:** `WARN` and `ERROR` lines, grouped by message. The words before the first `key=value` name the group, and `slot`, `format`, `stage`, `dimension`, `kind` and `dll` tell groups apart. Shader hashes named by `hash=` or `[compute …]` are collected per group. Messages expected in every run are left out (currently the loop-limit notice). - **`crashes.log`:** only the entries written between the log's first timestamp and a minute after its last, from every title folder under the configured data folder (or `--crashes <file>`). - A crash in a title image is named `image+<offset>`, the form the issues use, which is the same whatever the image's file name. - A crash in our own code is named by the first title frame below it (our offsets change with every build). - The commit limit (os error 1455) and lost devices (`0x887A000x`) get their own entries. - **Nothing goes on the network.** The links are for the person to open. ## Checks - 5 unit tests on synthetic lines: - grouping, counting and severity order; - only the run's own `crashes.log` entries are read, including date arithmetic; - links and drafts carry no user name; - a shader hash, a peek line and a crash address next to the failures never reach a draft; - a log cut mid-line or holding invalid bytes does not stop it. - `cargo test -p victory --bin victory`: 16 passed. - `cargo clippy -p victory --all-targets -- -D warnings` and `cargo fmt --check`: clean. `cargo xtask policy`: ok. - Run on real logs from an RTX 4050 laptop (fxceless fork and `main`). The crash at `+0x23cf683` and the capped view heap come out as above, and a crash from a later run in the same `crashes.log` is not attributed to the earlier log. No new dependencies, no game data. A standalone version for anyone not building from source is at [shawshanker18/victory-doctor](https://github.com/shawshanker18/victory-doctor). It adds live GitHub lookups with NEW / KNOWN / PR / MERGED status, a local web page with filled-in issue forms, and an opt-in shared dataset of run results by GPU and settings.
DrDarkDK commented 2026-11-25 19:05:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T18:08:10Z.

Review: CHANGES_REQUESTED


--draft can include title-derived data while saying “No game data.” It prints shader hashes and surrounding log lines after path redaction. Those lines can include raw title-memory values from VICTORY_PEEK. The coordination rules also ask contributors to keep title shader hashes out of comments. Coordination rules

Could the paste-ready draft use an allowlist of fields such as failure kind, HRESULT, module-relative offset, and count? Raw excerpts and hashes can stay in local output. A synthetic log with a shader hash and an adjacent peek line would verify that neither reaches the draft.

Static review only.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:review:6062621294 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6062621294). Originally posted by [DrDarkDK](https://github.com/DrDarkDK) on 2026-11-25T18:08:10Z. **Review:** CHANGES_REQUESTED --- `--draft` can include title-derived data while saying “No game data.” It prints shader hashes and surrounding log lines after path redaction. Those lines can include raw title-memory values from `VICTORY_PEEK`. The coordination rules also ask contributors to keep title shader hashes out of comments. [Coordination rules](https://github.com/Marvisak/VIctory/issues/1633) Could the paste-ready draft use an allowlist of fields such as failure kind, HRESULT, module-relative offset, and count? Raw excerpts and hashes can stay in local output. A synthetic log with a shader hash and an adjacent peek line would verify that neither reaches the draft. Static review only. *AI-assisted with Codex.*
DrDarkDK commented 2026-11-25 19:05:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T18:20:55Z.

Review: CHANGES_REQUESTED


Thanks for removing the excerpts and hashes from --draft. The HTML report now uses the sanitized draft for the issue body, but to_html still builds the GitHub form’s title= with encode(&f.title). For the non-null write crash in the new test, that sends the raw fault address to GitHub as soon as the link is opened.

Could the form use public_title(f) too? The existing test can check that the decoded title query parameter contains (write) and omits the fault address.

Static review only.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:review:6062791631 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6062791631). Originally posted by [DrDarkDK](https://github.com/DrDarkDK) on 2026-11-25T18:20:55Z. **Review:** CHANGES_REQUESTED --- Thanks for removing the excerpts and hashes from `--draft`. The HTML report now uses the sanitized draft for the issue body, but `to_html` still builds the GitHub form’s `title=` with `encode(&f.title)`. For the non-null write crash in the new test, that sends the raw fault address to GitHub as soon as the link is opened. Could the form use `public_title(f)` too? The existing test can check that the decoded `title` query parameter contains `(write)` and omits the fault address. Static review only. *AI-assisted with Codex.*
DrDarkDK commented 2026-11-25 19:05:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T18:53:16Z.

Review: APPROVED


Thanks for the update. I checked 1fa5af2: the HTML issue form now uses public_title(f), and the regression decodes the form title to verify that it keeps (write) and omits the fault address. That resolves my remaining concern with the paste-ready output.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:review:6063229562 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6063229562). Originally posted by [DrDarkDK](https://github.com/DrDarkDK) on 2026-11-25T18:53:16Z. **Review:** APPROVED --- Thanks for the update. I checked `1fa5af2`: the HTML issue form now uses `public_title(f)`, and the regression decodes the form title to verify that it keeps `(write)` and omits the fault address. That resolves my remaining concern with the paste-ready output. *AI-assisted with Codex.*
cloph-dsp commented 2026-11-25 19:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T18:05:32Z.


Independent Windows verification of PR #2678 (head 83c52e8), no game data and no source edits. Toolchain: rustc/cargo 1.100.0, Windows MSVC.

  • cargo test --locked -p victory --bin victory -- counted_by_kind_and_ordered_by_severity --test-threads=1 -> doctor::tests::a_run_s_failures_are_counted_by_kind_and_ordered_by_severity passed.
  • cargo test --locked -p victory --bin victory -- only_the_run_s_own_crash_entries_are_read --test-threads=1 -> doctor::tests::only_the_run_s_own_crash_entries_are_read passed.
  • cargo test --locked -p victory --bin victory -- links_and_drafts_name_no_user --test-threads=1 -> doctor::tests::links_and_drafts_name_no_user passed.
  • Negative control on origin/main 13f91ca: each of the three filters reports 0 tests (the tests are new).
  • Full binary suite on the PR head: cargo test --locked -p victory --bin victory -- --test-threads=1 -> 13 passed, 0 failed.

Only warnings are the pre-existing fetch_update deprecations in victory-gpu/victory-hle, also present on base. The synthetic tests exercise log-line parsing and formatting; no network request or user-name-taking path was needed. No competing PR. AI-assisted (Hy4 flash).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7170425835 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7170425835). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T18:05:32Z. --- Independent Windows verification of PR #2678 (head `83c52e8`), no game data and no source edits. Toolchain: rustc/cargo 1.100.0, Windows MSVC. - `cargo test --locked -p victory --bin victory -- counted_by_kind_and_ordered_by_severity --test-threads=1` -> `doctor::tests::a_run_s_failures_are_counted_by_kind_and_ordered_by_severity` passed. - `cargo test --locked -p victory --bin victory -- only_the_run_s_own_crash_entries_are_read --test-threads=1` -> `doctor::tests::only_the_run_s_own_crash_entries_are_read` passed. - `cargo test --locked -p victory --bin victory -- links_and_drafts_name_no_user --test-threads=1` -> `doctor::tests::links_and_drafts_name_no_user` passed. - Negative control on `origin/main` `13f91ca`: each of the three filters reports **0 tests** (the tests are new). - Full binary suite on the PR head: `cargo test --locked -p victory --bin victory -- --test-threads=1` -> **13 passed**, 0 failed. Only warnings are the pre-existing `fetch_update` deprecations in `victory-gpu`/`victory-hle`, also present on base. The synthetic tests exercise log-line parsing and formatting; no network request or user-name-taking path was needed. No competing PR. AI-assisted (Hy4 flash).
shawshanker18 commented 2026-11-25 19:06:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-25T18:18:18Z.


@DrDarkDK thanks, agreed. Fixed in the latest push:

  • The paste-ready draft is now an allowlist only:
    • failure kind;
    • title: our own message text, or the crash's exception code, module-relative offset(s) and access kind (write at address 0 / write, never the address itself);
    • count;
    • the search link built from the same terms.
  • No log lines, no shader hashes, no memory values. The issue form that --html fills in uses the same draft.
  • Raw excerpts and hashes stay in local output only: the terminal list, --json, and folded sections of the --html page, labelled as not for posting.
  • New test drafts_carry_no_log_lines_hashes_or_memory_values uses a synthetic log with a peek line (victory_gpu::capture: peek frame 0x...: <words>) next to a refused pipeline with a shader hash, plus a crash with a non-null address. It checks that none of the hash, the peeked words, the peek address or the crash address reaches a draft or a filled-in form.

cargo test -p victory --bin victory: 16 passed. Clippy -D warnings and fmt clean; cargo xtask policy ok.

@cloph-dsp thanks for the independent run.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7170724948 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7170724948). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-25T18:18:18Z. --- @DrDarkDK thanks, agreed. Fixed in the latest push: - The paste-ready draft is now an allowlist only: - failure kind; - title: our own message text, or the crash's exception code, module-relative offset(s) and access kind (`write at address 0` / `write`, never the address itself); - count; - the search link built from the same terms. - No log lines, no shader hashes, no memory values. The issue form that `--html` fills in uses the same draft. - Raw excerpts and hashes stay in local output only: the terminal list, `--json`, and folded sections of the `--html` page, labelled as not for posting. - New test `drafts_carry_no_log_lines_hashes_or_memory_values` uses a synthetic log with a `peek` line (`victory_gpu::capture: peek frame 0x...: <words>`) next to a refused pipeline with a shader hash, plus a crash with a non-null address. It checks that none of the hash, the peeked words, the peek address or the crash address reaches a draft or a filled-in form. `cargo test -p victory --bin victory`: 16 passed. Clippy `-D warnings` and fmt clean; `cargo xtask policy` ok. @cloph-dsp thanks for the independent run.
shawshanker18 commented 2026-11-25 19:06:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-25T18:47:39Z.


@DrDarkDK good catch, thanks. Fixed in the latest push: the form's title= now comes from public_title(f), the same allowlisted title as the draft. The cut note is now based on the body's own length.

drafts_carry_no_log_lines_hashes_or_memory_values now:

  • decodes the crash's form title and checks it is exactly Crash: access violation at image+0x23cf683 (write);
  • checks that no form anywhere on the page holds the fault address, either peek value, or the shader hash.

16 passed; clippy -D warnings, fmt and xtask policy clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171408173 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171408173). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-25T18:47:39Z. --- @DrDarkDK good catch, thanks. Fixed in the latest push: the form's `title=` now comes from `public_title(f)`, the same allowlisted title as the draft. The cut note is now based on the body's own length. `drafts_carry_no_log_lines_hashes_or_memory_values` now: - decodes the crash's form title and checks it is exactly `Crash: access violation at image+0x23cf683 (write)`; - checks that no form anywhere on the page holds the fault address, either peek value, or the shader hash. 16 passed; clippy `-D warnings`, fmt and `xtask policy` clean.
kotekompotek commented 2026-11-25 19:06:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T18:48:55Z.


Thoroughly built - this directly attacks the duplicate-run-report problem:

  • Crash keys are stable across builds: victory-image- normalizes to 'image', and for faults in our own DLLs the search term is the title frame below (whose offset survives our rebuilds), falling back to the exception code.
  • The draft is genuinely allowlist-only (kind, public title, count, env checklist, the search link) - compliant with rule 7: no log lines, shader hashes or memory values. public_title even strips the fault address from the issue-form title while keeping the read/write/0 distinction.
  • Shader hashes collected per failure but kept local-only - both in --json (as 'shaders' for the user) and the HTML's 'for you' note. Consistent everywhere it matters.
  • crash_entries bounds crashes.log to the run's own window (+60s) and redact covers X:\Users<name> case-insensitively; the excerpt is redacted but stays local.
  • phrase()/fields() keying correctly tells apart same-message-different-slot warnings and merges same kind across slots in count.

One nit: a WARN/ERROR whose phrase is under 3 words gets no search link (terms empty, shader fallback only). Rare, and better than a noisy link.

The fixture tests cover the exact real-world cases (heap cap, refused pipelines, int3/AV crashes, commit limit). CI green.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171437162 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171437162). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T18:48:55Z. --- Thoroughly built - this directly attacks the duplicate-run-report problem: - Crash keys are stable across builds: victory-image-<hash> normalizes to 'image', and for faults in our own DLLs the search term is the title frame below (whose offset survives our rebuilds), falling back to the exception code. - The draft is genuinely allowlist-only (kind, public title, count, env checklist, the search link) - compliant with rule 7: no log lines, shader hashes or memory values. public_title even strips the fault address from the issue-form title while keeping the read/write/0 distinction. - Shader hashes collected per failure but kept local-only - both in --json (as 'shaders' for the user) and the HTML's 'for you' note. Consistent everywhere it matters. - crash_entries bounds crashes.log to the run's own window (+60s) and redact covers X:\Users\<name> case-insensitively; the excerpt is redacted but stays local. - phrase()/fields() keying correctly tells apart same-message-different-slot warnings and merges same kind across slots in count. One nit: a WARN/ERROR whose phrase is under 3 words gets no search link (terms empty, shader fallback only). Rare, and better than a noisy link. The fixture tests cover the exact real-world cases (heap cap, refused pipelines, int3/AV crashes, commit limit). CI green.
fuzeofficlal commented 2026-11-25 19:06:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T19:05:54Z.


Independent Windows 11 verification and code review of 1fa5af2d (on 13f91ca):

Verification (rustc 1.98.1 MSVC)

  • cargo clippy --locked -p victory --all-targets -- -D warnings and --all-features: 0 warnings.
  • cargo test --locked -p victory: 16 passed (unit, all 6 doctor::tests pass), 2 passed (tests/census.rs).
  • cargo xtask policy: 185 files ok.

Review Notes (2 parsing edge cases found)

  • Privacy redaction (public_title, whitelist issue drafts, case-insensitive user-path stripping, HTML/JSON escaping) and synthetic test inputs look clean and policy-compliant.
  • Potential panic on truncated or non-ASCII 0x887a000 match (apps/victory/src/doctor.rs:275-278): "0x887a000" is 9 bytes, so lower[at..at + 10] will panic if a WARN/ERROR line mentioning device/removed/hung ends right after "0x887a000" (truncated crash log) or has a multi-byte UTF-8 character at byte at + 9. Using lower.get(at..at + 10) (or parsing via hex_at(&lower[at..]) with a length check) prevents the panic.
  • Non-UTF-8 / mid-char-truncated logs (apps/victory/src/doctor.rs:548-558): fs::read_to_string fails (or silently skips crashes.log) if a crash truncates the log mid-UTF-8 sequence or a title emits non-UTF-8 bytes; reading raw bytes via fs::read + String::from_utf8_lossy makes crash-log inspection resilient to that.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7171815755 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171815755). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T19:05:54Z. --- Independent Windows 11 verification and code review of `1fa5af2d` (on `13f91ca`): ### Verification (`rustc 1.98.1` MSVC) - `cargo clippy --locked -p victory --all-targets -- -D warnings` and `--all-features`: **0 warnings**. - `cargo test --locked -p victory`: **16 passed** (unit, all 6 `doctor::tests` pass), **2 passed** (`tests/census.rs`). - `cargo xtask policy`: **185 files ok**. ### Review Notes (2 parsing edge cases found) - Privacy redaction (`public_title`, whitelist issue drafts, case-insensitive user-path stripping, HTML/JSON escaping) and synthetic test inputs look clean and policy-compliant. - **Potential panic on truncated or non-ASCII `0x887a000` match (`apps/victory/src/doctor.rs:275-278`):** `"0x887a000"` is 9 bytes, so `lower[at..at + 10]` will panic if a `WARN`/`ERROR` line mentioning `device`/`removed`/`hung` ends right after `"0x887a000"` (truncated crash log) or has a multi-byte UTF-8 character at byte `at + 9`. Using `lower.get(at..at + 10)` (or parsing via `hex_at(&lower[at..])` with a length check) prevents the panic. - **Non-UTF-8 / mid-char-truncated logs (`apps/victory/src/doctor.rs:548-558`):** `fs::read_to_string` fails (or silently skips `crashes.log`) if a crash truncates the log mid-UTF-8 sequence or a title emits non-UTF-8 bytes; reading raw bytes via `fs::read` + `String::from_utf8_lossy` makes crash-log inspection resilient to that.
shawshanker18 commented 2026-11-25 20:06:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-25T19:22:00Z.


@fuzeofficlal thanks, both fixed in the latest push. The device code is now taken with get(at..at + 10) and must end in a hex digit, so a line cut after 0x887a000, or a wide character there, is skipped rather than panicking. The log and crashes.log are read as bytes and decoded lossily. New test cut_device_codes_and_invalid_bytes_do_not_panic covers both. 17 passed; clippy, fmt and policy clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7172194853 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7172194853). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-25T19:22:00Z. --- @fuzeofficlal thanks, both fixed in the latest push. The device code is now taken with `get(at..at + 10)` and must end in a hex digit, so a line cut after `0x887a000`, or a wide character there, is skipped rather than panicking. The log and crashes.log are read as bytes and decoded lossily. New test `cut_device_codes_and_invalid_bytes_do_not_panic` covers both. 17 passed; clippy, fmt and policy clean.
fuzeofficlal commented 2026-11-25 20:06:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T19:55:49Z.


Re-verified affbb9d3 on Windows 11 (rustc 1.98.1 MSVC, 13f91ca):

  • cargo xtask policy: 185 files ok.
  • cargo clippy --locked -p victory --all-targets -- -D warnings: 0 warnings.
  • cargo test --locked -p victory: 17 passed (unit, including cut_device_codes_and_invalid_bytes_do_not_panic), 2 passed (tests/census.rs).

Both the truncated/non-ASCII 0x887a000 slice (lower.get(at..at + 10) + hex check) and lossy UTF-8 reading for run.log and crashes.log are cleanly fixed. Looks ready to merge!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7172955940 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7172955940). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T19:55:49Z. --- Re-verified `affbb9d3` on Windows 11 (`rustc 1.98.1` MSVC, `13f91ca`): - `cargo xtask policy`: **185 files ok**. - `cargo clippy --locked -p victory --all-targets -- -D warnings`: **0 warnings**. - `cargo test --locked -p victory`: **17 passed** (unit, including `cut_device_codes_and_invalid_bytes_do_not_panic`), **2 passed** (`tests/census.rs`). Both the truncated/non-ASCII `0x887a000` slice (`lower.get(at..at + 10)` + hex check) and lossy UTF-8 reading for `run.log` and `crashes.log` are cleanly fixed. Looks ready to merge!
Marvisak commented 2026-11-26 00:03:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T23:24:56Z.


Automated triage for the maintainers.

Still needs the maintainer's decision on scope. apps/victory/src/doctor.rs is the terminal list with search links, --draft (allowlist: kind, public title, count) and --json. The HTML page and form filling are gone. I found no network access, process spawning or new dependencies. The only URL is GitHub's issue search, built locally for the user to open. Whether VIctory wants issue-triage tooling in the main binary, keyed to the wording of our tracing messages and this repository's issue tracker, is the maintainer's call, not a correctness question. It merges cleanly and CI check passes on 8cc965b.

On your latest reply: the scope question is flagged for the maintainer, and triage can't answer it. For the record, DrDarkDK's approval and the Windows re-runs were on earlier heads (1fa5af2, affbb9d), before the trim. Only CI has run on 8cc965b.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177528419 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7177528419). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T23:24:56Z. --- <!-- victory-triage v1 head=8cc965bc8f6aa981a8f32aeff369ebf150951f13 verdict=needs-work at=2026-11-26T08:28:11Z --> Automated triage for the maintainers. Still needs the maintainer's decision on scope. `apps/victory/src/doctor.rs` is the terminal list with search links, `--draft` (allowlist: kind, public title, count) and `--json`. The HTML page and form filling are gone. I found no network access, process spawning or new dependencies. The only URL is GitHub's issue search, built locally for the user to open. Whether VIctory wants issue-triage tooling in the main binary, keyed to the wording of our `tracing` messages and this repository's issue tracker, is the maintainer's call, not a correctness question. It merges cleanly and CI `check` passes on `8cc965b`. On your latest reply: the scope question is flagged for the maintainer, and triage can't answer it. For the record, DrDarkDK's approval and the Windows re-runs were on earlier heads (`1fa5af2`, `affbb9d`), before the trim. Only CI has run on `8cc965b`. --- _Generated by [Claude Code](https://claude.ai/code)_
shawshanker18 commented 2026-11-26 00:03:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-25T23:34:47Z.


Trimmed to the smaller first version suggested in triage. What stays: the terminal list with search links, --draft (allowlist only) and --json. What's gone: --html, the filled-in issue forms and their tests, about 200 lines. The fuller version lives outside the tree.

On keys following the log wording: that's deliberate. A failure is found by the same words people paste into issues, so a reworded message gives a new key, and its search link finds new reports with the new wording. The URL formats are GitHub's documented /search?type=issues&q= and nothing else.

16 passed; clippy -D warnings, fmt and policy clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177758977 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7177758977). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-25T23:34:47Z. --- Trimmed to the smaller first version suggested in triage. What stays: the terminal list with search links, `--draft` (allowlist only) and `--json`. What's gone: `--html`, the filled-in issue forms and their tests, about 200 lines. The fuller version lives outside the tree. On keys following the log wording: that's deliberate. A failure is found by the same words people paste into issues, so a reworded message gives a new key, and its search link finds new reports with the new wording. The URL formats are GitHub's documented `/search?type=issues&q=` and nothing else. 16 passed; clippy `-D warnings`, fmt and policy clean.
shawshanker18 commented 2026-11-26 08:03:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shawshanker18 on 2026-11-26T07:25:52Z.


This is trimmed to the smaller first version from the triage note: the terminal list with search links, --draft (allowlist only) and --json, in one file plus a few lines in main.rs. No new dependencies, and CI is green on 8cc965bc. DrDarkDK approved it, and cloph-dsp and fuzeofficlal re-ran the tests and clippy on Windows.

@Marvisak, when you have a moment, is this scope acceptable to merge? If you'd rather have something smaller, or a different flag name, I'll change it.

Anyone who has a run log handy: victory doctor <log> and a reply saying whether the failures it lists match the issues you know of would help this land.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7185448034 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7185448034). Originally posted by [shawshanker18](https://github.com/shawshanker18) on 2026-11-26T07:25:52Z. --- This is trimmed to the smaller first version from the triage note: the terminal list with search links, `--draft` (allowlist only) and `--json`, in one file plus a few lines in `main.rs`. No new dependencies, and CI is green on `8cc965bc`. DrDarkDK approved it, and cloph-dsp and fuzeofficlal re-ran the tests and clippy on Windows. @Marvisak, when you have a moment, is this scope acceptable to merge? If you'd rather have something smaller, or a different flag name, I'll change it. Anyone who has a run log handy: `victory doctor <log>` and a reply saying whether the failures it lists match the issues you know of would help this land.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2678:upstream-pr/2678'
git switch 'upstream-pr/2678'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2678'
git switch 'upstream-pr/2678'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2678'
git switch 'upstream-pr/2678'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2678'
git switch 'main'
git merge --squash 'upstream-pr/2678'
git switch 'main'
git merge --ff-only 'upstream-pr/2678'
git switch 'main'
git merge 'upstream-pr/2678'
git push origin 'main'
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
Marvisak/VIctory!2676
No description provided.