tao-shen Claude Opus 4.6 commited on
Commit
92bbd97
Β·
1 Parent(s): 228e377

debug: test if HF captures stdout/stderr from entrypoint at all

Browse files
Files changed (1) hide show
  1. scripts/entrypoint.sh +5 -0
scripts/entrypoint.sh CHANGED
@@ -7,6 +7,11 @@
7
  # ─────────────────────────────────────────────────────────────────────
8
  set -e
9
 
 
 
 
 
 
10
  LOGFILE="/var/log/huggingrun.log"
11
  touch "$LOGFILE"
12
 
 
7
  # ─────────────────────────────────────────────────────────────────────
8
  set -e
9
 
10
+ # Diagnostic: test if HF captures ANY container output
11
+ echo "=== [stdout] ENTRYPOINT PID=$$ $(date -u) ==="
12
+ echo "=== [stderr] ENTRYPOINT PID=$$ $(date -u) ===" >&2
13
+ python3 -c "import sys; print('=== [py-stdout] PYTHON TEST ===', flush=True); print('=== [py-stderr] PYTHON TEST ===', file=sys.stderr, flush=True)"
14
+
15
  LOGFILE="/var/log/huggingrun.log"
16
  touch "$LOGFILE"
17