From 2a7db0e380d83b9391b38cbb8f473e2fcdee1a5a Mon Sep 17 00:00:00 2001 From: Christopher Tso Date: Sat, 10 Oct 2026 18:41:23 +1100 Subject: [PATCH 1/2] chore(release): print contract assertion failures --- scripts/run-contract-eval.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/run-contract-eval.ts b/scripts/run-contract-eval.ts index b5af3e1e9..edd5e1e04 100644 --- a/scripts/run-contract-eval.ts +++ b/scripts/run-contract-eval.ts @@ -41,6 +41,16 @@ for (const evalFile of evalFiles) { const exitCode = await proc.exited; if (exitCode !== 0) { + console.error('\nContract eval failure details:'); + const details = Bun.spawn( + ['bun', 'apps/cli/src/cli.ts', 'results', 'failures'], + { + env: { ...process.env, NO_COLOR: '1' }, + stdout: 'inherit', + stderr: 'inherit', + }, + ); + await details.exited; process.exit(exitCode); } } From e25fe651704d5874f9364ff6b79e5849e3d6078e Mon Sep 17 00:00:00 2001 From: Christopher Tso Date: Sat, 10 Oct 2026 18:43:07 +1100 Subject: [PATCH 2/2] style(release): format assertion output --- scripts/run-contract-eval.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/run-contract-eval.ts b/scripts/run-contract-eval.ts index edd5e1e04..fbcd662d9 100644 --- a/scripts/run-contract-eval.ts +++ b/scripts/run-contract-eval.ts @@ -42,14 +42,11 @@ for (const evalFile of evalFiles) { const exitCode = await proc.exited; if (exitCode !== 0) { console.error('\nContract eval failure details:'); - const details = Bun.spawn( - ['bun', 'apps/cli/src/cli.ts', 'results', 'failures'], - { - env: { ...process.env, NO_COLOR: '1' }, - stdout: 'inherit', - stderr: 'inherit', - }, - ); + const details = Bun.spawn(['bun', 'apps/cli/src/cli.ts', 'results', 'failures'], { + env: { ...process.env, NO_COLOR: '1' }, + stdout: 'inherit', + stderr: 'inherit', + }); await details.exited; process.exit(exitCode); }