Commit Graph

30 Commits

Author SHA1 Message Date
be4e237e00 tests: the CI registration test reads the standard-library step at -j 8 (CI-STANDALONE-J8)
`test_step_script_reads_the_check_loop` pins the runner line of the step; it
follows the workflow's new value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:58:04 +01:00
129c840089 ci: fix runtime/windows timeout, remove redundant CI legs, and harden caches 2026-11-29 19:17:38 -05:00
45d43bb5a8 Merge pull request #1385 from xel1uz/review/1365-property-test-discovery
Review/1365 property test discovery
2026-11-28 15:52:23 +01:00
43a9d562d3 Merge pull request #2193 from EdenBendheim/ubiq/ci-check-parallel-stdlib
Verified the Windows check with Python 3.12: 509 standalone files passed with two workers. The seven changed or runner-related files passed on updated main. The .NET 8 build and diagnostics and the native BCPack checks passed with the prerequisite fixes, including #1771. CPU-only, AI-assisted testing.
2026-11-27 14:56:46 -03:00
d35001eef3 Merge pull request #374 from ItsMrDubey/ci-path-filter-gaps
Verified the docs-only step on Windows with Git Bash. All 69 tests passed, and the added check caught the synthetic README URL regression. CPU-only, AI-assisted testing.
2026-11-27 06:02:31 -03:00
5943a7c6af ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB) 2026-11-25 23:46:12 -05:00
a1274181a8 Exclude property-only mixins from unittest registration counts
AI-assisted: OpenAI Codex.
2026-11-24 23:43:54 +01:00
fd0a539075 tests: the CI registration scan counts the tests a TestCase inherits from a class of its module (TEST-CI-REG-LOCAL-MIXIN)
tests/test_ci_registration.py fails on main since 540d5111f (the merge of #930) and passes on its parent:
test_every_selected_file_exposes_a_test_to_its_runner reports tests/semantic/test_sub_co_same_operand.py as a file
the semantic job collects nothing from. `python -m unittest discover -s tests/semantic -p
test_sub_co_same_operand.py` runs 6 tests there. Its three TestCase classes have no test method of their own: they
take them from a mixin class defined in the same file, one TestCase per wave size. defines_a_test looked at a
TestCase's own body and at a base imported from another module, not at a base defined in the module.

It now also counts the test* methods of the classes of the module a TestCase derives from, directly or through
other classes of the module, and an imported base reached that way. unittest's loader lists a class's tests with
dir(), so these are the tests it runs.

The new test writes eight small modules, runs unittest discover on them once and holds the scan to what the runner
collected: a mixin above the TestCase, two classes up, beside a TestCase base without tests, an imported mixin
named directly and through a local class (a test each), and a base without tests, a mixin no TestCase derives
from and a mixin without a TestCase (none). With main's defines_a_test put back, four of the five cases with a
test fail, and so does the repository check.

Over the repository at 51a6074d2: the scan lists the same 997 test files; of the 473 the semantic job selects,
main's scan found a test in 472 and this one in 473, and test_sub_co_same_operand.py is the only file the two
disagree on (none of the pytest job's 36). unittest's loader collects tests from all 473 (6191 tests, no import
failure), so main's scan disagreed with the runner on that one file and this one on none.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 16:36:19 -06:00
13d0c9d10b ci: a docs-only pull request runs every test that reads the document it changes 2026-11-24 09:24:44 +05:30
2f5b3d333f tests: handle annotated rebindings of TestCase aliases
Ignore bare annotations; invalidate the alias only when an annotated name has a value. Cover source order with three subcases.
2026-11-23 13:31:12 -08:00
819f7c5a39 tests: recognize direct unittest TestCase aliases
Resolve bare TestCase import aliases in the CI registration check and cover local inheritance and simple rebinding.
2026-11-23 13:17:16 -08:00
c2cc4bfe7f scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s) (#4961)
Squash-merged after review of PR #4961 - scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s)
2026-11-23 08:10:57 -06:00
166fd116a8 Round 44 test clashes: CI registration sees inherited tests, runner skips, v_cmpx's EXEC def, wave32-half shuffles, OpFOrdLessThanEqual in spirv_interp, fixed f64 div_fixup divergence, 10_11_11 stores; the macOS runtime configure requires Vulkan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:23:34 -05:00
7da128aca3 Merge pull request #4085 from AAyberkU
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:07 -05:00
133812796e Merge pull request #3599 from kotorvr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:59 -05:00
68c2466fdc CI: run the standard-library tests on Linux with SPIRV-Tools and numpy
The check job runs the standard-library loop only on windows-latest, which has neither
SPIRV-Tools nor numpy, and translator-tests (the one job that installs them) picks only the
pytest files. So the spirv-val checks of test_split_big_switch (the 37 220-case switch),
test_image_load_typed, test_mesh_compute_vs and test_bary_fallback_gs, the numpy path of
test_skinned_glb and the POSIX-only tests skipped in CI and ran nowhere; desc_cache,
f64_transcendentals, spirv_asm and spirv_stubs validate only when spirv-val is present.

Add stdlib-tests-linux at the end of ci.yml: ubuntu-24.04, spirv-tools from apt as the
semantic-tests job installs it, tests/requirements.txt for numpy and Pillow, then the same
loop as check. test_ci_registration.py now fails when a stdlib file that calls spirv-as or
spirv-val has no job that installs spirv-tools and runs that loop; it fails with the job removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:21:28 +03:00
1e5622b03d Merge pull request #3497 from ezbyDev 2026-11-22 17:02:21 -05:00
063cfb3819 Merge pull request #3479 from Vonsek 2026-11-22 17:02:12 -05:00
04e1be69f7 test_ci_registration: a commented-out command in the docs-only step does not count as run
Review (@shdann): the guard took test paths from shell comments too, so a
commented-out line, the usual way a test stops running, still passed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:01:10 +00:00
39b75b3102 ci: a docs-only pull request runs every documentation test, not two of five
The docs-only step of change-scope ran tests/test_docs_links.py and
tests/test_i18n_index.py by name. tests/test_docs_design_rows.py,
test_docs_list_items.py and test_docs_repo_paths.py read only Markdown and
the tracked file list as well, but ran only in `check`, which is skipped when
only documents changed: a docs-only pull request that duplicates a design.md
contract row or names a path that does not exist was green and failed on
main after the merge.

The step now runs tests/test_docs_*.py and the i18n test in a loop, and
tests/test_ci_registration.py fails when a document test is not run there
or the step names a file that does not exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:01:10 +00:00
d76d57a440 fix(tests): mirror semantic discovery package boundaries
The CI registration guard marked nested test modules under non-packages as runnable even though the workflow unittest invocation did not collect them.
2026-11-22 21:37:40 +01:00
db79536325 ci: the standard-library test loop runs every file, then fails
The check job ran each tests/test_*.py with `python -I "$t" || exit 1`, so
the first failing file stopped the loop and every file sorted after it went
unrun. While main was red on test_cf_ref.py, nothing after test_cf* ran on
Windows. The loop now collects the failures, prints one ::error annotation
per failed file and exits 1 at the end.

tests/test_ci_registration.py takes that step's script out of ci.yml and
runs it under bash (Git for Windows' on Windows) on a synthetic tree with two
failing files, a passing one, a pytest file and a semantic file: all three
loop files must run and both failures must be named. It skips without bash,
except on a GitHub runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:31:42 +01:00
fba602259c Merge pull request #3169 from Kam471 2026-11-22 15:15:24 -05:00
a1c4e479e7 Merge pull request #3091 from Etoile-Bleu 2026-11-22 15:14:45 -05:00
93efaa49bc tests: fall back to directory walk when Git is missing in test_ci_registration 2026-11-22 19:35:19 +00:00
8d56b13aa9 CI: install SPIRV-Tools in the semantic-tests job and fail, not skip, when it is missing (TEST-604) 2026-11-22 20:13:40 +01:00
a4dff1b616 Merge pull request #2188 from Kam471 2026-11-22 13:13:13 -05:00
ec8ec4c9a4 Fix what the round-40 merges broke
- docs: one row per topic again in design.md (59 topics merged sentence by sentence, keeping every
  number) and README.md (the current models/character rows); one Other languages line.
- docs/i18n: the two Spanish quickstarts had been concatenated; keep #1912's, drop #2277's row.
- make_game: the shader fingerprint covers spirv_asm.py and its tables; LF settings write.
- tools: pe_shader_containers, gamedata_maps and anim_rigs use report_paths.same_report_path (BUILD-589);
  stdout guard on five tools; LF text writes in three; user_sgpr_census tolerates an unreachable --json.
- tests: fspx stage fakes write real carve/unpack indexes (c7408a1f); typed f16 stores round toward zero
  (SHADER-358); test_ci_registration's helper is no longer collected as a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:55:07 -05:00
867c45af23 tests: close the three collection holes in the CI registration guard 2026-11-22 17:10:16 +00:00
4dbd7c7d6e tests: guard CI test registration across both jobs 2026-11-22 16:13:16 +00:00