1515 "cd bitsandbytes && cmake -DCOMPUTE_BACKEND=cpu -S . && make && pip --no-cache install . " ,
1616 ]
1717 )
18- .add_local_dir ("hivemind" , remote_path = "/root/hivemind/hivemind" )
19- .add_local_file ("requirements.txt" , remote_path = "/root/hivemind/requirements.txt" )
20- .add_local_file ("requirements-dev.txt" , remote_path = "/root/hivemind/requirements-dev.txt" )
21- .add_local_file ("requirements-docs.txt" , remote_path = "/root/hivemind/requirements-docs.txt" )
22- .add_local_file ("setup.py" , remote_path = "/root/hivemind/setup.py" )
23- .add_local_file ("pyproject.toml" , remote_path = "/root/hivemind/pyproject.toml" )
24- .add_local_dir ("tests" , remote_path = "/root/hivemind/tests" )
2518)
2619
2720# Create an image with golang and other system dependencies
4134 "cd bitsandbytes && cmake -DCOMPUTE_BACKEND=cpu -S . && make && pip --no-cache install . " ,
4235 ]
4336 )
44- .add_local_dir ("hivemind" , remote_path = "/root/hivemind/hivemind" )
45- .add_local_file ("requirements.txt" , remote_path = "/root/hivemind/requirements.txt" )
46- .add_local_file ("requirements-dev.txt" , remote_path = "/root/hivemind/requirements-dev.txt" )
47- .add_local_file ("requirements-docs.txt" , remote_path = "/root/hivemind/requirements-docs.txt" )
48- .add_local_file ("setup.py" , remote_path = "/root/hivemind/setup.py" )
49- .add_local_file ("pyproject.toml" , remote_path = "/root/hivemind/pyproject.toml" )
50- .add_local_dir ("tests" , remote_path = "/root/hivemind/tests" )
5137)
5238
5339
@@ -85,7 +71,12 @@ def setup_environment(*, build_p2pd=False):
8571 return environment
8672
8773
88- @app .function (image = image , timeout = 600 , cpu = 8 , memory = 8192 )
74+ @app .function (
75+ image = image .add_local_dir ("." , remote_path = "/root/hivemind" ),
76+ timeout = 1200 ,
77+ cpu = 8 ,
78+ memory = 8192 ,
79+ )
8980def run_tests ():
9081 environment = setup_environment (build_p2pd = False )
9182
@@ -104,7 +95,13 @@ def run_tests():
10495 )
10596
10697
107- @app .function (image = image , timeout = 900 , cpu = 8 , memory = 8192 , secrets = [codecov_secret ])
98+ @app .function (
99+ image = image .add_local_dir ("." , remote_path = "/root/hivemind" ),
100+ timeout = 900 ,
101+ cpu = 8 ,
102+ memory = 8192 ,
103+ secrets = [codecov_secret ],
104+ )
108105def run_codecov ():
109106 environment = setup_environment (build_p2pd = False )
110107
@@ -145,7 +142,12 @@ def run_codecov():
145142 )
146143
147144
148- @app .function (image = image_with_golang , timeout = 600 , cpu = 1 , memory = 4096 )
145+ @app .function (
146+ image = image_with_golang .add_local_dir ("." , remote_path = "/root/hivemind" ),
147+ timeout = 600 ,
148+ cpu = 1 ,
149+ memory = 4096 ,
150+ )
149151def build_and_test_p2pd ():
150152 environment = setup_environment (build_p2pd = True )
151153
0 commit comments