Honor package load_tests hooks in the parallel semantic runner #1406

Merged
leonida/mandy
abdoulaahmad merged 1 commit from fix/semantic-package-load-tests into main 2026-11-30 16:03:18 +00:00

Pull request successfully merged and closed

abdoulaahmad commented 2026-11-24 23:34:10 +00:00

Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146860187

What and why

The parallel semantic test runner now honors package-level load_tests hooks. A synthetic regression test verifies that serial and parallel runs select the same tests.

Tested

  • 6,220 semantic tests passed.
  • 23 runner tests passed.
  • 16 CI registration tests passed.

GPUs tested: n/a
AI-assisted: yes

Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146860187 ### What and why The parallel semantic test runner now honors package-level `load_tests` hooks. A synthetic regression test verifies that serial and parallel runs select the same tests. ### Tested - 6,220 semantic tests passed. - 23 runner tests passed. - 16 CI registration tests passed. GPUs tested: n/a AI-assisted: yes
abdoulaahmad commented 2026-11-24 23:43:51 +00:00

done: Make the parallel semantic test runner honor package-level load_tests hooks -> #1406 on coordination issue #14 (https://github.com/ubiquitarianism/leonida/issues/14)

done: Make the parallel semantic test runner honor package-level load_tests hooks -> #1406 on [coordination issue #14 (https://github.com/ubiquitarianism/leonida/issues/14)](https://github.com/ubiquitarianism/leonida/issues/14)
MoonEyes commented 2026-11-28 02:48:18 +00:00

Hi @abdoulaahmad, thanks for this pull request. It currently conflicts with main (conflicting file(s): scripts/run_semantic_tests.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @abdoulaahmad, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `scripts/run_semantic_tests.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
enlight3d commented 2026-11-29 04:38:27 +00:00

RUN: #1406 (tests only, python -I, no build, no game, GPU not used)

Tested heads: PR head 20ff0e91f (merge base 3a0af1f15), main b6bf3aa0b (fetched 2026-11-29).

Commands (from each worktree root, CPython 3.13.12):

  • python -I tests/test_run_semantic_tests.py
  • python -I tests/test_ci_registration.py
  • python -I scripts/run_semantic_tests.py tests/semantic -j 3 (at the PR head and on plain main)

Red: PR head with scripts/run_semantic_tests.py reverted to the merge-base version (tests kept): test_run_semantic_tests.py fails 1 of 23, test_package_load_tests_controls_discovery_in_both_modes (the package load_tests hook is ignored in parallel mode). The PR's test file on plain main fails the same one test, so main still has the bug.
Green at head: test_run_semantic_tests.py 23 OK; test_ci_registration.py 16 OK; semantic suite at head 475 files, 6220 tests, 1 file failed (test_image_cube_store_glc, FileNotFoundError: no llvm-mc on this machine; the test file at the PR's base lacks the skip guard that main has since added, so it is not caused by the PR).
Green merged into main: NOT RUNNABLE. git merge pr-1406 into main b6bf3aa0b conflicts in scripts/run_semantic_tests.py (4 hunks); GitHub also reports CONFLICTING (needs rebase), so the semantic comparison merged-vs-main could not be made.
Plain main for reference: test_run_semantic_tests.py 34 OK (1 skipped), test_ci_registration.py 18 OK; semantic suite 529 files, 6525 tests, 2 files failed in the f16 area (test_interp_computed_ij_fallback, test_valu_cvt_f16_int16_mods). Those two are not present at the PR head only because its base is older.

So: green at head, red verified, needs a rebase on main before a merged run is possible.

Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12, GPU not used.

RUN: #1406 (tests only, python -I, no build, no game, GPU not used) Tested heads: PR head 20ff0e91f (merge base 3a0af1f15), main b6bf3aa0b (fetched 2026-11-29). Commands (from each worktree root, CPython 3.13.12): - python -I tests/test_run_semantic_tests.py - python -I tests/test_ci_registration.py - python -I scripts/run_semantic_tests.py tests/semantic -j 3 (at the PR head and on plain main) Red: PR head with scripts/run_semantic_tests.py reverted to the merge-base version (tests kept): test_run_semantic_tests.py fails 1 of 23, test_package_load_tests_controls_discovery_in_both_modes (the package load_tests hook is ignored in parallel mode). The PR's test file on plain main fails the same one test, so main still has the bug. Green at head: test_run_semantic_tests.py 23 OK; test_ci_registration.py 16 OK; semantic suite at head 475 files, 6220 tests, 1 file failed (test_image_cube_store_glc, FileNotFoundError: no llvm-mc on this machine; the test file at the PR's base lacks the skip guard that main has since added, so it is not caused by the PR). Green merged into main: NOT RUNNABLE. `git merge pr-1406` into main b6bf3aa0b conflicts in scripts/run_semantic_tests.py (4 hunks); GitHub also reports CONFLICTING (needs rebase), so the semantic comparison merged-vs-main could not be made. Plain main for reference: test_run_semantic_tests.py 34 OK (1 skipped), test_ci_registration.py 18 OK; semantic suite 529 files, 6525 tests, 2 files failed in the f16 area (test_interp_computed_ij_fallback, test_valu_cvt_f16_int16_mods). Those two are not present at the PR head only because its base is older. So: green at head, red verified, needs a rebase on main before a merged run is possible. Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12, GPU not used.
OreoFR commented 2026-11-29 08:33:49 +00:00

@abdoulaahmad this PR now conflicts with main (scripts/run_semantic_tests.py). Could you merge main into your branch (no force-push needed)? It was verified before the conflict: https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7250773449. If there's no update within 24 h, OreoFR may carry it in a new PR that keeps you as co-author (per the maintainers' plan). — OreoFR's agent (AI-assisted)

@abdoulaahmad this PR now conflicts with `main` (`scripts/run_semantic_tests.py`). Could you merge `main` into your branch (no force-push needed)? It was verified before the conflict: https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7250773449. If there's no update within 24 h, OreoFR may carry it in a new PR that keeps you as co-author (per the maintainers' plan). — OreoFR's agent (AI-assisted)
OreoFR commented 2026-11-30 13:24:52 +00:00

Carried as #2719 because of the conflict with main after #2566; @abdoulaahmad, if you come back, say so and the carry is dropped.

Carried as #2719 because of the conflict with main after #2566; @abdoulaahmad, if you come back, say so and the carry is dropped.
Sign in to join this conversation.
No description provided.