Repository navigation
Fix main: the two diffusers-import preflight tests only pass on a GPU host - #8281
Conversation
…ests Both of these post a krea-2 start and assert the diffusers reason comes back in the 400. On a GPU-less runner the accelerator gate is earlier in the route and answers "Training the DiT families needs a GPU" instead, so on CI they assert nothing about the import guard and fail outright. They pass on a GPU box, which is why this only showed up after the merge. conftest already has dit_train_host for exactly this, and the neighbouring family-metadata tests use it. Request it here too, so both assert the same thing on every host. Verified with the file run twice, once with CUDA_VISIBLE_DEVICES empty and once with the GPUs visible: 118 passed both times, against 2 failed / 116 passed on CPU before.
|
The two red checks on this PR are not failures. Backend CI here is:
Both cancellations are the workflow's So this PR cannot show a fully green Backend CI until #8286 merges, and the interpreters that did complete, 3.12 and 3.13, both pass with the fix. If both land, #8286 first is the useful order. |
|
Rebased onto current main ( I went back over the Backend CI red with job conclusions rather than
Zero That timeout is #8286, and the two are complementary rather than alternatives. On #8286 (run So this PR removes the genuine failures but leaves two coin-flip timeouts, and #8286 removes the timeouts but leaves four genuine failures. Merge this one first, then #8286, and Backend CI is green on all four interpreters for the first time since #8236. Re-verified on the rebased tree,
|
|
Backend CI on the rebased head
Four of five green against current main, and no I also ran the workflow's exact CPU-only invocation on the rebased tree on my own box (12m33s, 20192 passed). It carries 52 failures that box has regardless of this branch, none of them in |
…an show green These two changes are complementary and neither can demonstrate itself alone. The test fix removes the only genuine failures in the matrix, but leaves the 15 minute job timeout, which the suite now runs 14.1 to 15.0 minutes against, so a different interpreter is cancelled on each run and the result is a coin flip rather than a verdict. Raising the timeout alone lets all four interpreters finish and all four then fail on exactly the two tests fixed here. Kept apart they force a merge in a specific order, with the first one going in over a red check that can only be argued about rather than shown. Together, one run either goes green or does not. The timeout is the guard against a hang, which 30 minutes still is; it was never meant to be a performance budget, and the suite's runtime remains the real problem underneath.
|
Folded #8286's two-line The reason is that neither change can demonstrate itself alone, which was leaving both stuck. This PR removes the only genuine #8286 raises the timeout and nothing else. On its run So the two are complementary, and kept apart they force a merge in a specific order with the first one going in red. Together, one run either goes green or it does not. The timeout is the guard against a hang, which 30 minutes still is. It was never a performance budget. A suite that takes 14.5 minutes is the real problem and 30 buys time rather than headroom, so that still wants doing separately. Evidence for the test fix itself, on this tree: If this goes green, #8286 is redundant and I will close it pointing here. |
Picks up #8281, which fixed the two diffusers-import preflight tests that only passed on a GPU host. This branch's merge base predates it, so Backend CI was replaying that failure on the CPU runner.
main is red on the Python matrix:
test_route_start_refuses_a_diffusers_whose_lazy_submodule_cannot_importandtest_route_start_refuses_training_when_diffusers_is_absentfail on 3.10, 3.11, 3.12 and 3.13, and every open PR inherits them.Both tests post a krea-2 start and assert the diffusers reason survives into the 400 body:
training_precision_preflight_errorruns beforetraining_pipeline_import_erroron the start route, and itsdit_accelerator_missing_reasongate fires first on a GPU-less runner. So on CI these two assert nothing about the import guard they exist to cover, and fail. On a GPU box they pass, which is how they were written. They did not go in green: #8236's own Backend CI was already failing on(Python 3.11),(Python 3.12)and(Python 3.13)with these exact two at merge time, the same way #8163 merged red earlier today. Nobody is at fault for a check that was red when it landed; this just clears it.The route ordering is right as it stands. Telling someone on a CPU host that training needs a GPU is more use than telling them diffusers is missing, and the accelerator gate is the cheaper check. What is wrong is that the tests depend on the host.
conftest.dit_train_hostalready exists for exactly this, and the neighbouring family-metadata tests use it, includingtest_route_start_still_runs_when_the_install_does_have_the_pipelinea few lines up. Requesting it here pinsdit_accelerator_missing_reasonandbf16_unsupported_reasonto None so the request reaches the import guard on any host. The gate itself keeps its own coverage intest_diffusion_base_precision.py.Verification,
studio/backend/tests/test_diffusion_training.pyrun twice on this box:CUDA_VISIBLE_DEVICES=""CUDA_VISIBLE_DEVICES=0,1,2,3