[PR #569] TOOL-BOOT-MATRIX: tools/boot_matrix.py, how far the retail boot gets for each set of pull requests #613

Open
opened 2026-11-26 20:18:28 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 2d08a5c feat: tools/boot_matrix.py, how far the retail boot gets for each named set of pull requests
  • 5598371 feat: boot_matrix says whether a skipped PR conflicts with the base or an earlier PR; an empty set is the base alone
  • 6b44c4a feat: boot_matrix run gives each run a fresh overlay and save folder; --cmake-arg for the build
  • db8fa9f fix: 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 tracebacks
  • e2a3b8d docs: boot_matrix examples name pull requests of this repository
  • 589b52d fix: boot_matrix review: run refuses a tree that is not the set's head; reports carry only shareable fields
  • 011a62a fix: boot_matrix review: a location outside every known module is reported as unmapped
  • 55fbc02 fix: boot_matrix keeps the runtime's whole call label in the shared report
  • 7d87423 fix: 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 CreateCommandListX IID, the window class, the
next 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 per
named set:

  • merge combines each set onto a base with git merge-tree --write-tree and git commit-tree: no checkout, no
    hooks, nothing from a pull request runs. A PR that scripts/merge_check.py finds 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.
  • run builds runtime/ in a set's tree (exported where you build PR code) or takes --gta6rt, runs
    --run --trace --trace-d3d12 with LEONIDA_D3D12=vulkan, stops the process tree at --timeout, and writes
    result.json (the stop, the D3D12 call count and last call, and whether the shader library's
    translation_sources.sha256 matches the tree). Each run gets a fresh overlay and save folder.
  • report prints a Markdown table of the newest run of each set's current head, ready to paste into an issue. Traces
    stay on your machine; failed file paths and debug strings are left out of the report.

docs/boot.md gets a section on it. Standard library only; git 2.38 or newer for merge-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's
    main. They build throwaway repositories with git and fake gta6rt runs; no game files.
  • python -I -m compileall over the tool and the test; python -I tools/boot_matrix.py --help.
  • run against the retail executable was not part of this test.

GPUs tested: n/a (no GPU code; run uses whatever gta6rt the set builds)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/569 **Author:** [@CLHelper](https://github.com/CLHelper) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `tools/boot-matrix` --- ### 📝 Commits (9) - [`2d08a5c`](https://github.com/ubiquitarianism/leonida/commit/2d08a5cc25418c21e2c710c33d08c57c7aeeb16a) feat: tools/boot_matrix.py, how far the retail boot gets for each named set of pull requests - [`5598371`](https://github.com/ubiquitarianism/leonida/commit/5598371312f755cd852850a12491bd3e5f39d61c) feat: boot_matrix says whether a skipped PR conflicts with the base or an earlier PR; an empty set is the base alone - [`6b44c4a`](https://github.com/ubiquitarianism/leonida/commit/6b44c4a2d69dc8d9e16b081bb5a78e440453f4cc) feat: boot_matrix run gives each run a fresh overlay and save folder; --cmake-arg for the build - [`db8fa9f`](https://github.com/ubiquitarianism/leonida/commit/db8fa9f113560fbf97127bebd5af6b6c1b71f5af) fix: 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 tracebacks - [`e2a3b8d`](https://github.com/ubiquitarianism/leonida/commit/e2a3b8da828c6329f741e81f89a66b36fa1091b3) docs: boot_matrix examples name pull requests of this repository - [`589b52d`](https://github.com/ubiquitarianism/leonida/commit/589b52dbb84efdb4abbb55cc17c4de46afd54c0a) fix: boot_matrix review: run refuses a tree that is not the set's head; reports carry only shareable fields - [`011a62a`](https://github.com/ubiquitarianism/leonida/commit/011a62a05e93cfd250b82d23f6e4ef028c1d7b3b) fix: boot_matrix review: a location outside every known module is reported as unmapped - [`55fbc02`](https://github.com/ubiquitarianism/leonida/commit/55fbc02497d8b876557f1ea19a89d092e9a393b8) fix: boot_matrix keeps the runtime's whole call label in the shared report - [`7d87423`](https://github.com/ubiquitarianism/leonida/commit/7d87423982c7cd6ce470f59727e22718796a55b0) fix: boot_matrix review: every shared report field is checked for its form; builds per head ### 📊 Changes **3 files changed** (+1379 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/boot.md` (+48 -1) ➕ `tests/test_boot_matrix.py` (+553 -0) ➕ `tools/boot_matrix.py` (+778 -0) </details> ### 📄 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 `CreateCommandListX` IID, the window class, the next 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 per named set: - `merge` combines each set onto a base with `git merge-tree --write-tree` and `git commit-tree`: no checkout, no hooks, nothing from a pull request runs. A PR that `scripts/merge_check.py` finds 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. - `run` builds `runtime/` in a set's tree (exported where you build PR code) or takes `--gta6rt`, runs `--run --trace --trace-d3d12` with `LEONIDA_D3D12=vulkan`, stops the process tree at `--timeout`, and writes `result.json` (the stop, the D3D12 call count and last call, and whether the shader library's `translation_sources.sha256` matches the tree). Each run gets a fresh overlay and save folder. - `report` prints a Markdown table of the newest run of each set's current head, ready to paste into an issue. Traces stay on your machine; failed file paths and debug strings are left out of the report. `docs/boot.md` gets a section on it. Standard library only; git 2.38 or newer for `merge-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's `main`. They build throwaway repositories with git and fake `gta6rt` runs; no game files. - `python -I -m compileall` over the tool and the test; `python -I tools/boot_matrix.py --help`. - `run` against the retail executable was not part of this test. GPUs tested: n/a (no GPU code; `run` uses whatever `gta6rt` the set builds) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#613
No description provided.