Spaces:
Sleeping
Sleeping
Push Bot commited on
Commit ·
b191b73
1
Parent(s): ce0eab9
Fix SyntaxError; simplify debug; stage repo zip; make packages.txt empty
Browse files
app.py
CHANGED
|
@@ -2106,7 +2106,18 @@ def debug_compile_last_pipeline_zip():
|
|
| 2106 |
logs = [f"🐞 Debug(last-pipeline-zip) at {_now_str()}"]
|
| 2107 |
last_zip = _find_last_pipeline_zip()
|
| 2108 |
if not last_zip:
|
| 2109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2110 |
|
| 2111 |
# Prepare workspace
|
| 2112 |
run_id, WORK_DIR, LOG_PATH, _ = _prepare_workspace(logs)
|
|
|
|
| 2106 |
logs = [f"🐞 Debug(last-pipeline-zip) at {_now_str()}"]
|
| 2107 |
last_zip = _find_last_pipeline_zip()
|
| 2108 |
if not last_zip:
|
| 2109 |
+
repo_zip = ROOT / "output.zip"
|
| 2110 |
+
if repo_zip.exists():
|
| 2111 |
+
try:
|
| 2112 |
+
_, W, L, Z = _prepare_workspace(logs)
|
| 2113 |
+
shutil.copy2(repo_zip, Z)
|
| 2114 |
+
logs.append(f"📦 Auto-staged repo output.zip → runs/{W.name}/output.zip")
|
| 2115 |
+
last_zip = Z
|
| 2116 |
+
except Exception as e:
|
| 2117 |
+
logs.append(f"❌ Auto-stage failed: {e}")
|
| 2118 |
+
return "<div style='color:#b00'>No recent pipeline output.zip found and auto-stage failed.</div>"
|
| 2119 |
+
else:
|
| 2120 |
+
return "<div style='color:#b00'>No recent pipeline output.zip found under runs/.</div>"
|
| 2121 |
|
| 2122 |
# Prepare workspace
|
| 2123 |
run_id, WORK_DIR, LOG_PATH, _ = _prepare_workspace(logs)
|