summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 15:02:36 -0300
committerGabriel Schneider <[email protected]>2026-11-20 19:20:33 -0300
commit1ca52fc338c4a862a50254420ecd60428dd32a6e (patch)
treec7ea21d4a5fc7558dc59118902055ffccae5571a /build
parente3d0daa9f89f41b41b7d05d510db553cbd8816d9 (diff)
downloadpardes-1ca52fc338c4a862a50254420ecd60428dd32a6e.tar.gz
pardes-1ca52fc338c4a862a50254420ecd60428dd32a6e.zip
build: the step lib-test is consumer-test (P37, ruled with the names): the step, its name and its two variables in build/tools.zig (lib_test, lib_test_step -> consumer_test, consumer_test_step; the description already says it builds the library from a package that depends on pardes) and the one reader in build/tests.zig, and where it is named: build.zig's head comment, test/consumer/build.zig's, docs/typ/building.typ (the paragraph and the steps' table) and the Unreleased entry of core/CHANGELOG.md that introduced the step (rewrapped); the scripts under .scratch that name it are listed in reports/pardes-slots.md for the coordinator; `zig build consumer-test -Dplatform=tui` builds and tests test/consumer; gate on the stack through this change and the docking vocabulary (load 4-32): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144 (tty boot: msg failed once at load 32 and passed alone), replicas --clients 5 and --bytes --clients 5: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak; the semantics word a73794ff9e03f814 as on merge40; daemon.py --far, --games, --window-clients pass, plain fails 2 of 4 at "client C agrees with a shell's output" (a timeout), as merge40's build does 3 of 6; the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x +0.054% (noise 0.054%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,720 and render on medium 11,454,636, merge40's gate 10,039,703 and 11,454,619)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build')
-rw-r--r--build/tests.zig2
-rw-r--r--build/tools.zig16
2 files changed, 9 insertions, 9 deletions
diff --git a/build/tests.zig b/build/tests.zig
index 741eb24a..e0b33911 100644
--- a/build/tests.zig
+++ b/build/tests.zig
@@ -62,7 +62,7 @@ pub fn add(b: *std.Build, c: struct {
// The perf gate runs with every unit-test (a regression like a
// contrast search per grapheme costs 100x, far past the gate).
unit_step.dependOn(c.tools.perf_gate_step);
- unit_step.dependOn(c.tools.lib_test_step);
+ unit_step.dependOn(c.tools.consumer_test_step);
const units: Units = .{ .nonce = c.test_nonce, .build = c.test_build, .unit = unit_step, .match = testMatch(b, c.unit_profile, c.test_filters, unit_step), .profiler = c.unit_profile, .filters = c.test_filters, .target = c.target, .optimize = c.optimize };
// The perf and fs bench programs' own tests: they compile no editor.
_ = units.add(b, units.root(b, "test/perf.zig", true, &.{.{ .name = "perf_options", .module = c.tools.perf_options.createModule() }}), null);
diff --git a/build/tools.zig b/build/tools.zig
index a4b41dd7..da77958a 100644
--- a/build/tools.zig
+++ b/build/tools.zig
@@ -16,7 +16,7 @@ pub const Tools = struct {
perf_gate_step: *std.Build.Step,
/// The perf program's build identity, which its own tests read too.
perf_options: *std.Build.Step.Options,
- lib_test_step: *std.Build.Step,
+ consumer_test_step: *std.Build.Step,
};
/// The harnesses, the helix comparisons, the benches and the perf gate, the
@@ -252,12 +252,12 @@ pub fn add(b: *std.Build, c: struct {
// The library as a package that depends on pardes is given it
// (`library`): test/consumer's own `zig build test`, over the packages
// this checkout has fetched.
- const lib_test = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test", "--pkg-dir", "../../zig-pkg" });
- lib_test.setName("zig build test in test/consumer, a package that depends on pardes");
- lib_test.setCwd(b.path("test/consumer"));
- lib_test.has_side_effects = true;
- const lib_test_step = b.step("lib-test", "build and test the library from a package that depends on pardes (test/consumer)");
- lib_test_step.dependOn(&lib_test.step);
+ const consumer_test = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test", "--pkg-dir", "../../zig-pkg" });
+ consumer_test.setName("zig build test in test/consumer, a package that depends on pardes");
+ consumer_test.setCwd(b.path("test/consumer"));
+ consumer_test.has_side_effects = true;
+ const consumer_test_step = b.step("consumer-test", "build and test the library from a package that depends on pardes (test/consumer)");
+ consumer_test_step.dependOn(&consumer_test.step);
const history = b.addExecutable(.{
.name = "pardes-history",
@@ -271,7 +271,7 @@ pub fn add(b: *std.Build, c: struct {
run_history.addPassthruArgs();
run_history.has_side_effects = true;
b.step("history", "compare command output and test/build runtime across jj revisions").dependOn(&run_history.step);
- return .{ .perf_gate_step = perf_gate_step, .perf_options = perf_options, .lib_test_step = lib_test_step };
+ return .{ .perf_gate_step = perf_gate_step, .perf_options = perf_options, .consumer_test_step = consumer_test_step };
}
/// The PDF benches: the core over the pdf addon, a pane of it.