Repository navigation
CI: Add GitHub Actions workflow - #481
LazyHatGuy wants to merge 6 commits into
Conversation
|
Heads-up from a tooling pass: as written this will be red on
|
mercuryVM
left a comment
There was a problem hiding this comment.
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 -- --checkfails onmaintoday (168 hunks in untouched files). The lint job would be red on every PR until someone lands a one-timecargo 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 warningsdepends on #502 and on whatever lands in the meantime.- The
windows-latesttest job has no GPU. The GPU tests here skip or fall back to WARP (host()returns None, orVICTORY_D3D12_WARP), which is fine. But thevictory-shaderVALU 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
left a comment
There was a problem hiding this comment.
Good instinct (fmt + policy + multi-OS), but two of the jobs cannot pass as written — both verified locally against current main (ffe310e):
cargo fmt --all -- --checkfails 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).- The
ubuntu-latestmatrix leg cannot compile the workspace:cargo check -p victory-gpu --lockedfails on unix withE0425(the crate is Windows-only in practice —cfg(windows)deps, and the non-Windows paths don't build; same on macOS).cargo test --workspaceonubuntu-latesthits 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>
…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>
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