docs/testing: two verdicts that are not about the pull request #3188
Open
github-bot
wants to merge 2 commits from
github-bot/gh-3188 into main
AGit
pull from: github-bot/gh-3188
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3188
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3188"
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?
@fiestorra on GitHub · 2026-12-02 17:37 UTC · original
fiestorra:docs-testing-two-traps→main· +12 −0 · 1 files · 2 commits · opendocs/testing: two verdicts that are not about the pull request
red_green.pyreports a verdict, and two of them read as statements about the change when they arestatements about something else. Both cost me a run today.
green failscan be the machine. A test that fails onmainalone fails with the pull requestmerged too, so every run reads that verdict whatever the change does. Here it is
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in, because the crate's tests maketheir device with
D3D12CreateDevice(None, ..)and that is the integrated Radeon on this machine -cargo test -p leonida-gpu --libonmainis 695 passed, 1 failed, and that is the one. Two pullrequests I checked (#3153, #3150) read
green failsfor it while their own tests passed.red not constructible: the pull request changes no testis also what a merged pull request reads:its merge base is its own head, so nothing is left to compare. #3148 read that after it merged, and the
phrasing sends you looking for a test that is not missing.
The section is otherwise right; these are the two lines a reader needs before the verdict means
anything.
python -m unittest discover -s tests -p "test_docs_*.py": 57 tests, OK.Written with an AI assistant.
@MoonEyes on GitHub · 2026-12-02 18:18 UTC · original
Verification of #3188 (third party, Linux, no GPU, no game files)
ff85245aaf3cd6bbb83e211533ddf48b236bf596(1 file,docs/testing.md, +8).5b1fff821; merged withgit merge --no-ffontomain45dc41f95, no conflict.What was run (Python 3.13,
python -I)python -I scripts/check_no_game_data.py docs/testing.mdgit diff --check origin/main...pr/3188tests/test_docs_*.py+tests/test_design_contract_rows.py, one by onemainDocs-only, so no red/green applies.
Checked against
scripts/red_green.pySecond bullet (
red not constructibleon a merged pull request): holds.check()diffsmerge_base..head(
red_green.py:656,:664). After a merge-commit merge the merge base is the head, the diff is empty andred_commitreturnsNone, so the report reads "not constructible: the pull request changes no test".Nit: this is only true of a merge-commit merge, not of a squash merge.
mainuses merge commits, so it is right here.First bullet (
green failsfrom a test that already fails onmain): overstated.compare()(
red_green.py:501-522) puts a test that fails on both sides infail_on_both.verdict()(:531-533)only says
green failsforregressionsor a failingonly_on_greenrow. Checked by calling the two functionsdirectly:
{pre_broken: failed, new: failed}, green{pre_broken: failed, new: ok}givesred then green, notgreen fails;red_whyset,red=None), the same green givesgreen fails.So a test that fails on
mainmakes every run readgreen failsonly when the red side has no result for it.That happens when the red side is not constructible or does not build, or when the test exists only on green.
When the red side runs the crate, a deterministic failure on
maindoes not change the verdict. The casesquoted in the body (#3153, #3150) may have had no red side, or a flaky test. The bullet as written,
"every run reads that verdict whatever the change does", says more than the code does.
Defects
docs/testing.md:162-166: limit the claim to runs where the red side gives no result for the test (red notconstructible or does not build, or the test only exists on green). In the other runs, point to the
fail on bothrows of the report. The advice to compare with the crate's tests onmainholds in both cases.does not name the models or the reviewer agent (CONTRIBUTING.md, AI-assisted contributions).
docs/testing.md:166: "#2995 and the crate switches it adds are the way out" points to an open, unmerged pullrequest. Say "proposed in #2995" so the line stays right if #2995 changes or is closed.
Verdict: defects. The first bullet needs narrowing to what
verdict()actually does. The rest is correct and the doc tests are green.AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
green failsneeds a red side with no result, not just a failing test 9fa90bab77@fiestorra on GitHub · 2026-12-02 21:45 UTC · original
You are right, and I have corrected the bullet in
9fa90bab7.I called the two functions from the installed script to see it rather than take it on trust:
So a deterministic failure on
maindoes not change the verdict when the red side ran the test — it lands infail_on_bothand the run still readsred then green. What I saw in #3153 and #3150 must have been the other case: the red side had no result for those tests (not constructed, did not build, or the test only existed on green), which is the only path togreen failsfrom a machine-level failure.The bullet now says that, and names the three cases that produce it. I also took the nit: the merged-pull-request
red not constructibleholds for a merge-commit merge (what this repository uses); a squash merge would leave a diff, so the sentence now says so.My thanks — this is the second time tonight that a third-party review found a claim of mine that was stronger than the code. The other was #2995's adapter selector.
Checks on the new head:
python -I scripts/check_no_game_data.py docs/testing.mdexit 0,tests/test_docs_links.pyOK,tests/test_docs_encoding.pyOK,tests/test_docs_list_items.pyOK.Written with an AI assistant.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.