Update configuration and documentation for LLM support and local watchdog
- Added `ollama-models.yaml` to .gitignore and implemented logic to copy it in gpu-rent.ps1 and gpu-rent.sh. - Enhanced env.example to include new variables for LLM runtime options and local watchdog configuration. - Updated CLI commands to support LLM options during setup and execution, including new flags for Ollama and llama.cpp. - Improved documentation in cli.md and README.md to reflect changes in LLM integration and local watchdog functionality. - Adjusted architecture and decisions documentation to clarify the role of LLMs and local watchdog in the system.
This commit is contained in:
@@ -57,3 +57,35 @@ def test_git_token_injection():
|
||||
assert strip_auth(with_token(url, "secret")) == url
|
||||
assert is_sha("a" * 40)
|
||||
assert not is_sha("main")
|
||||
|
||||
|
||||
def test_scrub_origin(tmp_path: Path, monkeypatch):
|
||||
from gpu_rent.remote import clone_ext
|
||||
|
||||
dest = tmp_path / "repo"
|
||||
dest.mkdir()
|
||||
(dest / ".git").mkdir()
|
||||
calls: list[list[str]] = []
|
||||
|
||||
def fake_out(argv, cwd=None):
|
||||
if "get-url" in argv:
|
||||
return "https://x-access-token:secret@github.com/org/Ext.git"
|
||||
raise AssertionError(argv)
|
||||
|
||||
def fake_run(argv, cwd=None):
|
||||
calls.append(argv)
|
||||
|
||||
monkeypatch.setattr(clone_ext, "out", fake_out)
|
||||
monkeypatch.setattr(clone_ext, "run", fake_run)
|
||||
clone_ext.scrub_origin(dest, "https://github.com/org/Ext.git")
|
||||
assert calls == [
|
||||
[
|
||||
"git",
|
||||
"-C",
|
||||
str(dest),
|
||||
"remote",
|
||||
"set-url",
|
||||
"origin",
|
||||
"https://github.com/org/Ext.git",
|
||||
]
|
||||
]
|
||||
Reference in New Issue
Block a user