Build and test on Linux; a CI job keeps it so; VICTORY_LOG_FILE #2668
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2670"
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?
Imported from Marvisak/VIctory. Originally posted by nullexxx on 2026-11-25T17:48:40Z.
Summary
Testing
Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T17:55:23Z.
The Linux guard rejects every
translateinvocation, includingvictory translate <path> --list. The offline census can walk the inputs and emit DXIL without creating a D3D12 device. In that path, the Windows dependencies are the optional validator, pipeline checks, andVICTORY_PAIRS.Could the Linux build keep the offline census available and reject only the options that need Windows? A Linux CLI test with a synthetic input would cover that path alongside the library tests.
Static review only.
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T17:56:00Z.
Reviewed: honest Linux coverage — workspace crates build/test, Windows-only commands cfg-gated with a clear
bail!for translate. The CI job (ubuntu + rust-cache) is minimal and correct. CI green.Imported from Marvisak/VIctory. Originally posted by XeNS1 on 2026-11-25T18:18:13Z.
Independent native Linux verification of head
09d847e66909ca28903f810d5e513df5115a94a2(Rust 1.100.0, x86-64, two build jobs):cargo test --workspace --locked --offline: 425 passed, 0 failed, 8 ignored. Cleared all VICTORY_* environment variables; no game files, external fixtures or GPU used.victory-corepreserves a pre-existing log prefix and appends two synthetic messages exactly once, without ANSI escapes.One reproducible asset-policy gap remains in the file-output part:
logging::initopens VICTORY_LOG_FILE withoutensure_outside_repo. In a disposable directory containing.victory-root, the normal guard rejectsevents.log, but the same path passed through VICTORY_LOG_FILE is created and receives the synthetic event.The probe is only:
Run it with VICTORY_LOG_FILE pointing below that marker root; compare with
victory_core::ensure_outside_repoon the same path. This matters because diagnostic events can include title-derived words (for example capture.rs's peek/tiny-target log output), and the asset policy requires runtime output to stay outside source trees. Please check the guard before OpenOptions and retain stderr fallback on refusal, with a marker-root regression.Verification only; no competing implementation. AI-assisted: OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T19:09:37Z.
Independent Windows 11 verification and code review of
09d847e6(on13f91ca):Verification (
rustc 1.98.1MSVC)cargo clippy --workspace --all-targets --locked -- -D warningsand--all-features: 0 warnings.cargo test --locked -p victory-core -p victory-pe -p victory-loader -p victory-hle -p victory: all passed (victory-core13,victory-pe36,victory-loader34+4,victory-hle146+2,victory10+2).cargo xtask policy: 184 files ok.Review Notes
#[cfg(windows)]gates leave Windows production and test paths unchanged, and thelinuxCI job runs independently in parallel without slowing down the Windowscheckjob.VICTORY_LOG_FILE(crates/victory-core/src/logging.rs:28-56):VICTORY_LOG_FILEcurrently opens the path directly without callingvictory_core::ensure_outside_repo, so a relative path likeVICTORY_LOG_FILE=events.logcan write runtime/title-derived diagnostics inside the repository tree. Adding theensure_outside_repocheck (and ignoring an emptyVICTORY_LOG_FILE=""instead of printing an open error before falling back tostderr) would close that cleanly.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:16:24Z.
Automated triage for the maintainers.
This PR no longer merges cleanly into
main(f3578e3):apps/victory/src/main.rsandcrates/victory-hle/src/modules/xgameui.rsconflict with changes that landed onmain. It will be reviewed once it is rebased.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.