Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def build_module(
return False, time.time() - start, f"npm install failed:\n{install_result.stderr}"
except subprocess.TimeoutExpired:
return False, time.time() - start, "npm install TIMEOUT (120s)"
except FileNotFoundError as e:
return False, time.time() - start, f"Command not found: {e}"

if module.name == "engine":

Expand Down Expand Up @@ -582,11 +584,29 @@ def generate_logd(
f" {color('✗', Colors.RED)} {logd_path.relative_to(ROOT)} creation failed: "
f"{error}"
)
if logd_path.exists():
logd_path.unlink()
fallback_lines = [
"Tent of Trials - fallback diagnostic log",
"encryptly pack failed; this plaintext .logd preserves build evidence.",
f"error: {error}",
"",
(safe_dir / "build-summary.txt").read_text(encoding="utf-8"),
"",
(safe_dir / "build.log").read_text(encoding="utf-8"),
]
logd_path.write_text("\n".join(fallback_lines), encoding="utf-8")
relpath = str(logd_path.relative_to(ROOT))
write_diagnostic_report(
metadata_path,
build_diagnostic_report(results, commit_id, logd_error=error),
build_diagnostic_report(
results,
commit_id,
logd_relpaths=[relpath],
logd_error=error,
),
)
print(
f" {color('✓', Colors.GREEN)} fallback {relpath} created "
f"({logd_path.stat().st_size / 1024.0:.1f} KiB)"
)
return False

Expand Down Expand Up @@ -720,7 +740,7 @@ def main():
print(f"\n {color('⚠ Some tools missing - will try anyway:', Colors.YELLOW)}")
for m in missing:
print(f" {m}")
print(f" {color('Not all modules will build. That\'s fine.', Colors.GRAY)}")
print(" " + color("Not all modules will build. That's fine.", Colors.GRAY))
else:
print(f" {color('✓ All prerequisites found', Colors.GREEN)}")

Expand Down
23 changes: 23 additions & 0 deletions diagnostic/build-2b54872c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"generated_at": "2026-06-21T00:30:18.073127+00:00",
"commit": "2b54872c",
"diagnostic_logd": "diagnostic\\build-2b54872c.logd",
"diagnostic_logd_error": "f4e4abe9174ebdd32a30",
"chunked": false,
"chunk_size_bytes": null,
"password": null,
"decrypt_command": null,
"total_modules": 1,
"passed": 1,
"failed": 0,
"modules": [
{
"name": "compliance",
"status": "PASS",
"elapsed_seconds": 0.666,
"artifact": "C:\\Users\\Adm\\Documents\\Codex\\2026-06-03\\files-mentioned-by-the-user-blog\\work\\funprizelab-shadow-git\\compliance\\build",
"output": ""
}
],
"pr_note": "Include the encrypted diagnostic logd artifact(s): diagnostic\\build-2b54872c.logd. The encrypted .logd is the required diagnostic content for PR review; this JSON file is metadata. Maintainers may ask you to remove these diagnostic artifacts before merging."
}
19 changes: 19 additions & 0 deletions diagnostic/build-2b54872c.logd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Tent of Trials - fallback diagnostic log
encryptly pack failed; this plaintext .logd preserves build evidence.
error: f4e4abe9174ebdd32a30

Tent of Trials - Build Summary
==================================================
generated_at: 2026-06-21T00:30:03.223157+00:00
total_modules: 1
passed: 1
failed: 0

module results:
compliance: PASS (0.67s) [C:\Users\Adm\Documents\Codex\2026-06-03\files-mentioned-by-the-user-blog\work\funprizelab-shadow-git\compliance\build]


==================================================
compliance (PASS, 0.67s)
==================================================
artifact: C:\Users\Adm\Documents\Codex\2026-06-03\files-mentioned-by-the-user-blog\work\funprizelab-shadow-git\compliance\build
86 changes: 86 additions & 0 deletions diagnostic/build-add8728c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"generated_at": "2026-06-20T18:23:51.559371+00:00",
"commit": "add8728c",
"diagnostic_logd": "diagnostic/build-add8728c.logd",
"diagnostic_logd_error": null,
"chunked": false,
"chunk_size_bytes": null,
"password": "2522bf3eb5215ff92c4f",
"decrypt_command": "encryptly unpack diagnostic/build-add8728c.logd <outdir> --password 2522bf3eb5215ff92c4f",
"total_modules": 10,
"passed": 0,
"failed": 10,
"modules": [
{
"name": "backend",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'cargo'"
},
{
"name": "frontend",
"status": "FAIL",
"elapsed_seconds": 0.016,
"artifact": null,
"output": "npm install failed:\nnpm unavailable in this WSL validation environment\n"
},
{
"name": "market",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'go'"
},
{
"name": "frailbox",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'make'"
},
{
"name": "engine",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'cmake'"
},
{
"name": "compliance",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'javac'"
},
{
"name": "v2-market-stream",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'ruby'"
},
{
"name": "nfc-scanner",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'luac'"
},
{
"name": "openapi-haskell",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'ghc'"
},
{
"name": "openapi-tools",
"status": "FAIL",
"elapsed_seconds": 0,
"artifact": null,
"output": "Command not found: [Errno 2] No such file or directory: 'luac'"
}
],
"pr_note": "Include the encrypted diagnostic logd artifact(s): diagnostic/build-add8728c.logd. The encrypted .logd is the required diagnostic content for PR review; this JSON file is metadata. Maintainers may ask you to remove these diagnostic artifacts before merging."
}
Binary file added diagnostic/build-add8728c.logd
Binary file not shown.
Loading