mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:15:52 +01:00
[PR #569] TOOL-BOOT-MATRIX: tools/boot_matrix.py, how far the retail boot gets for each set of pull requests #613
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#613
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/569
Author: @CLHelper
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:tools/boot-matrix📝 Commits (9)
2d08a5cfeat: tools/boot_matrix.py, how far the retail boot gets for each named set of pull requests5598371feat: boot_matrix says whether a skipped PR conflicts with the base or an earlier PR; an empty set is the base alone6b44c4afeat: boot_matrix run gives each run a fresh overlay and save folder; --cmake-arg for the builddb8fa9ffix: boot_matrix review: absolute run paths, report only the set's current head, loader error before a handled exception, one ref per PR, safe set names, escaped table cells, exit 2 instead of tracebackse2a3b8ddocs: boot_matrix examples name pull requests of this repository589b52dfix: boot_matrix review: run refuses a tree that is not the set's head; reports carry only shareable fields011a62afix: boot_matrix review: a location outside every known module is reported as unmapped55fbc02fix: boot_matrix keeps the runtime's whole call label in the shared report7d87423fix: boot_matrix review: every shared report field is checked for its form; builds per head📊 Changes
3 files changed (+1379 additions, -1 deletions)
View changed files
📝
docs/boot.md(+48 -1)➕
tests/test_boot_matrix.py(+553 -0)➕
tools/boot_matrix.py(+778 -0)📄 Description
Claimed in the coordination issue as: TOOL-BOOT-MATRIX (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7126297344)
What and why
Boot work is spread over many open pull requests at once (the slot 73
CreateCommandListXIID, the window class, thenext device slots), and the stop someone reports depends on which of them were merged, in which order, onto which
main, and whether their shader library came from the same translator. This tool makes that explicit, one row pernamed set:
mergecombines each set onto a base withgit merge-tree --write-treeandgit commit-tree: no checkout, nohooks, nothing from a pull request runs. A PR that
scripts/merge_check.pyfinds already on the base is skipped;one that conflicts is skipped with its files listed, saying whether it conflicts with the base or with an earlier PR
in the set. Each set becomes the branch
boot-matrix/<set>; an empty set (main=) is the base alone.runbuildsruntime/in a set's tree (exported where you build PR code) or takes--gta6rt, runs--run --trace --trace-d3d12withLEONIDA_D3D12=vulkan, stops the process tree at--timeout, and writesresult.json(the stop, the D3D12 call count and last call, and whether the shader library'stranslation_sources.sha256matches the tree). Each run gets a fresh overlay and save folder.reportprints a Markdown table of the newest run of each set's current head, ready to paste into an issue. Tracesstay on your machine; failed file paths and debug strings are left out of the report.
docs/boot.mdgets a section on it. Standard library only; git 2.38 or newer formerge-tree --write-tree.It was written and reviewed in the original repository before that went private; this is the same code on current
main, with the examples naming pull requests of this repository.Tested
python -I tests/test_boot_matrix.py: 21 tests pass on Windows 11 (Python 3.13, git 2.53), on this branch'smain. They build throwaway repositories with git and fakegta6rtruns; no game files.python -I -m compileallover the tool and the test;python -I tools/boot_matrix.py --help.runagainst the retail executable was not part of this test.GPUs tested: n/a (no GPU code;
runuses whatevergta6rtthe set builds)AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.