summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:51:04 -0300
committerGabriel Schneider <[email protected]>2026-11-05 09:54:56 -0300
commit370b428a871b8b9e2d860a242eff8a18da4f5574 (patch)
tree08f46180d5c48e7546a44c671714b8507297726f /build.zig
parent67beb493ea18de9d7b0083ba20b34b8bb34fd74c (diff)
downloadpardes-370b428a871b8b9e2d860a242eff8a18da4f5574.tar.gz
pardes-370b428a871b8b9e2d860a242eff8a18da4f5574.zip
build: four steps nobody runs go (lspbench-check, which is `zig build lspbench -- --check`; syntax-bench, which is `zig build syntax -- --bench`, the syntax step rerun each time now; unit-profile; history-test, test/history.zig's tests still run by unit-test)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig27
1 files changed, 2 insertions, 25 deletions
diff --git a/build.zig b/build.zig
index ebbffaf8..fd3c76f1 100644
--- a/build.zig
+++ b/build.zig
@@ -1482,13 +1482,6 @@ pub fn build(b: *std.Build) void {
run_lspbench.has_side_effects = true;
const lspbench_step = b.step("lspbench", "language-backend latency + feature matrix (-- [--json] [--check] [repo-root]), or one query (-- probe <kind> <file> <line>:<col> [arg] [--reps N])");
lspbench_step.dependOn(&run_lspbench.step);
- const run_lspbench_check = b.addRunArtifact(lspbench);
- run_lspbench_check.addArg("--check");
- run_lspbench_check.addPassthruArgs();
- run_lspbench_check.setCwd(b.path("."));
- run_lspbench_check.has_side_effects = true;
- const lspbench_check_step = b.step("lspbench-check", "require every configured language probe to complete correctly");
- lspbench_check_step.dependOn(&run_lspbench_check.step);
const rollback_bench = b.addExecutable(.{
.name = "pardes-rollback-bench",
@@ -1644,12 +1637,8 @@ pub fn build(b: *std.Build) void {
syntax_runner.root_module.addImport("syntax", syntax_module);
const run_syntax = b.addRunArtifact(syntax_runner);
run_syntax.addPassthruArgs();
- b.step("syntax", "emit deterministic syntax snapshots").dependOn(&run_syntax.step);
- const run_syntax_bench = b.addRunArtifact(syntax_runner);
- run_syntax_bench.addArg("--bench");
- run_syntax_bench.addPassthruArgs();
- run_syntax_bench.has_side_effects = true;
- b.step("syntax-bench", "measure highlighting latency and allocations").dependOn(&run_syntax_bench.step);
+ run_syntax.has_side_effects = true;
+ b.step("syntax", "emit deterministic syntax snapshots (-- --bench: highlighting latency and allocations)").dependOn(&run_syntax.step);
const syntax_test = b.addTest(.{
.root_module = syntax_module,
.filters = if (test_filters.len == 0) &.{"syntax "} else test_filters,
@@ -1703,7 +1692,6 @@ pub fn build(b: *std.Build) void {
run_lspbench_tests.has_side_effects = true;
const lspbench_test_step = b.step("lspbench-test", "test language benchmark completeness and correctness gates");
lspbench_test_step.dependOn(&run_lspbench_tests.step);
- lspbench_check_step.dependOn(&run_lspbench_tests.step);
if (testMatch(b, unit_profile, test_filters, lspbench_test_step)) |check| check.addArtifactArg(lspbench_tests);
const diff_tests = b.addTest(.{ .root_module = hxdiff.root_module, .filters = test_filters });
const run_diff_tests = b.addRunArtifact(diff_tests);
@@ -1846,9 +1834,7 @@ pub fn build(b: *std.Build) void {
b.step("fs-unit-test", "run filesystem unit tests").dependOn(&b.addRunArtifact(fs_tests).step);
const protocol_step = b.step("9p-test", "run freestanding 9P protocol tests");
- const history_step = b.step("history-test", "test historical comparisons and regression gates");
const protocol_match = testMatch(b, unit_profile, test_filters, protocol_step);
- const history_match = testMatch(b, unit_profile, test_filters, history_step);
for ([_]struct { path: []const u8, libc: bool, optimize: ?std.builtin.OptimizeMode = null }{
.{ .path = "test/history.zig", .libc = false },
.{ .path = "src/9p.zig", .libc = false },
@@ -1879,10 +1865,6 @@ pub fn build(b: *std.Build) void {
protocol_step.dependOn(&run_tests.step);
if (protocol_match) |check| check.addArtifactArg(tests);
}
- if (std.mem.eql(u8, entry.path, "test/history.zig")) {
- history_step.dependOn(&run_tests.step);
- if (history_match) |check| check.addArtifactArg(tests);
- }
}
const deck_module = b.createModule(.{
@@ -1914,11 +1896,6 @@ pub fn build(b: *std.Build) void {
// The native shell's tests alone, without the perf gate's
// ReleaseFast build: what a -Dtest-filter iteration wants.
b.step("shell-test", "run the native shell's unit tests (src/main.zig's)").dependOn(&run_shell_test.step);
- const run_profile = b.addRunArtifact(unit_profile);
- run_profile.addArtifactArg(shell_test);
- run_profile.addPassthruArgs();
- run_profile.has_side_effects = true;
- b.step("unit-profile", "report test request time and process memory as JSONL (-- optional filter, --timeout-ms=N)").dependOn(&run_profile.step);
const profile_test = b.addExecutable(.{
.name = "pardes-unit-profile-test",
.root_module = b.createModule(.{