Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/sandbox/dax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ if (result.error) {

// Count completed phases
const phaseKeys = ['prepare', 'cache_clear', 'bun_download', 'bun_unpack', 'clone', 'install', 'typecheck'];
const phasesCompleted = phaseKeys.filter(k => phases[k] !== undefined).length;
const rawPhasesCompleted = phaseKeys.filter(k => phases[k] !== undefined).length;
// The script's phase() function emits BENCH_PHASE even for the failing phase (it prints timing before checking exit code).
// When there's an error, the last phase that emitted a BENCH_PHASE line is the one that failed, so don't count it.
const phasesCompleted = benchError ? Math.max(0, rawPhasesCompleted - 1) : rawPhasesCompleted;

// If no phases completed, the script didn't actually run (e.g. curl missing)
if (phasesCompleted === 0 && !benchError) {
Expand Down
Loading