GPU: open VICTORY_PIPELINE_LOG once and ignore empty values #3453
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3453
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3453"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@alexandruiulian201-bot on GitHub · 2026-11-27 03:08 UTC · original
alexandruiulian201-bot:fix/pipeline-log-open-once→main· +77 −13 · 1 files · 1 commits · openProblem
In
crates/victory-gpu/src/pipeline/make.rs,VICTORY_PIPELINE_LOGhas two issues when diagnostics are enabled:VICTORY_PIPELINE_LOG=""is treated as a configured path rather than unset (unlikeVICTORY_CONFIG,VICTORY_GAME_DIR, andVICTORY_WINDOW_MAX).std::fs::File::create(path)fails (for example, missing parent directory or empty path),LOGstaysNoneand every subsequentcreated,used, andbuiltpipeline event retriesFile::create(path)silently.Fix
PipelineLoghelper whoseopen(&OsStr)ignores empty paths, attemptsFile::createonce insideOnceLock::get_or_init, and logs a singletracing::warn!if opening fails.(what, key)deduplication and tab-separated line formatting unchanged.#[cfg(feature = "diagnostics")]covering empty/unwritable paths and event deduplication/formatting.Verification
cargo test -p victory-gpu --lib --features diagnostics --locked pipeline_log_: 2 passed.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings: clean.cargo test -p xtask --bin xtask --locked: 6 passed (repository_passes_policyok).AI-assisted. Synthetic unit tests only (no game files used).
@oni-swr on GitHub · 2026-11-27 03:27 UTC · original
WARP test report (AI-assisted with Claude; synthetic tests only, no game files)
53596d8e7573a94a4c168fb330b82be415159536, base:origin/main@63bcca4(this PR's merge base)VICTORY_WARP=1,VICTORY_D3D12_WARP=1, adapter vendor 0x1414 / software flag), DXIL validatordxil.dllfrom the Windows SDK 10.0.26100VICTORY_D3D12_WARPis only honored with--features diagnostics(host.rscreate()); without itcargo test -p victory-gpu --libpicks the hardware GPU. I ran with--features diagnostics.cargo test -p victory-gpu --lib --locked --features diagnostics: 248 passed, 0 failed, 1 ignored (base: 246/0/1; the +2 arepipeline_log_ignores_empty_and_unwritable_pathsandpipeline_log_deduplicates_events_per_kind_and_key, both pass)cargo test -p xtask --bin xtask --locked: 6 passedwaits_end_on_ticks_and_count_framespassed on both. I did not re-run clippy.Review: no correctness issue found. The open now happens once inside
OnceLock::get_or_initand warns once, empty values are ignored, and dedup and line format are unchanged.@cloph-dsp on GitHub · 2026-11-27 08:11 UTC · original
Independent CPU-only verification of PR #3453 (
GPU: pipeline log ignores empty and unwritable paths).CARGO_TARGET_DIR(D:\Victory-Contrib\target-3453-verify),CARGO_BUILD_JOBS=2.53596d8e7573a94a4c168fb330b82be415159536, merge base63bcca4.cargo test --locked -p victory-gpu --lib --features diagnostics -- pipeline::make::tests::pipeline_log_ignores_empty_and_unwritable_paths --exact --test-threads=1 --quiet->1 passed; 0 failed; 248 filtered.--features diagnosticsrequired: the test lives behind that feature gate.git grep -Ffor the new test name on base63bcca4returned no hits (test absent on base).git diff --check 63bcca4 HEADexit 0 (clean).@futurepro62 on GitHub · 2026-11-27 08:37 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, oni-swr, since none of them names a GPU run. Tested exact head
53596d8(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.pipeline_log_ignores_empty_and_unwritable_paths,pipeline_log_deduplicates_events_per_kind_and_keyonly build with thediagnosticsfeature, so the run above doesn't include them; they pass incargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics(same skips).--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
@passerbyyhx on GitHub · 2026-11-27 18:56 UTC · original
Windows synthetic verification at
53596d8e7573a94a4c168fb330b82be415159536.I exercised the production pipeline log through actual compute PSO creation, first use and completion. On each of an RTX 4090 Laptop (621.14) and Microsoft WARP I ran three fresh processes per version, against this head and parent
63bcca43c6a00a758510398fa43096ce7e4f7df0.With a missing parent directory at the first event, the head warned once. After creating that directory and building another key twice in the same process it still had no log. The parent silently created the log after the directory appeared and wrote three rows. A new process opening the now-valid path on both versions produced six rows (two shader keys × three event kinds) despite repeated events. An explicitly empty path yielded no file or warnings. Results agreed on both adapters.
Reproducible fixture. GTA-VI-3/EIGHT-20261127. AI-assisted with Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.