@@ -2042,13 +2042,15 @@ mod test_alloc {
2042
2042
let task1_allocator = RemoteProcessAllocator :: new ( ) ;
2043
2043
let task1_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2044
2044
let task1_addr_string = task1_addr. to_string ( ) ;
2045
- let task1_cmd =
2046
- Command :: new ( buck_resources:: get ( "monarch/hyperactor_mesh/bootstrap" ) . unwrap ( ) ) ;
2045
+ let task1_cmd = Command :: new ( crate :: testresource:: get (
2046
+ "monarch/hyperactor_mesh/bootstrap" ,
2047
+ ) ) ;
2047
2048
let task2_allocator = RemoteProcessAllocator :: new ( ) ;
2048
2049
let task2_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2049
2050
let task2_addr_string = task2_addr. to_string ( ) ;
2050
- let task2_cmd =
2051
- Command :: new ( buck_resources:: get ( "monarch/hyperactor_mesh/bootstrap" ) . unwrap ( ) ) ;
2051
+ let task2_cmd = Command :: new ( crate :: testresource:: get (
2052
+ "monarch/hyperactor_mesh/bootstrap" ,
2053
+ ) ) ;
2052
2054
let task1_allocator_copy = task1_allocator. clone ( ) ;
2053
2055
let task1_allocator_handle = tokio:: spawn ( async move {
2054
2056
tracing:: info!( "spawning task1" ) ;
@@ -2169,13 +2171,15 @@ mod test_alloc {
2169
2171
let task1_allocator = RemoteProcessAllocator :: new ( ) ;
2170
2172
let task1_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2171
2173
let task1_addr_string = task1_addr. to_string ( ) ;
2172
- let task1_cmd =
2173
- Command :: new ( buck_resources:: get ( "monarch/hyperactor_mesh/bootstrap" ) . unwrap ( ) ) ;
2174
+ let task1_cmd = Command :: new ( crate :: testresource:: get (
2175
+ "monarch/hyperactor_mesh/bootstrap" ,
2176
+ ) ) ;
2174
2177
let task2_allocator = RemoteProcessAllocator :: new ( ) ;
2175
2178
let task2_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2176
2179
let task2_addr_string = task2_addr. to_string ( ) ;
2177
- let task2_cmd =
2178
- Command :: new ( buck_resources:: get ( "monarch/hyperactor_mesh/bootstrap" ) . unwrap ( ) ) ;
2180
+ let task2_cmd = Command :: new ( crate :: testresource:: get (
2181
+ "monarch/hyperactor_mesh/bootstrap" ,
2182
+ ) ) ;
2179
2183
let task1_allocator_copy = task1_allocator. clone ( ) ;
2180
2184
let task1_allocator_handle = tokio:: spawn ( async move {
2181
2185
tracing:: info!( "spawning task1" ) ;
@@ -2297,8 +2301,9 @@ mod test_alloc {
2297
2301
let task1_allocator = RemoteProcessAllocator :: new ( ) ;
2298
2302
let task1_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2299
2303
let task1_addr_string = task1_addr. to_string ( ) ;
2300
- let task1_cmd =
2301
- Command :: new ( buck_resources:: get ( "monarch/hyperactor_mesh/bootstrap" ) . unwrap ( ) ) ;
2304
+ let task1_cmd = Command :: new ( crate :: testresource:: get (
2305
+ "monarch/hyperactor_mesh/bootstrap" ,
2306
+ ) ) ;
2302
2307
let task2_allocator = RemoteProcessAllocator :: new ( ) ;
2303
2308
let task2_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2304
2309
let task2_addr_string = task2_addr. to_string ( ) ;
@@ -2421,10 +2426,9 @@ mod test_alloc {
2421
2426
let remote_process_allocators = addresses
2422
2427
. iter ( )
2423
2428
. map ( |addr| {
2424
- Command :: new (
2425
- buck_resources:: get ( "monarch/hyperactor_mesh/remote_process_allocator" )
2426
- . unwrap ( ) ,
2427
- )
2429
+ Command :: new ( crate :: testresource:: get (
2430
+ "monarch/hyperactor_mesh/remote_process_allocator" ,
2431
+ ) )
2428
2432
. env ( "RUST_LOG" , "info" )
2429
2433
. arg ( format ! ( "--addr={addr}" ) )
2430
2434
. stdout ( std:: process:: Stdio :: piped ( ) )
@@ -2436,9 +2440,9 @@ mod test_alloc {
2436
2440
let done_allocating_addr = ChannelAddr :: any ( ChannelTransport :: Unix ) ;
2437
2441
let ( done_allocating_addr, mut done_allocating_rx) =
2438
2442
channel:: serve :: < ( ) > ( done_allocating_addr) . unwrap ( ) ;
2439
- let mut remote_process_alloc = Command :: new (
2440
- buck_resources :: get ( "monarch/hyperactor_mesh/remote_process_alloc" ) . unwrap ( ) ,
2441
- )
2443
+ let mut remote_process_alloc = Command :: new ( crate :: testresource :: get (
2444
+ "monarch/hyperactor_mesh/remote_process_alloc" ,
2445
+ ) )
2442
2446
. arg ( format ! ( "--done-allocating-addr={}" , done_allocating_addr) )
2443
2447
. arg ( format ! ( "--addresses={}" , addresses. join( "," ) ) )
2444
2448
. arg ( format ! ( "--num-proc-meshes={}" , num_proc_meshes) )
0 commit comments