From 58bc2aee86e9eb53d5f5f3689a8f06d80b69b193 Mon Sep 17 00:00:00 2001 From: Acelogic <7362641+Acelogic@users.noreply.github.com> Date: Sat, 24 Oct 2026 00:38:34 -0400 Subject: [PATCH] cycle: create q1n1's build/a16-gpu before the first GPU step log A fresh q1n1 checkout has no build/ tree, so the org1 boot was refused when a16gpu() opened its first step log. The record directory is now created first. --- tools/cycle_lib/installed_fresh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cycle_lib/installed_fresh.py b/tools/cycle_lib/installed_fresh.py index b13d034..abc5c3d 100644 --- a/tools/cycle_lib/installed_fresh.py +++ b/tools/cycle_lib/installed_fresh.py @@ -1793,6 +1793,8 @@ def a16gpu(ws, device, out, arguments, environment): """One a16gpu.py client; its record must not exist and must end unstopped.""" log = out.with_suffix('.log') need(not out.exists() and not log.exists(), f'{out.name} already exists') + # q1n1's build/ is untracked, so a fresh checkout has no build/a16-gpu/ yet. + log.parent.mkdir(parents=True, exist_ok=True) with log.open('x') as stream: result = subprocess.run([sys.executable, 'tools/a16gpu.py', '--device', device, '--out', str(out), *arguments], cwd=ws.q, env=environment, stdout=stream, stderr=subprocess.STDOUT)