@@ -533,8 +533,8 @@ async fn test_group_scheduling() {
533533 image : "prime-vllm" . to_string ( ) ,
534534 name : "test-task" . to_string ( ) ,
535535 env_vars : Some ( env_vars) ,
536- command : Some ( "uv" . to_string ( ) ) ,
537- args : Some ( vec ! [
536+ cmd : Some ( vec ! [
537+ "uv" . to_string ( ) ,
538538 "run" . to_string( ) ,
539539 "generate.py" . to_string( ) ,
540540 "--model" . to_string( ) ,
@@ -548,6 +548,7 @@ async fn test_group_scheduling() {
548548 "--file-number" . to_string( ) ,
549549 "${LAST_FILE_IDX}" . to_string( ) ,
550550 ] ) ,
551+ entrypoint : None ,
551552 state : TaskState :: PENDING ,
552553 created_at : 0 ,
553554 ..Default :: default ( )
@@ -609,23 +610,23 @@ async fn test_group_scheduling() {
609610 assert_eq ! ( env_vars_1. get( "GROUP_INDEX" ) . unwrap( ) , "0" ) ;
610611 assert_eq ! ( env_vars_1. get( "RANK" ) . unwrap( ) , "0" ) ;
611612 assert_eq ! ( env_vars_1. get( "WORLD_SIZE" ) . unwrap( ) , "2" ) ;
612- assert_eq ! ( task_node_1. args . as_ref( ) . unwrap( ) [ 3 ] , "model/Qwen3-14B-0.2" ) ;
613+ assert_eq ! ( task_node_1. cmd . as_ref( ) . unwrap( ) [ 4 ] , "model/Qwen3-14B-0.2" ) ;
613614 assert_ne ! ( env_vars_1. get( "GROUP_ID" ) . unwrap( ) , "${GROUP_ID}" ) ;
614615 assert_eq ! ( env_vars_1. get( "TOTAL_UPLOAD_COUNT" ) . unwrap( ) , "1" ) ;
615616 assert_eq ! ( env_vars_1. get( "LAST_FILE_IDX" ) . unwrap( ) , "0" ) ;
616- assert_eq ! ( task_node_1. args . as_ref( ) . unwrap( ) [ 9 ] , "1" ) ; // Check upload count in args
617+ assert_eq ! ( task_node_1. cmd . as_ref( ) . unwrap( ) [ 10 ] , "1" ) ; // Check upload count in cmd
617618
618619 assert_eq ! ( filtered_tasks_2. len( ) , 1 ) ;
619620 let task_node_2 = & filtered_tasks_2[ 0 ] ;
620621 let env_vars_2 = task_node_2. env_vars . as_ref ( ) . unwrap ( ) ;
621622 assert_eq ! ( env_vars_2. get( "GROUP_INDEX" ) . unwrap( ) , "1" ) ;
622623 assert_eq ! ( env_vars_2. get( "RANK" ) . unwrap( ) , "1" ) ;
623624 assert_eq ! ( env_vars_2. get( "WORLD_SIZE" ) . unwrap( ) , "2" ) ;
624- assert_eq ! ( task_node_2. args . as_ref( ) . unwrap( ) [ 3 ] , "model/Qwen3-14B-1.2" ) ;
625+ assert_eq ! ( task_node_2. cmd . as_ref( ) . unwrap( ) [ 4 ] , "model/Qwen3-14B-1.2" ) ;
625626 assert_ne ! ( env_vars_2. get( "GROUP_ID" ) . unwrap( ) , "${GROUP_ID}" ) ;
626627 assert_eq ! ( env_vars_2. get( "TOTAL_UPLOAD_COUNT" ) . unwrap( ) , "0" ) ;
627628 assert_eq ! ( env_vars_2. get( "LAST_FILE_IDX" ) . unwrap( ) , "0" ) ;
628- assert_eq ! ( task_node_2. args . as_ref( ) . unwrap( ) [ 9 ] , "0" ) ; // Check upload count in args
629+ assert_eq ! ( task_node_2. cmd . as_ref( ) . unwrap( ) [ 10 ] , "0" ) ; // Check upload count in cmd
629630
630631 assert_eq ! ( task_node_1. id, task_node_2. id) ;
631632}
@@ -752,8 +753,12 @@ async fn test_group_formation_with_max_size() {
752753 image : "test-image" . to_string ( ) ,
753754 name : "test-task" . to_string ( ) ,
754755 env_vars : Some ( env_vars) ,
755- command : Some ( "run" . to_string ( ) ) ,
756- args : Some ( vec ! [ "--index" . to_string( ) , "${GROUP_INDEX}" . to_string( ) ] ) ,
756+ cmd : Some ( vec ! [
757+ "run" . to_string( ) ,
758+ "--index" . to_string( ) ,
759+ "${GROUP_INDEX}" . to_string( ) ,
760+ ] ) ,
761+ entrypoint : None ,
757762 state : TaskState :: PENDING ,
758763 created_at : 0 ,
759764 ..Default :: default ( )
@@ -851,8 +856,12 @@ async fn test_node_groups_with_allowed_topologies() {
851856 image : "test-image" . to_string ( ) ,
852857 name : "test-task" . to_string ( ) ,
853858 env_vars : None ,
854- command : Some ( "run" . to_string ( ) ) ,
855- args : Some ( vec ! [ "--index" . to_string( ) , "${GROUP_INDEX}" . to_string( ) ] ) ,
859+ cmd : Some ( vec ! [
860+ "run" . to_string( ) ,
861+ "--index" . to_string( ) ,
862+ "${GROUP_INDEX}" . to_string( ) ,
863+ ] ) ,
864+ entrypoint : None ,
856865 scheduling_config : Some ( SchedulingConfig {
857866 plugins : Some ( HashMap :: from ( [ (
858867 "node_groups" . to_string ( ) ,
@@ -884,8 +893,12 @@ async fn test_node_groups_with_allowed_topologies() {
884893 image : "test-image" . to_string ( ) ,
885894 name : "test-task" . to_string ( ) ,
886895 env_vars : None ,
887- command : Some ( "run" . to_string ( ) ) ,
888- args : Some ( vec ! [ "--index" . to_string( ) , "${GROUP_INDEX}" . to_string( ) ] ) ,
896+ cmd : Some ( vec ! [
897+ "run" . to_string( ) ,
898+ "--index" . to_string( ) ,
899+ "${GROUP_INDEX}" . to_string( ) ,
900+ ] ) ,
901+ entrypoint : None ,
889902 scheduling_config : Some ( SchedulingConfig {
890903 plugins : Some ( HashMap :: from ( [ (
891904 "node_groups" . to_string ( ) ,
0 commit comments