Minor fixes

This commit is contained in:
2026-05-25 03:04:10 +06:00
parent c3be944c5b
commit 6d7ae69a43
3 changed files with 7 additions and 4 deletions

View File

@ -97,7 +97,7 @@ def download_artifacts(capsule: Capsule) -> bool:
def main() -> None:
with Capsule(template="golang", wait=True, vcpus=4, memory_mb=4096) as capsule:
with Capsule(template="golang", wait=True) as capsule:
print(f"Capsule: {capsule.capsule_id}")
if not clone_repo(capsule):
sys.exit(1)

View File

@ -49,6 +49,9 @@ def build_rust(capsule: Capsule) -> bool:
"make build-envd",
background=True,
cwd=REPO_DIR,
envs={
"PATH": "/home/wrenn-user/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
},
)
print(f"rust build started (pid={handle.pid}), streaming output...")
@ -87,7 +90,7 @@ def download_artifacts(capsule: Capsule) -> bool:
def main() -> None:
with Capsule(template="rust-1.95", wait=True, vcpus=4, memory_mb=4096) as capsule:
with Capsule(template="rust-1.95", wait=True) as capsule:
print(f"Capsule: {capsule.capsule_id}")
if not clone_repo(capsule):
sys.exit(1)

View File

@ -208,7 +208,7 @@ def download_release_notes(capsule: Capsule) -> None:
local_path = os.path.normpath(LOCAL_OUTPUT)
os.makedirs(os.path.dirname(local_path), exist_ok=True)
print(f"Downloading release notes from capsule...")
print("Downloading release notes from capsule...")
content = capsule.files.read_bytes(CAPSULE_OUTPUT)
with open(local_path, "wb") as f:
f.write(content)
@ -220,7 +220,7 @@ def download_release_notes(capsule: Capsule) -> None:
def main() -> None:
model = os.environ.get("OPENCODE_MODEL", DEFAULT_MODEL)
with Capsule(template="opencode", wait=True, vcpus=2, memory_mb=2048) as capsule:
with Capsule(template="opencode", wait=True) as capsule:
print(f"Capsule: {capsule.capsule_id}")
capsule.git.clone(