File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ def main() -> None:
2626 # have hydra to ignore all command-line arguments
2727 sys_argv = copy .deepcopy (sys .argv )
2828 cfg_arg = next ((arg for arg in sys_argv if arg .startswith ("--cfg=" )), None )
29+
2930 hydra .initialize (version_base = None , config_path = "configs" )
3031 config = hydra .compose (config_name = "user" )
3132
3233 if cfg_arg :
34+ sys_argv .remove (cfg_arg )
3335 config_name = cfg_arg .split ("=" )[1 ]
3436 user_config = OmegaConf .load (config_name )
3537 config = OmegaConf .merge (config , user_config )
Original file line number Diff line number Diff line change @@ -13,12 +13,7 @@ repo_split: all
1313num_workers : 8
1414
1515# test related
16- <<<<<<< HEAD
1716backend : local
18- =======
19- backend : modal
20- branch : ai
21- >>>>>>> 22d3049 (update)
2217timeout : 1_800
2318num_cpus : 1
2419
Original file line number Diff line number Diff line change @@ -18,17 +18,16 @@ create a file called `distributed.yaml`
1818``` yaml
1919backend : modal
2020base_dir : repos.dist/
21- branch : master
2221` ` `
2322
2423You can pass this configuration file as an argumnet to clone.
2524
2625` ` ` bash
27- commit0 clone lite --cfg=distributed.yaml
26+ commit0 clone lite --cfg=distributed
2827```
2928
30- Next run
29+ Next to run tests you can run the standard test command.
3130
3231``` bash
33- commit0 build lite --cfg=distributed.yaml
32+ commit0 test simpy master tests/test_event.py::test_succeed --cfg=distributed
3433```
You can’t perform that action at this time.
0 commit comments