Add opt-in dependency diagnostics #107

Closed
github-bot wants to merge 1 commit from gh-pr/107/head into gh-pr/107/base
Owner

@⁠Castyan on GitHub · 2026-11-24 00:34 UTC · original
Castyan:feature/dependency-observability → main · +618 −14 · 14 files · 1 commits · closed without merging

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** on GitHub · 2026-11-24 00:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/107) `Castyan:feature/dependency-observability` → `main` · +618 −14 · 14 files · 1 commits · closed without merging ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:26 +00:00
github-bot closed this pull request 2026-11-26 03:50:26 +00:00
Author
Owner

@⁠Castyan on GitHub · 2026-11-24 00:38 UTC · original

AI assited GPT 6.2 Sol for information

**@⁠Castyan** on GitHub · 2026-11-24 00:38 UTC · [original](https://github.com/Marvisak/VIctory/pull/107#issuecomment-7118287765) AI assited GPT 6.2 Sol for information
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 01:12 UTC · original

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.

**@⁠DaviTostes** on GitHub · 2026-11-24 01:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/107#issuecomment-7118861609) 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.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!107
No description provided.