playbooks: quiet down pip noise in TTS build logs

Profiling the index-tts deploy log (2057 lines) showed ~25% was just
pip's per-package Downloading / Collecting / Requirement-already /
progress-bar spam — useless for ops, hard to scan when something
actually breaks.

Three changes across the four TTS deploy playbooks:

1. Pulls (Kokoro): add --quiet. 6.5 GB pull no longer floods the log
   with per-layer progress redraws. Final "X Pulled" still prints.

2. Builds (VibeVoice, Chatterbox, IndexTTS-2): add --progress=plain
   to stop the BuildKit TUI from littering the captured log with
   carriage-return overdraws, then pipe through a grep filter that
   drops pip's noisy lines but keeps:
     - buildkit step transitions (#NN [stage])
     - DONE / CACHED / ERROR markers
     - apt + build-stage messages
   set -o pipefail keeps a real build failure from being swallowed
   by the grep's exit code.

Net effect: ~25% smaller logs, much more scannable; full visibility
into step progress and errors preserved.
This commit is contained in:
2026-04-25 16:25:42 -07:00
parent b2a405fff4
commit ca16db73e0
4 changed files with 27 additions and 4 deletions
+5 -1
View File
@@ -61,7 +61,11 @@ steps:
# ── build + bring up ────────────────────────────────────────────────
- name: docker compose build (~8-10 min first time; cached after)
shell: cd {{ compose_dir }} && docker compose build
# See deploy-vibevoice.yaml for the rationale — same filter pattern.
shell: |
set -o pipefail
cd {{ compose_dir }} && docker compose build --progress=plain 2>&1 \
| grep -vE '^#[0-9]+ [0-9.]+ (Downloading|Collecting|Requirement|Using cached|Installing collected|Successfully (installed|built)|Saved /|━|Resolved|Prepared|Built)'
- name: docker compose up -d
shell: cd {{ compose_dir }} && docker compose up -d
+9 -1
View File
@@ -89,7 +89,15 @@ steps:
# ── build + bring up ────────────────────────────────────────────────
- name: docker compose build (~5-10 min first time; cached after)
shell: cd {{ compose_dir }} && docker compose build
# --progress=plain stops carriage-return TUI from littering the log.
# The grep drops pip's per-package Downloading/Collecting/Requirement
# noise (~25% of the log on first build) while keeping buildkit step
# transitions and DONE/CACHED/ERROR markers. set -o pipefail so a
# build failure isn't swallowed by the grep return code.
shell: |
set -o pipefail
cd {{ compose_dir }} && docker compose build --progress=plain 2>&1 \
| grep -vE '^#[0-9]+ [0-9.]+ (Downloading|Collecting|Requirement|Using cached|Installing collected|Successfully (installed|built)|Saved /|━|Resolved|Prepared|Built)'
- name: docker compose up -d
shell: cd {{ compose_dir }} && docker compose up -d
+3 -1
View File
@@ -58,7 +58,9 @@ steps:
# ── pull + bring up ─────────────────────────────────────────────────
- name: "docker compose pull (first run: ~6.5 GB from GHCR)"
shell: cd {{ compose_dir }} && docker compose pull
# --quiet drops the per-layer progress redraws that flood the log
# during a 6.5 GB pull. Final "X Pulled" line still prints.
shell: cd {{ compose_dir }} && docker compose pull --quiet
- name: docker compose up -d
shell: cd {{ compose_dir }} && docker compose up -d
+10 -1
View File
@@ -60,7 +60,16 @@ steps:
# ── build + bring up ────────────────────────────────────────────────
- name: docker compose build (~12 min first time; cached after)
shell: cd {{ compose_dir }} && docker compose build
# --progress=plain stops the carriage-return TUI from littering the log
# with garbled redraws. The grep drops pip's Downloading / Collecting /
# Requirement / progress-bar lines (~25% of the log) while keeping
# buildkit step transitions, DONE/CACHED/ERROR markers, and any apt /
# build-stage messages worth seeing. set -o pipefail so a build
# failure isn't swallowed by the grep return code.
shell: |
set -o pipefail
cd {{ compose_dir }} && docker compose build --progress=plain 2>&1 \
| grep -vE '^#[0-9]+ [0-9.]+ (Downloading|Collecting|Requirement|Using cached|Installing collected|Successfully (installed|built)|Saved /|━|Resolved|Prepared|Built)'
- name: docker compose up -d
shell: cd {{ compose_dir }} && docker compose up -d