Commit Graph

2 Commits

Author SHA1 Message Date
eb2d564bf4 test_runtime_paths: count what the jobs run, not every tools/ mention under runtime/
Merged with current main, the test failed on nine entries: main has gained two comments that name a tool
(runtime/src/gfx10_tiling.h and runtime/test/shaders/cs_resinfo.asm), and the scan took every
"tools/<name>" in any file under runtime/ as read by the build, then followed that tool's imports.
Reported by kotorvr on #2972.

The seeds are now the code that runs during the jobs: the CMake files and the workflow's steps without
their # comments, and the Python under runtime/ and the scripts the workflow runs, read through the AST
(imports, importlib, string constants other than docstrings). C++, shader and header sources are not
read as dependencies. Four synthetic notes (a C header, an .asm comment, a docstring and a CMake
comment) check that a mention alone no longer makes an entry required.

The computed set is now 17 files; the workflow keeps its 27 plus hw_oracle, a superset. Dropping
lane_masks.py and gfx10_formats.json from the list still fails the test, on main merged in too.
2026-11-22 21:40:07 +01:00
811a7831ad runtime.yml: a test keeps the path list in step with what the jobs read
tests/test_runtime_paths.py recomputes the tools/ files the Runtime jobs read (named by runtime/, the
workflow's steps and the scripts it runs, then sibling imports, modules and files named in strings, and
tools/ subdirectories, to a fixed point) and fails when one is not listed, when the push and pull_request
lists differ, or when a listed tool no longer exists. Without it, a new import in the translator would
leave the new module outside the list, and a later change to that module alone would skip the GPU tests.

.gitattributes joins the list: it decides the line endings of every file the build checks out.

docs/testing.md no longer says the llvmpipe suite runs on every pull request, and says that a commit on
main has a runtime-windows artifact only if it touched what the workflow builds or reads.
2026-11-22 20:23:43 +01:00