✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
install
Failure Output
Showing last 10 of 21 lines
error: the following command failed with 1 compilation errors:
/opt/homebrew/Cellar/zig/0.15.2_1/bin/zig build-exe -ODebug --dep parser --dep ast_serializer -Mroot=/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/220_COMPILATION/220_008_parser_benchmark/output_emitted.zig -ODebug --dep ast --dep ast_mangle --dep lexer --dep errors --dep type_registry --dep expression_parser --dep annotation_parser --dep union_collector --dep module_resolver --dep file_types -Mparser=/Users/larsde/src/koru/src/parser.zig -ODebug --dep ast --dep parser --dep log -Mast_serializer=/Users/larsde/src/koru/src/ast_serializer.zig -ODebug --dep errors -Mast=/Users/larsde/src/koru/src/ast.zig -ODebug --dep ast -Mast_mangle=/Users/larsde/src/koru/src/ast_mangle.zig -ODebug -Mlexer=/Users/larsde/src/koru/src/lexer.zig -ODebug -Merrors=/Users/larsde/src/koru/src/errors.zig -ODebug --dep ast --dep log -Mtype_registry=/Users/larsde/src/koru/src/type_registry.zig -ODebug --dep lexer --dep ast -Mexpression_parser=/Users/larsde/src/koru/src/expression_parser.zig -ODebug -Mannotation_parser=/Users/larsde/src/koru/src/annotation_parser.zig -ODebug --dep ast -Munion_collector=/Users/larsde/src/koru/src/union_collector.zig -ODebug --dep config --dep log --dep file_types -Mmodule_resolver=/Users/larsde/src/koru/src/module_resolver.zig -ODebug -Mfile_types=/Users/larsde/src/koru/src/file_types.zig -ODebug -Mlog=/Users/larsde/src/koru/src/log.zig -ODebug --dep log -Mconfig=/Users/larsde/src/koru/src/config.zig -lc --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/5537d2336af27c32d00e605a0884687d/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/200_COMPILER_FEATURES/220_COMPILATION/220_008_parser_benchmark .zig-cache /Users/larsde/.cache/zig --seed 0xd35cc96d -Z521fc608d1f35c6a Code
// Benchmark: Parser Performance
//
// Parses a realistic Koru module and verifies success.
// Run with hyperfine for accurate timing.
~import std/koru
~import std/io
const std = @import("std");
// Realistic Koru module (~50 lines, multiple events, nested flows)
const SAMPLE =
\\// User authentication module
\\const std = @import("std");
\\
\\~tor authenticate { username: string, password: string }
\\| authenticated { user_id: u64, token: []const u8 }
\\| invalid_credentials []const u8
\\| account-locked u64
\\
\\~tor validate_token { token: string }
\\| valid { user_id: u64, expires: u64 }
\\| expired u64
\\| invalid
\\
\\~tor refresh_token { token: string }
\\| refreshed { new_token: []const u8, expires: u64 }
\\| denied []const u8
\\
\\~tor get-user { user_id: u64 }
\\| found { name: []const u8, email: []const u8, role: []const u8 }
\\| not-found
\\
\\~tor check_permission { user_id: u64, resource: string, action: string }
\\| allowed
\\| denied []const u8
\\
\\~tor log_access { user_id: u64, resource: string, action: string, allowed: bool }
\\| logged
\\
\\// Main authentication flow
\\~authenticate(username: "admin", password: "secret")
\\| authenticated a |> get-user(a.user_id)
\\ | found u |> check_permission(a.user_id, resource: "/api/data", action: "read")
\\ | allowed |> log_access(a.user_id, resource: "/api/data", action: "read", allowed: true)
\\ | logged |> respond_ok(a.token)
\\ | denied d |> log_access(a.user_id, resource: "/api/data", action: "read", allowed: false)
\\ | logged |> respond_forbidden(d.reason)
\\ | not-found |> respond_error(code: 404, message: "User not found")
\\| invalid_credentials i |> respond_error(code: 401, message: i.reason)
\\| account-locked l |> respond_error(code: 423, message: "Account locked")
;
// Parse and verify success
~std/koru:parse.source(source: SAMPLE, file_name: "auth.kz", allocator: std.heap.page_allocator)
| parsed p |> std/io:print.ln("OK {{p.source_file.items.len:d}} items")
| parse-error e |> std/io:print.ln("FAIL {{e:s}}")
Flows
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: SAMPLE, file_name: "auth.kz", allocator: std.heap.page_allocator)
Test Configuration
MUST_RUN