✗
Failing This test is currently failing.
Failed: backend
Failure Output
Showing last 10 of 29 lines
Build Summary: 1/5 steps succeeded; 1 failed
install transitive failure
+- install backend transitive failure
+- compile exe backend Debug native transitive failure
+- compile obj backend_output Debug native 1 errors
+- compile obj backend_output Debug native (reused)
error: the following build command failed with exit code 1:
.zig-cache/o/a971017ad2d6cf7cc9d34ed533d4ebbe/build /opt/homebrew/Cellar/zig/0.15.2_1/bin/zig /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig /Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/430_COORDINATION/430_009_composed_timing .zig-cache /var/folders/9k/sprb5df11_79lbnlyttj6sfm0000gn/T/koru-regression-cache --seed 0xe075ef0 -Z4447903f1a1684c0 Code
// Test 430_009: Composed Timing - Multiple Independent Overrides
//
// Override BOTH the whole pipeline AND individual passes.
// Demonstrates that abstract event overrides compose cleanly.
~import std/compiler
~import std/time
~import std/io
// ============================================================================
// WHOLE PIPELINE TIMING (outer layer)
// ============================================================================
~std/compiler:coordinate = std/time:now()
| t pipeline_start |> std/compiler:coordinate.default(program_ast, allocator)
| coordinated c |> std/time:report(start: pipeline_start, label: "TOTAL PIPELINE") => coordinated c
| error e => error e
// ============================================================================
// FRONTEND PASS TIMING (inner layer - composes with above!)
// ============================================================================
~std/compiler:frontend = std/time:now()
| t start |> std/compiler:frontend.default(ctx)
| ctx c |> std/time:report(start, label: " frontend") => ctx c
// ============================================================================
// THE PROGRAM
// ============================================================================
~std/io:print.ln("Compiled with composed timing!")
Expected output
Compiled with composed timing!
Test Configuration
MUST_RUN
Post-validation Script:
#!/bin/bash
# Post-validation: Verify BOTH timing outputs appear
# This proves that the two overrides composed correctly
set -e
if [ ! -f "backend.err" ]; then
echo "❌ FAIL: No backend.err file found"
exit 1
fi
# Check for frontend timing
if ! grep -q "⏱️.*frontend:" backend.err; then
echo "❌ Missing frontend timing output"
exit 1
fi
echo "✅ Frontend timing found"
# Check for total pipeline timing
if ! grep -q "⏱️.*TOTAL PIPELINE:" backend.err; then
echo "❌ Missing total pipeline timing output"
exit 1
fi
echo "✅ Total pipeline timing found"
# Display both timings
echo ""
echo "Timing results:"
grep "⏱️" backend.err
echo ""
echo "🎉 Composed timing working! Both overrides fire independently."
exit 0