Commit 2f574f2
committed
Mark real multi-device distribution tests in t5gemma2 backbone test
test_distribution, test_distribution_vision, and test_layout_map_mesh_shapes
build an actual ModelParallel/DeviceMesh and need multiple simulated
devices, but were missing @pytest.mark.multi_device. Without it, the
dedicated multi_device CI job (added by keras-team#2809) collects zero tests from
this file -- only test_layout_map_live_presets carried the marker, and
that test is deliberately excluded by the job's own
"not kaggle_key_required and not extra_large" filter.
For test_layout_map_mesh_shapes, the marker is placed as the innermost
decorator (below @parameterized.named_parameters), not outermost:
absl.testing.parameterized generates fresh function objects per expanded
case and only copies pytestmark onto them when it wraps an
already-marked function, not when the mark wraps the parameterized
descriptor itself. Verified empirically that outermost placement causes
pytest to collect 0 of the 18 expanded cases, while innermost placement
collects all 18.1 parent a712df4 commit 2f574f2
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
| 384 | + | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| |||
0 commit comments