<#1244 test(integration): add clustered (JobSet) i...
# flyte-github
a
#1244 test(integration): add clustered (JobSet) integration test Pull request opened by AdilFayyaz Motivation None of the
examples/clustered/
examples were covered by
examples/integration_tests.py
, so regressions in the JobSet-backed clustered runtime would not be caught by the integration suite. Summary • Adds a
CLUSTERED (JOBSETS)
section to
examples/integration_tests.py
with one tier-1 test:
test_clustered_failure_cascade
. • The test exercises
examples/clustered/failure_cascade.py
(2 CPU pods, gloo backend), which covers the JobSet lifecycle end-to-end: rendezvous, deliberate rank failure, whole-set restart, and checkpoint resume. • Reuses the existing
_run_and_wait
/
_verify_log_links
helpers — log-link verification works as-is for JobSet attempts. Test Plan Ran against
playground.canary.unionai.cloud
after enabling the
clustered-task
propeller plugin (cloud#16667) and installing the JobSet helm chart on the cluster:
Copy code
uv run pytest examples/integration_tests.py -k clustered_failure_cascade -v
Result: PASSED in 75s on attempt 1. Verified two JobSet worker pods (
<run>-a0-0-workers-0-{0,1}
) reached rendezvous, rank 1 crashed mid-training, the JobSet restarted the whole set, and training resumed from the last checkpoint to SUCCEEDED. GPU and stress variants (
ddp_train
,
ddp_train_restart
,
load_16pod
) were prototyped and validated locally on playground but pulled from this PR to keep tier-1 minimal; they can be added in a follow-up once GPU CI capacity is wired up. flyteorg/flyte-sdk