Repository navigation
Conversation
|
A note that strengthens the "why no
So If the maintainers want it, the order is: If they do not, removing AI-assisted: yes - DeepSeek v4.1 (flash). Written with an AI assistant. |
|
finding: the workspace baseline this job will run against is now one failure, and it is the one #2815 fixes.
That is the whole list. Before #2820, the same command also failed So the order to land these is one way, not two: #2815 first (it makes the policy pass), then un-draft this one - its job is And one thing this baseline settles: #2816 does not need AI-assisted: yes - DeepSeek v4.1 (flash), one run of the workspace on the merged Written with an AI assistant. |
|
finding: my own workflow had a real defect and I have fixed it: it installed The file this repository already has: [toolchain]
channel = "1.98.1"
targets = ["x86_64-pc-windows-msvc"]
components = ["rustfmt", "clippy"]
profile = "minimal"And what my job did: - uses: dtolnay/rust-toolchain@stableWhat that means in practice: the action installs the runner's latest stable; then The fix, - name: Install Rust
# The channel `d3d12/rust-toolchain.toml` pins. `@stable` installs whatever the runner calls
# latest, and then `cargo` run from `d3d12/` has rustup fetch the pinned one on the fly: the
# same result with a download nobody asked for. If that file bumps, this line follows it.
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.98.1Validated, not assumed: The cost of the duplicated number is real and I am not hiding it: And how I got here, since it is the same mistake this repository keeps producing: I had been checking this job's green status, not its content. The step said AI-assisted: yes - DeepSeek v4.1 (flash), which broke the YAML once fixing it and says so. Written with an AI assistant. |
|
finding: I had been reading this workflow's checks as "green until #2815 lands" and missed that one of them was red for a reason inside the file. What the repository already does, and what I now copy: So both of those commits were already in the tree and I used tags anyway. The third action, - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
with:
toolchain: 1.98.1
- name: Cache Cargo dependencies and build
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0Result on this head ( And the answer to the question this comment is really about: the repository has a workflow linter that would have told me this in one line, and I did not run it or read its output for hours. The same shape as everything else today: I was reading the colour of the checks, not what each one checks. AI-assisted: yes - DeepSeek v4.1 (flash), which broke the YAML twice before this and pinned the wrong action version once. Written with an AI assistant. |
|
finding: the job ran for the first time and found a red that is not the policy test: The job, 5 minutes, And the same suite on this machine, Why that matters: The test already tries to skip, and the guard is not enough: let Some(host) = host() else { return; };
if !host.depth_bounds() {
eprintln!("no host depth bounds support; skipped");
return;
}
let Some(dxc) = dxc() else { eprintln!("no PC dxc.exe; skipped"); return; };
What I would do about it, and it is the repo's call, not mine: So this pull request needs two things before it can go green, and only one of them is mine: #2815 for the policy test on the rebased branch, and a decision about a GPU test on a runner with no GPU. The job finding this on its first run is the argument for it, and also the reason it cannot be un-drafted today. AI-assisted: yes - DeepSeek v4.1 (flash), which read the failed step's log rather than its colour. Written with an AI assistant. |
KelboLive
left a comment
There was a problem hiding this comment.
The shape is right: working-directory: d3d12 (that is where the workspace lives), 1.98.1 matching d3d12/rust-toolchain.toml, windows-latest (the windows* crates and cfg(windows) tests need it), and genuinely no GPU or game files — replay.rs / replay_big.rs are #![cfg(all(windows, feature = "diagnostics"))] and diagnostics is off by default, and the loader tests print SKIP without LEONIDA_GAME_DIR. Nothing silently passes either: no continue-on-error, the path filter matches the workspace, and every action is pinned.
It is still red on today's main, and for one reason only: cargo test --workspace includes xtask, whose policy::tests::repository_passes_policy rejects crates/leonida-shader/src/emit/lower.rs (753,642 B) and crates/leonida-gpu/src/host.rs (693,006 B) against the 640 KiB limit (d3d12/xtask/src/policy.rs:14). #2815 is unmerged, so this check must land after it. (The only_what_differs_goes_up failure that may have motivated the draft is not a reason any more: it was red at d920d850d and fixed on main by aee2d526b.)
Two consistency fixes with the repo's other Rust workflows:
- Key the cache on the toolchain the way
launcher.yml/xma2-decoder.ymldo:id: rust-toolchainon the action and${{ steps.rust-toolchain.outputs.cachekey }}in the key.d3d12/targeton Windows is multi-GB, so also considerCARGO_INCREMENTAL: 0and a tighter cache policy for the 10 GB budget. cancel-in-progress: truewithgroup: ...-${{ github.ref }}also lets a manual dispatch cancel an activemainpush run;ci.yml/jactionlint.yml/launcher.ymldeliberately avoid that with a per-event group andcancel-in-progress: ${{ github.event_name == 'pull_request' }}. Align with them or say why not.
Two documentation points: say in the header that the replay/GPU integration tests do not run without --features diagnostics, so "the workspace's tests" is not read as including them; and add the Depends on: #2815 line AGENTS.md asks for (the body says it in prose only).
No workflow runs cargo test on d3d12/. ci.yml builds tools/bcpack_calibration, launcher.yml tests the launcher crate, xma2-decoder.yml tests runtime/xma_decoder, and the workspace that holds thirteen crates and the asset-policy test is not wired to anything. This adds the job: windows-latest, cached cargo and target, cargo test --workspace --locked. Deliberately absent: cargo fmt --all -- --check, because d3d12/ has a rustfmt.toml and does not follow it (cargo fmt --all rewrites 190 files), and clippy -D warnings, because the workspace has 115 warnings and no errors. Each is its own change and neither belongs in a CI pull request.
…r stable is The action installed stable and cargo, run from d3d12/, then had rustup fetch the pinned 1.98.1 on the fly: the same result with a download nobody asked for.
jactionlint requires it: a tag can be moved, and every other workflow here uses a sha with the version in a comment. checkout v7.0.1 and cache v6.1.0 are the shas already in use; rust-toolchain is pinned at v1 and the version comes from the 'with: toolchain' input instead of the ref.
5a380ba to
3e03ab5
Compare
|
Rebased onto What changed under it:
What its first real run should say, measured on That is #2815, which is green and waiting. So this job's first run will be red on one test that its own pull request does not touch - and green as soon as #2815 lands. I would rather say that here than let a reviewer discover it. And the honest accounting of what this job has already been worth without being merged: it was the reason AI-assisted: yes - DeepSeek v4.1 (flash). Written with an AI assistant. |
|
finding: the job ran, and its first red is not the one I predicted: it is The run, What that tells us, and it changes what I wrote two hours ago:
Why that is good news, not a problem: the job is doing exactly what it was written for - it found a red on a machine where a developer sees green, and it found the one that only a card-less runner exposes. That red is The remaining order, for whoever merges: AI-assisted: yes - DeepSeek v4.1 (flash), which predicted "policy" and is correcting itself. Written with an AI assistant. |
|
finding: both of this job's blockers are now measured on the merged trees, so what is left is two merges and no unknowns. When it ran for the first time it failed on So the order is #2815, then #2823, then this one - and this job's next run should be the first one that is green, which would be the first time it has ever been. What that is worth, and it is the reason to spend the merge: the first run found the WARP red that no developer machine can see. The two reds that AI-assisted: yes - DeepSeek v4.1 (flash). Written with an AI assistant. |
|
finding: the flake is concurrency-dependent, and running the suite with
What that pins down, after a day of not pinning anything down:
What I would do with that, and it is a proposal for #2816 rather than a claim: run the job's suite with What it does not do: fix the interference. A serial run hides it rather than repairing it, and the proper fix is for those tests to not share device state - which needs somebody who knows what AI-assisted: yes - DeepSeek v4.1 (flash), 24 runs to separate the thread count from everything else. Written with an AI assistant. |
Sixteen runs of \cargo test -p leonida-gpu --lib\ with the default threads failed\ntwice (descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync and\ntexture::alias_cast_tests::..._cast_to_r9g9b9e5_under_legacy_barriers), and eight\nwith --test-threads=1 failed none. Both tests pass fifteen times in isolation, so\nthe interference is between tests inside one process, not between runs.\n\nSerial for the whole workspace would put leonida-shader's six-minute suite well\npast the timeout, so only this crate runs that way: 37 s against 13, and the rest\nof the workspace is unchanged.
|
done: the job now runs Pushed - name: Tests
working-directory: d3d12
run: cargo test --workspace --locked --exclude leonida-gpu
- name: Tests (leonida-gpu, one thread)
working-directory: d3d12
run: cargo test -p leonida-gpu --lib --locked -- --test-threads=1Why only that crate and not the whole workspace: The numbers behind it, on So the interference is between tests inside one process: neither test fails on its own, and neither is slow, and four copies of the binary at once this morning produced nothing. Only the thread count moves the failure rate. What this does not do: fix the interference. It hides it behind a flag that is written down, and the cause is still there - somebody who knows what those two tests leave behind on a shared device can remove the flag when they find it. That is the difference I would rather have than a retry: a flag can be deleted, a retry teaches nobody anything. And it makes this job's red mean something, which is the whole point of it: a job that is red one run in eight for a reason nobody can attribute is a job that gets ignored, and the runs after it never happen. AI-assisted: yes - DeepSeek v4.1 (flash), 24 runs to separate the thread count from everything else. Written with an AI assistant. |
The first run after the split failed in the first step (the policy test, until ProjectLeonida#2815\nmerges) and skipped the second, so the one result I wanted to see never ran.\n\if: always()\ means both reports land in every run: a red in one hides nothing\nabout the other.
|
finding: the job now reports both of its reds in one run, and they are deterministic - no flake in either step. Run Three things this proves that the previous run could not:
What is left is exactly two merges, in the order #2815 then #2823 then this one. After them, this job's first green run should be its first ever - and if it is red again, it will be for a reason worth reading. AI-assisted: yes - DeepSeek v4.1 (flash), reading the run's per-step conclusions and the two failed logs. Written with an AI assistant. |
|
This job's first step is red on All four are the tests that run the DXIL validator (
The validator block is The cause is in the container the translator writes, not in the tests: Writing one copy per element, as DXC writes it, fixes it: with the change the crate is 405 tests OK, 0 failed (404 + one new test), and the The branch is One more thing for the job: Correction (posted later the same day). The first line of this comment is wrong: the job A machine with the Windows SDK's So the job is not red for that reason; the job is green and the defect is invisible to it. The |
|
Neutron-0 is right about the shape of it, and I can add the half that this machine can measure - plus the reason it cannot measure the other half. What their finding gets exactly right: the four failing tests are the ones that need So this job's red is now three things, not two: And I verified what I can of their fix: What that does not verify: that the four tests now pass. They skip here for the same reason they fail on the runner, and the difference is which side of the Which changes the order I have been suggesting: #2815, #2823, then this job - and the job will still be red on the PSV0 container until AI-assisted: yes - DeepSeek v4.1 (flash), which could confirm the fix compiles and not that it works, and said which. Written with an AI assistant. |
|
finding: the clippy cleanup that landed tonight is already four warnings stale, and all four came from merges made after it.
And with Why this matters more than four warnings: it is the same shape as everything else this repository does by hand and then loses. A cleanup on a Monday is 83; on Tuesday the merges bring back four, because nothing runs - name: Clippy
working-directory: d3d12
run: cargo clippy --workspace --locked -- -D warningsWhat I would not do: add it before the four are gone, because then the job's first run is red for a reason unrelated to the job - which is exactly the trap this job already fell into twice today (the policy, then AI-assisted: yes - DeepSeek v4.1 (flash), which measured the cleanup instead of trusting its title. Written with an AI assistant. |
|
closed: superseded by #2648, which merged tonight and does everything this one does and more. What #2648 has that this did not: a build ( What this has that #2648 does not, and it is the one thing worth lifting: That crate's tests interfere with each other inside one process, so a job that runs it once is red about one run in eight for a reason nobody can attribute. #2648 skips I have put the two-step shape in #2648's thread ( The rest of this branch is history and not worth preserving: the job it added found AI-assisted: yes - DeepSeek v4.1 (flash), which would rather close its own pull request than leave two workflows racing. Written with an AI assistant. |
No workflow runs
cargo testond3d12/. This adds the job. It is a draft because it depends on #2815 and will be red on its own until that merges.What runs what today:
d3d12/is thirteen crates and 1,000+ tests, and its asset-policy test fails onmainb7a1be296without anyone seeing it. That is the failure #2815 fixes: two Rust source files are measured as data and exceed a 640 KiB limit.The job:
windows-latest, cached~/.cargoandd3d12/target,cargo test --workspace --locked, paths ond3d12/**and the workflow itself.Two checks that are deliberately not in it, measured tonight:
d3d12/cargo fmt --all -- --checkd3d12/rustfmt.tomlexists and the code does not follow it.cargo fmt --allrewrites 190 filescargo clippy --workspace --all-targets -- -D warningsNeither belongs here. A 190-file formatting diff would conflict with every open branch and could not be reviewed, and holding 115 warnings is its own pass. Both are named in the workflow's header so the next person knows they are missing on purpose, not by oversight.
Measured on this machine, warm, after #2815's change:
cargo test --workspace --lockedis 7 minutes from cold and exit 0.AI-assisted: yes - DeepSeek v4.1 (flash), which installed Rust here tonight and ran the workspace both ways.
Written with an AI assistant.