Add opt-in dependency diagnostics #107

Closed
Castyan wants to merge 1 commit from upstream-pr/107 into main
Castyan commented 2026-11-24 00:34:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Castyan on 2026-11-24T00:34:04Z.


Summary

  • Add the opt-in --diagnostic-jsonl flag for image reads, image cache directory creation, and Win32 image mapping.
  • Preserve the original Rust I/O error and capture the Win32 status immediately on failure. Include a small offline code catalog and leave root cause undetermined when evidence is missing.
  • Add cargo xtask diagnostics to report the first observed failure, distinct incidents, occurrence counts, and incomplete sessions. Export only allowlisted fields to a capped file outside VIctory checkouts.

This PR covers the initial observability proof of concept. GPU, audio, and shader dependency instrumentation and automated campaign uploads are future work.

Validation

  • Windows MSVC, Rust 1.98.1. cargo test --workspace --locked --no-fail-fast -- --test-threads=1 completed successfully. The harness reported 229 passed and 3 explicitly ignored. Four shader differential tests returned early because the console compiler was unavailable.
  • The existing GPU frame-timing test failed once during the parallel run. It passed in the serial workspace run and in isolated runs on both the baseline and this branch.
  • cargo check --locked --workspace --all-features, changed-file formatting, git diff --check, and the asset policy checks passed.
  • A synthetic missing-file smoke test verified the CLI error exit status, native code, JSONL report, and redaction. It also verified that an existing capture is preserved and that a path inside the repository is rejected.
  • In a release smoke benchmark with 100 runs per mode, median end-to-end time was 9.29 ms at baseline, 9.26 ms with JSONL disabled, and 17.39 ms with JSONL enabled. The enabled run wrote a median of 1,432 bytes. This measures process startup and a synthetic failure, and does not measure frame performance.

Validation used the project's synthetic fixtures and no commercial title or proprietary guest content.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6571850704 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/107). Originally posted by [Castyan](https://github.com/Castyan) on 2026-11-24T00:34:04Z. --- ## Summary - Add the opt-in `--diagnostic-jsonl` flag for image reads, image cache directory creation, and Win32 image mapping. - Preserve the original Rust I/O error and capture the Win32 status immediately on failure. Include a small offline code catalog and leave root cause undetermined when evidence is missing. - Add `cargo xtask diagnostics` to report the first observed failure, distinct incidents, occurrence counts, and incomplete sessions. Export only allowlisted fields to a capped file outside VIctory checkouts. This PR covers the initial observability proof of concept. GPU, audio, and shader dependency instrumentation and automated campaign uploads are future work. ## Validation - Windows MSVC, Rust 1.98.1. `cargo test --workspace --locked --no-fail-fast -- --test-threads=1` completed successfully. The harness reported 229 passed and 3 explicitly ignored. Four shader differential tests returned early because the console compiler was unavailable. - The existing GPU frame-timing test failed once during the parallel run. It passed in the serial workspace run and in isolated runs on both the baseline and this branch. - `cargo check --locked --workspace --all-features`, changed-file formatting, `git diff --check`, and the asset policy checks passed. - A synthetic missing-file smoke test verified the CLI error exit status, native code, JSONL report, and redaction. It also verified that an existing capture is preserved and that a path inside the repository is rejected. - In a release smoke benchmark with 100 runs per mode, median end-to-end time was 9.29 ms at baseline, 9.26 ms with JSONL disabled, and 17.39 ms with JSONL enabled. The enabled run wrote a median of 1,432 bytes. This measures process startup and a synthetic failure, and does not measure frame performance. Validation used the project's synthetic fixtures and no commercial title or proprietary guest content.
Castyan commented 2026-11-24 06:54:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Castyan on 2026-11-24T00:38:56Z.


AI assited GPT 6.2 Sol for information

<!-- greyfinch-sync:Marvisak/VIctory:comment:7118287765 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/107#issuecomment-7118287765). Originally posted by [Castyan](https://github.com/Castyan) on 2026-11-24T00:38:56Z. --- AI assited GPT 6.2 Sol for information
DaviTostes commented 2026-11-24 06:54:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T01:12:07Z.


Tested 85a88de: pass.

  • Tested on Arch Linux x86_64, rustc 1.98.1, cargo test -p xtask: 5 passed, 0 failed, including the 5 tests this PR adds.

No game data used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7118861609 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/107#issuecomment-7118861609). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T01:12:07Z. --- Tested `85a88de`: **pass**. - Tested on **Arch Linux x86_64, rustc 1.98.1**, `cargo test -p xtask`: **5 passed, 0 failed**, including the 5 tests this PR adds. No game data used.
upstream-sync closed this pull request 2026-11-24 08:01:48 +00:00

Pull request closed

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!107
No description provided.