✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
install
{s}\n", .{e.message});Failure Output
Showing last 10 of 26 lines
error: the following command failed with 1 compilation errors:
/opt/homebrew/Cellar/zig/0.15.2_1/bin/zig build-exe -ODebug --dep koru_parser --dep koru_ast=ast --dep koru_errors=errors --dep ast --dep flow_parser --dep liquid -Mroot=/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_025_interpreter_benchmark_real/output_emitted.zig -ODebug --dep ast --dep lexer --dep errors --dep type_registry --dep expression_parser --dep union_collector --dep module_resolver -Mkoru_parser=/usr/local/lib/koru/src/parser.zig -ODebug --dep errors -Mast=/usr/local/lib/koru/src/ast.zig -ODebug -Merrors=/usr/local/lib/koru/src/errors.zig -ODebug --dep ast --dep lexer --dep errors --dep expression_parser -Mflow_parser=/usr/local/lib/koru/src/flow_parser.zig -ODebug -Mliquid=/usr/local/lib/koru/src/liquid.zig -ODebug -Mlexer=/usr/local/lib/koru/src/lexer.zig -ODebug --dep ast --dep log -Mtype_registry=/usr/local/lib/koru/src/type_registry.zig -ODebug --dep lexer --dep ast -Mexpression_parser=/usr/local/lib/koru/src/expression_parser.zig -ODebug --dep ast -Munion_collector=/usr/local/lib/koru/src/union_collector.zig -ODebug --dep config --dep log -Mmodule_resolver=/usr/local/lib/koru/src/module_resolver.zig -ODebug -Mlog=/usr/local/lib/koru/src/log.zig -ODebug --dep log -Mconfig=/usr/local/lib/koru/src/config.zig --cache-dir .zig-cache --global-cache-dir /Users/larsde/.cache/zig --name output --zig-lib-dir /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/ --listen=-
Build Summary: 0/3 steps succeeded; 1 failed
install transitive failure
+- install output transitive failure
+- compile exe output Debug native 1 errors
error: the following build command failed with exit code 1:
.zig-cache/o/2991014f42cecfa8221cf0f09637195b/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_RUNTIME/430_025_interpreter_benchmark_real .zig-cache /Users/larsde/.cache/zig --seed 0x6ba583b1 -Z6470ffea249034a6 Code
// REAL Interpreter Benchmark
// Tests the FULL pipeline: parse Koru flow string → execute → return result
// Uses a realistic multi-step flow with continuations
~import "$std/runtime"
~import "$std/interpreter"
const std = @import("std");
// ============================================================================
// Events that the flow will dispatch to
// ============================================================================
~pub event compute { a: []const u8, b: []const u8, op: []const u8 }
| result []const u8
| error []const u8
~proc compute {
const a_val = std.fmt.parseInt(i64, a, 10) catch 0;
const b_val = std.fmt.parseInt(i64, b, 10) catch 0;
const value = if (std.mem.eql(u8, op, "add"))
a_val + b_val
else if (std.mem.eql(u8, op, "mul"))
a_val * b_val
else if (std.mem.eql(u8, op, "sub"))
a_val - b_val
else
0;
var buf: [32]u8 = undefined;
const result_str = std.fmt.bufPrint(&buf, "{d}", .{value}) catch "0";
return .{ .result = result_str };
}
~pub event print_result { value: []const u8 }
| printed
~proc print_result {
std.debug.print("Result: {s}\n", .{value});
return .{ .printed = .{} };
}
// Register events for runtime dispatch
~std.runtime:register(scope: "bench") {
compute
print_result
}
// ============================================================================
// The flow we'll parse and execute at runtime
// This is a REAL flow with continuations
// ============================================================================
const FLOW_SOURCE =
\\~compute(a: "42", b: "17", op: "add")
\\| result r |> print_result(value: r.value)
\\| error e |> print_result(value: e.message)
;
~import "$std/io"
// ============================================================================
// Benchmark: Parse and execute the flow
// ============================================================================
~std.interpreter:run(source: FLOW_SOURCE, dispatcher: dispatch_bench)
| result r |> std.io:print.ln("Success: branch {{ r.value.branch:s }}")
| exhausted e |> std.io:print.ln("Exhausted: {{ e.last_event:s }}")
| parse_error e |> std.io:print.ln("Error: {{ e.message:s }}")
| validation_error e |> std.io:print.ln("Error: {{ e.message:s }}")
| dispatch_error e |> std.io:print.ln("Error: {{ e.message:s }}")
Test Configuration
MUST_RUN