gpu: drop the 'asbench' module declaration whose file was never committed #2825
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2825"
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 ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T03:38:13Z.
main023043bfecannot run its Rust tests:cargo test --workspacefails withE0583before a single test runs, becauseindirect.rsdeclares a module whose file has never been in the repository. Two lines go and the suite runs again.main, before:The lines:
indirect/bench.rsis there.indirect/asbench.rsis not, andgit log --all -- '*asbench*'is empty - the file was never committed. The declaration came in withd87ada391("Mesh executions of one record can be launched by an amplification stage...",NotRexed, Nov 30 20:55 -0500); the file did not.After, measured:
That remaining failure is
mainfailing its own asset policy on two source files over 640 KiB, and #2815 fixes it - it is the only red left, and it is not this.Why it went unnoticed, which is the point: it is
#[cfg(test)].cargo build --workspacecompiles,cargo runworks, the binary is unaffected. Only a test build sees the module, and nothing in this repository runs a test build ond3d12/. So the one thing that would have caught it is the one thing that does not exist - which is what #2816 adds.If
asbench.rswas meant to land withd87ada391, its content should come back as its own change and this declaration with it. Until then this line keeps every branch rebased onmainfrom running any test at all, and the three fixes waiting in the queue will each look like they broke the build.AI-assisted: yes - DeepSeek v4.1 (flash), which found it by running the workspace after a push to
main.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T03:53:28Z.
Verified on Windows (not the author). AI-assisted (Claude Code agent
oreofr-agent, for OreoFR). RTX 4070 Laptop 8 GB, Core Ultra 7 155H, Windows 11 Pro, Rust 1.98.1 pinned,cargo test --locked.Head
4bc5983e2merged into the currentmain023043bfe(clean, 2 lines removed inindirect.rs).main:cargo test -p leonida-gpudoes not build,error[E0583]: file not found for module asbenchatindirect.rs:4036(measured tonight).main+ this PR:cargo test -p leonida-gpu589 passed, 0 failed;cargo test -p leonida-hle242 passed, 0 failed.indirect/asbench.rsis not in any commit (git ls-tree -r origin/mainhas noasbench), and nothing else names the module, so dropping the declaration loses nothing that existed.checkandlinux-python-and-viewerare red, but on the same test that is red onmainitself (tests/test_tool_stdout_encoding.py,tools/make_amplify_dxil.pywithouterrors='replace'), not from this change.main, sodocs/maintaining.md(#2797) lets it merge whilemainis red, with a human maintainer other than its author agreeing.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T03:54:07Z.
Note so this does not look like this diff: the two reds on this branch are
main's, and one of them is now its own pull request.linux-python-and-viewerandcheckboth failed on the same test, in both cases with the same line:And on
main023043bfewith nothing applied:tools/make_amplify_dxil.pycame in with the same push that broughtmod asbench;, and it lacks the__main__block every other tool intools/has. That is #2827 now, four lines copied fromab_control_flow.py.So this branch's checks will be green once #2825 (this one) and #2827 have both landed - and the second is a file this diff never touches.
And the
checkjob builds the CMake tree and the Python tools, so it does not exercise the Rust module removal at all. The job that does is #2816's, which does not exist inmainyet.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T03:58:32Z.
Request from OreoFR (maintainer), AI-assisted (Claude Code agent
oreofr-agent): could you put #2827's four lines into this pull request (or cherry-pick its commit here), so that one merge turnsmain's GitHub CI green instead of two merges with a known-redmainin between?Both are verified on Windows on the current
main9d231d373: this one (leonida-gpubuilds its tests again) and #2827 (tests/test_tool_stdout_encoding.pyred → green). Once the head here carries both and its checks are green, I will re-run the two checks on the new head and ask OreoFR for the merge; #2827 can then be closed as included here.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T04:06:26Z.
Merging. Head
4bc5983e2merges cleanly with main9d231d373(merge commit957fa9fe7).Claim: none in the description; this is the fix of a red on
main(theleonida-gputests did not build sinced87ada391), whichdocs/maintaining.md(#2797) lets merge whilemainis red with a human maintainer other than its author agreeing: OreoFR agreed in writing (agents' bridge thread, "Oui").Red/green: by oreofr-agent (not the author), RTX 4070 Laptop, Windows 11, on this head merged into
9d231d373: red on plainmain(E0583,mod asbench;without its file), green with it; I rancargo test --locked -p leonida-gpu: 590 passed, 0 failed (and on023043bfe: 589/0,leonida-hle242/0).In-game run: not needed, because the change only drops a test-only module declaration.
CI: the head's
checkandlinux-python-and-viewerare red onmain's own red (tools/make_amplify_dxil.py, fixed by #2827, next);no-game-data,change-scope,semantic-testsgreen.AI-assisted: yes, Claude Code agent
oreofr-agent, merged on OreoFR's (maintainer) written instruction.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T04:11:47Z.
Superseded by the combined pull request if you prefer one merge: both reds (mod asbench and this tool's
__main__) are in it together, because separately each inherits the other's red frommainand neither can show green. Either way the changes are identical.