CI: Add GitHub Actions workflow #481

Closed
LazyHatGuy wants to merge 6 commits from upstream-pr/481 into main
LazyHatGuy commented 2026-11-24 03:55:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LazyHatGuy on 2026-11-24T03:55:49Z.


To help with the influx of PRs I think it would be a good idea to have tests running in GitHub Actions

Ubuntu-Latest tests will fail until #112 or #235 are merged in.
Lint will fail without #502
A successful test run can be found here: https://github.com/LazyHatGuy/VIctory/actions/runs/45323833084

<!-- greyfinch-sync:Marvisak/VIctory:issue:6574253229 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/481). Originally posted by [LazyHatGuy](https://github.com/LazyHatGuy) on 2026-11-24T03:55:49Z. --- To help with the influx of PRs I think it would be a good idea to have tests running in GitHub Actions Ubuntu-Latest tests will fail until #112 or #235 are merged in. Lint will fail without #502 A successful test run can be found here: https://github.com/LazyHatGuy/VIctory/actions/runs/45323833084
NolanCotter commented 2026-11-24 06:55:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by NolanCotter on 2026-11-24T04:11:29Z.


Heads-up from a tooling pass: as written this will be red on main for two independent reasons.

  • cargo fmt --all -- --check fails today: 30 files have drift (victory-formats, victory-gpu, victory-hle, victory-loader — e.g. crates/victory-loader/src/lib.rs use ordering, threads.rs import ordering). A maintainer-level cargo fmt pass is needed before this lands, or every PR goes red behind it.
  • cargo test --workspace on ubuntu-latest fails to build: victory-gpu still has Windows-only paths ungated (view_format calls #[cfg(windows)]-only host_resource, E0425). Needs something in the shape of #235's gating first.

cargo xtask policy in the linux job is fine — the policy path works gitless and on any platform.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7121790719 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/481#issuecomment-7121790719). Originally posted by [NolanCotter](https://github.com/NolanCotter) on 2026-11-24T04:11:29Z. --- Heads-up from a tooling pass: as written this will be red on `main` for two independent reasons. - `cargo fmt --all -- --check` fails today: 30 files have drift (victory-formats, victory-gpu, victory-hle, victory-loader — e.g. `crates/victory-loader/src/lib.rs` use ordering, `threads.rs` import ordering). A maintainer-level `cargo fmt` pass is needed before this lands, or every PR goes red behind it. - `cargo test --workspace` on `ubuntu-latest` fails to build: `victory-gpu` still has Windows-only paths ungated (`view_format` calls `#[cfg(windows)]`-only `host_resource`, E0425). Needs something in the shape of #235's gating first. `cargo xtask policy` in the linux job is fine — the policy path works gitless and on any platform.
LazyHatGuy commented 2026-11-24 06:55:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LazyHatGuy on 2026-11-24T04:18:51Z.


Heads-up from a tooling pass: as written this will be red on main for two independent reasons.

Just opened a PR for the lint issue
If it is needed, ubuntu-latest can be removed from the test matrix until #235 is merged in.

I'll wait for @Marvisak to reply to make a decission

<!-- greyfinch-sync:Marvisak/VIctory:comment:7121903877 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/481#issuecomment-7121903877). Originally posted by [LazyHatGuy](https://github.com/LazyHatGuy) on 2026-11-24T04:18:51Z. --- > Heads-up from a tooling pass: as written this will be red on `main` for two independent reasons. Just opened a PR for the lint issue If it is needed, `ubuntu-latest` can be removed from the `test` matrix until #235 is merged in. I'll wait for @Marvisak to reply to make a decission
mercuryVM commented 2026-11-24 09:05:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T08:55:45Z.

Review: COMMENTED


Read only, not built: a GitHub Actions workflow. It has contents: read, timeouts, and third-party actions pinned to commit SHAs, which is good hygiene. It only runs cargo fmt, cargo xtask policy, cargo clippy and cargo test. Nothing in it is unsafe.

As the description says, it isn't green on main yet, and some of that won't fix itself:

  • cargo fmt --all -- --check fails on main today (168 hunks in untouched files). The lint job would be red on every PR until someone lands a one-time cargo fmt --all, and that commit will conflict with most of the 400+ open PRs. It may be better to fmt-check only changed files at first.
  • clippy -D warnings depends on #502 and on whatever lands in the meantime.
  • The windows-latest test job has no GPU. The GPU tests here skip or fall back to WARP (host() returns None, or VICTORY_D3D12_WARP), which is fine. But the victory-shader VALU GPU tests have hung when run in parallel (#433 serialises some of them), so a 30-minute timeout could trip on that rather than on a real failure.

Worth having once main is formatted. Not merging into our fork, since there it would run Actions on every push.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6036250501 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/481#pullrequestreview-6036250501). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T08:55:45Z. **Review:** COMMENTED --- Read only, not built: a GitHub Actions workflow. It has `contents: read`, timeouts, and third-party actions pinned to commit SHAs, which is good hygiene. It only runs `cargo fmt`, `cargo xtask policy`, `cargo clippy` and `cargo test`. Nothing in it is unsafe. As the description says, it isn't green on `main` yet, and some of that won't fix itself: - **`cargo fmt --all -- --check` fails on `main` today** (168 hunks in untouched files). The lint job would be red on every PR until someone lands a one-time `cargo fmt --all`, and that commit will conflict with most of the 400+ open PRs. It may be better to fmt-check only changed files at first. - **`clippy -D warnings`** depends on #502 and on whatever lands in the meantime. - **The `windows-latest` test job has no GPU.** The GPU tests here skip or fall back to WARP (`host()` returns None, or `VICTORY_D3D12_WARP`), which is fine. But the `victory-shader` VALU GPU tests have hung when run in parallel (#433 serialises some of them), so a 30-minute timeout could trip on that rather than on a real failure. Worth having once main is formatted. Not merging into our fork, since there it would run Actions on every push. AI-assisted (Claude Code).
catminou4 commented 2026-11-24 15:02:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T14:06:12Z.

Review: COMMENTED


Good instinct (fmt + policy + multi-OS), but two of the jobs cannot pass as written — both verified locally against current main (ffe310e):

  1. cargo fmt --all -- --check fails on main today: exit 1 with 182 diffs (e.g. crates/victory-formats/src/texture.rs:330). The fmt job would be red for this PR and every subsequent one until main is reformatted (or the job lands together with a reformat commit).
  2. The ubuntu-latest matrix leg cannot compile the workspace: cargo check -p victory-gpu --locked fails on unix with E0425 (the crate is Windows-only in practice — cfg(windows) deps, and the non-Windows paths don't build; same on macOS). cargo test --workspace on ubuntu-latest hits the same wall. The matrix needs to be Windows-only for the full workspace, or the unix leg scoped to the portable crates (victory-core, victory-pe, victory-loader, victory-formats, victory-shader, victory-pipeline, victory-game, xtask).

Also note: main now has its own .github/workflows/ci.yml (Windows-only, clippy x2 + cargo test --workspace), so this PR overlaps — worth deciding whether to extend that file (add fmt/policy steps, unix leg for portable crates) instead of adding a second workflow.

<!-- greyfinch-sync:Marvisak/VIctory:review:6040661443 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/481#pullrequestreview-6040661443). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T14:06:12Z. **Review:** COMMENTED --- Good instinct (fmt + policy + multi-OS), but two of the jobs cannot pass as written — both verified locally against current main (`ffe310e`): 1. **`cargo fmt --all -- --check` fails on main today**: exit 1 with **182 diffs** (e.g. `crates/victory-formats/src/texture.rs:330`). The fmt job would be red for this PR and every subsequent one until main is reformatted (or the job lands together with a reformat commit). 2. **The `ubuntu-latest` matrix leg cannot compile the workspace**: `cargo check -p victory-gpu --locked` fails on unix with `E0425` (the crate is Windows-only in practice — `cfg(windows)` deps, and the non-Windows paths don't build; same on macOS). `cargo test --workspace` on `ubuntu-latest` hits the same wall. The matrix needs to be Windows-only for the full workspace, or the unix leg scoped to the portable crates (`victory-core`, `victory-pe`, `victory-loader`, `victory-formats`, `victory-shader`, `victory-pipeline`, `victory-game`, `xtask`). Also note: main now has its own `.github/workflows/ci.yml` (Windows-only, clippy x2 + `cargo test --workspace`), so this PR overlaps — worth deciding whether to extend that file (add fmt/policy steps, unix leg for portable crates) instead of adding a second workflow.
upstream-sync closed this pull request 2026-11-24 23:04:11 +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!481
No description provided.