This commit is contained in:
MasterPhooey
2026-04-25 12:48:06 -05:00
parent 2e6179ec32
commit 429be4cc67
2 changed files with 7 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
# System deps # System deps
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
python3.12 python3.12-venv python3.12-dev python3-pip python-is-python3 \ python3.12 python3.12-venv python3.12-dev python3-pip python-is-python3 \
git wget curl unzip patch ca-certificates nano less \ git wget curl unzip patch ninja-build ca-certificates nano less \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /data && mkdir -p /data

View File

@@ -2012,6 +2012,12 @@ def _run_firmware_build_flash_background(session_id: str):
"Tip: PlatformIO's ESP-IDF Python environment crashed while installing dependencies. " "Tip: PlatformIO's ESP-IDF Python environment crashed while installing dependencies. "
"Run Clean Build Files once, then retry the flash.", "Run Clean Build Files once, then retry the flash.",
) )
if "pioarduino/registry" in joined_lines and "ninja-" in joined_lines and "status code '502'" in joined_lines:
_append_firmware_log(
session_id,
"Tip: GitHub returned a 502 while PlatformIO was downloading Ninja. "
"This is an upstream package download failure; retry the build in a few minutes.",
)
_append_firmware_log(session_id, f"✗ Firmware build + flash failed (exit_code={rc})") _append_firmware_log(session_id, f"✗ Firmware build + flash failed (exit_code={rc})")
with FIRMWARE_LOCK: with FIRMWARE_LOCK:
live = FIRMWARE_SESSIONS.get(session_id) live = FIRMWARE_SESSIONS.get(session_id)