Skip to content

CI: Add GitHub Actions workflow - #481

Closed
LazyHatGuy wants to merge 6 commits into
Marvisak:mainfrom
LazyHatGuy:ci
Closed

LazyHatGuy wants to merge 6 commits into
Marvisak:mainfrom
LazyHatGuy:ci

Conversation

@LazyHatGuy

@LazyHatGuy LazyHatGuy commented Nov 24, 2026 •

Copy link
Copy Markdown

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

@LazyHatGuy
LazyHatGuy marked this pull request as ready for review November 24, 2026 04:07
@NolanCotter

Copy link
Copy Markdown

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 Build: gate Windows-only paths so the workspace builds and tests on Linux #235's gating first.

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

@LazyHatGuy LazyHatGuy mentioned this pull request Nov 24, 2026
@LazyHatGuy

Copy link
Copy Markdown
Author

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

@upipibi upipibi mentioned this pull request Nov 24, 2026

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
Signed-off-by: LazyHatGuy <1010359+LazyHatGuy@users.noreply.github.com>
@Marvisak Marvisak closed this Nov 24, 2026
fornorharry added a commit to NitricAcidDev/VIctory-Omega-Fork that referenced this pull request Nov 25, 2026
…r launch

From open pull requests of fxceless/victory-gta6, each reviewed, applied with
its tests and fitted to this tree:

- Marvisak#756: one sampler written into a program and used with and without a
  comparison is two static samplers; a comparison sampler with a minimum or
  maximum reduction stays a comparison.
- Marvisak#714: a mesh program that allocates in every lane keeps its LDS barriers;
  scalar reads of unordered views; both edges of a branch to one block; the
  first lane of an offset that is held per lane. With the early-start bias
  of this tree's raw views on the unordered ones too.
- Marvisak#576, in part: a loop with two empty latches, and the double flag of a
  program that lost its doubles. Not its block-local handles: 1,507 of 1,516
  compute programs of a local cache make host pipelines here as they are, and
  the nine others ask for waves of 64 lanes (older translations).
- Marvisak#646, in part: `DispatchX` counts threads where its flag says so. They ran
  as groups.
- Marvisak#676, in part: a new view of a texture already on the card needs no room;
  two views of a placed texture that differ in its filler words (the title's
  stack, another in every launch) are of one texture.
- Marvisak#481, in part: no barrier for a window of indirect arguments that this
  draw did not clamp.
- Marvisak#591: the parts of a host copy a submission asks for, not the span between
  them. Marvisak#522: table constants that flights write are filled on the card.
- Marvisak#745: samplers with modes the host does not know.

Added: an ignored test that makes a host pipeline from every compute
translation of a local cache; the staging pool's test waits for other tests'
submissions.

AI-assisted. GPU (170), shader (226) and format unit tests pass. Not run with
the title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants