Repository navigation
test(server): unify pytest and CTest execution - #805
Merged
Merged
Conversation
Graffioh
force-pushed
the
refactor/pytest-consolidation
branch
from
October 2, 2026 13:11
1c4c9df to
7972b05
Compare
Graffioh
force-pushed
the
refactor/pytest-consolidation
branch
2 times, most recently
from
October 4, 2026 10:48
db0cac2 to
d31bb63
Compare
Consolidate server Python tests under pytest with shared HTTP and server fixtures, explicit server/model/slow tiers, and module-owned process cleanup. Validate concurrency options without losing an explicit zero, resolve local binary paths, and use supported Windows process shutdown. Group C++ sources under unit, smoke, and bench directories; propagate cpu labels through discovery and build the hosted subset through check-cpu. Restore the DS4 MIX fitter test, fix Windows CTest selection under cmd.exe, and skip the HIP replay subcase when no GPU backend is available. Cover fixture validation, process cleanup on success and failure, relative binary paths, and startup diagnostics with subprocess regressions. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Graffioh
force-pushed
the
refactor/pytest-consolidation
branch
from
October 4, 2026 10:52
d31bb63 to
3b8e103
Compare
Graffioh
marked this pull request as ready for review
October 4, 2026 11:37
dusterbloom
added a commit
to dusterbloom/lucebox-hub
that referenced
this pull request
Oct 5, 2026
…4exp-strix-halo Upstream moved the tests into test/unit and test/smoke; move this PR's new tests the same way and point CMake at the new paths.
dusterbloom
added a commit
to dusterbloom/lucebox-hub
that referenced
this pull request
Oct 5, 2026
…to feat/qwen4exp-mtp Move the MTP unit tests into test/unit like the rest.
dusterbloom
added a commit
to dusterbloom/lucebox-hub
that referenced
this pull request
Oct 5, 2026
…prefix cache Move the prefix-cache unit test into test/unit like the rest.
dusterbloom
added a commit
to dusterbloom/lucebox-hub
that referenced
this pull request
Oct 5, 2026
…g#774 + MTP + prefix cache) - One max_concurrency config field; auto chunk sized for all slots, capped at 4096 rows. - --max-concurrency > 1 switches MTP off; explicit --draft/--verify-width is refused. - The seq-engine worker replaces the serial loop, so prefix snapshots stay single-slot. - New tests follow the Luce-Org#805 layout (test/smoke, test/unit). - Test state follows the Luce-Org#774 stable-QSA cache contract: finite poison, and the permanent indexer scratch row is exempt from the stray-write check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python tests used incompatible runners, some scripts exited during pytest collection, and CI selected C++ tests through duplicated build lists and regexes. Consolidate the suites so pytest collects the Python tests and
check-cpubuilds and runs the labeled C++ subset.server/test/{python,unit,smoke,bench,fixtures}and update source, helper, and fixture references. Convert script-style Python checks to pytest fixtures, parametrization, and assertions.--launchserver cannot remain loaded while a later cache module starts another model.cpulabels through CTest discovery, restore the DS4 MIX fitter test, and usecheck-cpuin hosted CI. Skip the HIP replay subcase when no GPU backend is available, matching the surrounding cases.cmd.exepassed the doubled backslash in the original regex literally, selecting zero tests.^test_platform_compat[.]selects the discovered platform case while keeping--no-tests=error.Validation:
check-cpu, with all GPUs hidden: 660 passed, 6 skipped, 0 failures across 666 selected CTest cases.Real model/server Python tests remain opt-in and were not run against model weights during this review. The CI workflow passed on this commit: Python/workspace, Linux/CUDA build and CPU tests, Windows build and platform smoke test, NVIDIA/DGX, Strix Halo, and R9700.
The original commits and review fixes are folded into one commit on the updated upstream main.