mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1563] wave64_pipeline_audit: validate half-specified subgroup bounds, unknown stages, empty chains, and --report (WAVE64-PIPELINE-AUDIT-VALIDATION) #1587
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1587
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1563
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/wave64-pipeline-audit-validation📝 Commits (1)
7b1ae5bwave64_pipeline_audit: validate half-specified subgroup bounds, unknown stages, empty chains, and --report📊 Changes
2 files changed (+63 additions, -11 deletions)
View changed files
📝
tests/test_wave64_pipeline_audit.py(+43 -2)📝
tools/wave64_pipeline_audit.py(+20 -9)📄 Description
Item ID:
WAVE64-PIPELINE-AUDIT-VALIDATION(new item; coordination issue #14 is at GitHub's 2,500-comment cap with no open successor at PR time — confirmed 0 open PRs touchtools/wave64_pipeline_audit.py)Summary
Device.read()previously acceptedmin_subgroup_size == 0withmax_subgroup_size > 0(also bypassing theminimum <= default <= maximumcheck whenminimum == 0), andassess()evaluated0 <= wanted <= maxas true and falsely reportedexact(required-width). NowDevice.read()rejectsbool(minimum) != bool(maximum)while still allowing(0, 0)for devices withoutVK_EXT_subgroup_size_control, andassess()requirescaps.minimum > 0forrequired-width.assess(): returnAssessment("unknown", "unknown-stage")instead of raising rawKeyErroron missing"stage"or stages outsideSTAGE_BITS(such as"hs"orNone).build_report(): raise a clearValueError("pipeline chain has no shader stages")instead ofmax() iterable argument is empty.--reportbefore auditing and catchRecursionErrorinload_json(): reject empty/whitespace--reportpaths (previously--report " "exited 0 and created a literal" "file in cwd, and--report ""resolved toPath(".")and tried to overwrite cwd after writing a temp file incwd.parent) and reject existing directories before running the audit.Testing
python3 -W error -I tests/test_wave64_pipeline_audit.py -v: 17/17 passedpython3 -W error -I tests/test_text_write_line_endings.py -v: 3/3 passedpython3 -I scripts/check_no_game_data.py tools/wave64_pipeline_audit.py tests/test_wave64_pipeline_audit.py: passedpython3 -m compileall -q make_game.py tools tests: passedmain:tools/wave64_pipeline_audit.py: all 4 new/updated tests fail (FAILED (failures=8, errors=3)).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.