Skip to content

Commit da0ea7d

Browse files
committed
.
1 parent ce97e5f commit da0ea7d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

commit0/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

commit0/configs/base.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ repo_split: all
1313
num_workers: 8
1414

1515
# test related
16-
<<<<<<< HEAD
1716
backend: local
18-
=======
19-
backend: modal
20-
branch: ai
21-
>>>>>>> 22d3049 (update)
2217
timeout: 1_800
2318
num_cpus: 1
2419

docs/distributed.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ create a file called `distributed.yaml`
1818
```yaml
1919
backend: modal
2020
base_dir: repos.dist/
21-
branch: master
2221
```
2322
2423
You 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
```

0 commit comments

Comments
 (0)