Honor package load_tests hooks in the parallel semantic runner #1406

Merged
abdoulaahmad merged 1 commit from upstream-pr/1406 into main 2026-11-30 16:03:18 +00:00
abdoulaahmad commented 2026-11-24 23:34:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abdoulaahmad on 2026-11-24T23:34:10Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482154209 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1406). Originally posted by [abdoulaahmad](https://github.com/abdoulaahmad) on 2026-11-24T23:34:10Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abdoulaahmad on 2026-11-24T23:43:51Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147730329 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1406#issuecomment-7147730329). Originally posted by [abdoulaahmad](https://github.com/abdoulaahmad) on 2026-11-24T23:43:51Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T02:48:18Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232604283 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7232604283). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T02:48:18Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T04:38:27Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250773449 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7250773449). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T04:38:27Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T08:33:49Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7253185446 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7253185446). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T08:33:49Z. --- @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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:24:52Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7279809947 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1406#issuecomment-7279809947). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-30T13:24:52Z. --- 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 reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1406
No description provided.