This commit is contained in:
@@ -40,11 +40,9 @@ def test_snapshot_to_ssh_target(tmp_path):
|
||||
|
||||
|
||||
def test_runner_config_disables_docker_and_keeps_host_labels():
|
||||
rendered = controller.runner_config(
|
||||
["ubuntu-latest:host", "ces-ci:host", "gpu:host"], "24h"
|
||||
)
|
||||
rendered = controller.runner_config(["ces-gpu-formal:host"], "24h")
|
||||
assert 'docker_host: "-"' in rendered
|
||||
assert '"gpu:host"' in rendered
|
||||
assert '"ces-gpu-formal:host"' in rendered
|
||||
assert "capacity: 1" in rendered
|
||||
|
||||
|
||||
@@ -61,9 +59,5 @@ def test_secret_permissions_are_enforced(tmp_path):
|
||||
def test_example_config_is_valid_json():
|
||||
path = Path(__file__).parents[1] / "ops" / "autodl-pro.example.json"
|
||||
config = json.loads(path.read_text(encoding="utf-8"))
|
||||
assert config["runner"]["labels"] == [
|
||||
"ubuntu-latest:host",
|
||||
"ces-ci:host",
|
||||
"gpu:host",
|
||||
]
|
||||
assert config["runner"]["labels"] == ["ces-gpu-formal:host"]
|
||||
assert stat.S_IMODE(MODULE_PATH.stat().st_mode) in {0o644, 0o755}
|
||||
|
||||
Reference in New Issue
Block a user