Print per-tool completion during parallel extraction

This commit is contained in:
J. Nick Koston
2026-08-27 20:09:58 -05:00
parent 1fe3475f18
commit 7ecb9d3b73
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -75,6 +75,8 @@ def install_one(tool: object, name: str, version: str) -> bool | None:
)
return None
return False
# Per-tool completion keeps the multi-minute unpack phase visibly alive
print(f"extracted {name}@{version}", flush=True)
return True
@@ -2213,6 +2213,8 @@ def test_install_tool_archives_inprocess_dedupes_and_skips(
"Extracting 2 ESP-IDF tool archive(s) with 2 worker(s): "
"cmake@3.30.2, ninja@1.12.1" in captured.out
)
assert "extracted cmake@3.30.2" in captured.out
assert "extracted ninja@1.12.1" in captured.out
assert "leaving broken broken-tool to the installer" in captured.err
tools = tmp_path / "tp" / "tools"
assert (tools / "cmake" / "3.30.2" / ".installed").is_file()