diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 18:29:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 19:13:20 -0300 |
| commit | 6174a6fe323ecc57fca72282d0c97d24516f4325 (patch) | |
| tree | 0dff7685968669ab1b108fa9b3c4e60e4ac49c60 /build | |
| parent | 41f665c986886790e474bef78928f4b0d3b05c21 (diff) | |
| parent | 28921f1f793938b2d40a1a8fee43d3b1b0f7c4d2 (diff) | |
| download | pardes-6174a6fe323ecc57fca72282d0c97d24516f4325.tar.gz pardes-6174a6fe323ecc57fca72282d0c97d24516f4325.zip | |
integration: the client path's round 5 (the soak with addons, a session clock and Detach; a replica joined from a dump announcing no panes; a digest compared only where one is due; a window client's size posted once) with the Shadow path deleted: one conflict, Kind.zig's Slot.free (the used list freed with the slot's allocator, and no shadow to free); on Zig 0.17.1: replicas with five clients and addons loaded: diverged 0, unequal 0, deltas checked/wrong 1807/0, 2085/0, 1912/0, quiet checks 436/0, 593/0, 738/0, digests compared in 849 of 14549, 958 of 14517 and 1060 of 15638 units; tui core-test 820/961 (141 skipped), shell-test 996/999, behaviour-test 274/274 and its replay 20 seeds with 0 failures, pane-test 183/184; gui frame corpus 77/77 Debug and ReleaseFast against mbase171, unit-test 1593/1597, the tui build has no SDL symbol, the perf window +0.180% (reported: spread 0.81%); known open: a PDF pane makes clients diverge when another client presses a key in it (the soak opens none)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build')
| -rw-r--r-- | build/tests.zig | 12 | ||||
| -rw-r--r-- | build/tools.zig | 6 |
2 files changed, 12 insertions, 6 deletions
diff --git a/build/tests.zig b/build/tests.zig index 6ed97299..ff206438 100644 --- a/build/tests.zig +++ b/build/tests.zig @@ -135,6 +135,18 @@ pub fn add(b: *std.Build, c: struct { const liar_mod = b.createModule(.{ .root_source_file = b.path("test/liar.zig"), .target = c.target, .optimize = c.optimize, .imports = &.{.{ .name = "addon", .module = c.addon_mod }} }); const liar_lib = b.addLibrary(.{ .name = "liar", .linkage = .dynamic, .root_module = liar_mod }); for ([_]*std.Build.Step.Compile{ snake_lib, life_lib, liar_lib }) |lib| addon_test_step.dependOn(&b.addInstallArtifact(lib, .{}).step); + // The replicas' soak, its clients showing a picture and a game of life + // from these libraries, as a user's addons are loaded (the PDF's too, + // whose pane it does not open: round 5's report). + const replicas = program(b, "pardes-replicas", "test/replicas.zig", c.target, c.optimize, &.{ .{ .name = "pardes", .module = c.core_module }, .{ .name = "term", .module = c.parts.term } }); + const run_replicas = b.addRunArtifact(replicas); + for ([_]?*std.Build.Step.Compile{ c.image_addon, life_lib, c.pdf_addon }) |l| if (l) |lib| { + run_replicas.addArg("--addon"); + run_replicas.addArtifactArg(lib); + }; + run_replicas.addPassthruArgs(); + run_replicas.has_side_effects = true; + b.step("replicas", "one authority and several replicas in process, each client typing over a delayed link: digests at quiescence, rollback rate and costs per RTT (-- [--seeds N] [--steps M] [--clients C] [--rtt 30,80,207])").dependOn(&run_replicas.step); for ([_]*std.Build.Module{ snake_mod, life_mod, liar_mod, c.parts.image }) |m| addon_test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = m })).step); // ...and the pdf addon's, which mupdf-check runs too (its script // opens docs/design.pdf, from the build root). diff --git a/build/tools.zig b/build/tools.zig index bcf073ef..9b18019b 100644 --- a/build/tools.zig +++ b/build/tools.zig @@ -162,12 +162,6 @@ pub fn add(b: *std.Build, c: struct { run_rollback_bench.has_side_effects = true; b.step("rollback-bench", "a replica's rollback copy (walked state, pinned blobs, walk time) for a typical and a big session, and a fork of the big one (-Doptimize=ReleaseFast)").dependOn(&run_rollback_bench.step); - const replicas = program(b, "pardes-replicas", "test/replicas.zig", c.target, c.optimize, &.{ .{ .name = "pardes", .module = c.core_module }, .{ .name = "term", .module = c.parts.term } }); - const run_replicas = b.addRunArtifact(replicas); - run_replicas.addPassthruArgs(); - run_replicas.has_side_effects = true; - b.step("replicas", "one authority and several replicas in process, each client typing over a delayed link: digests at quiescence, rollback rate and costs per RTT (-- [--seeds N] [--steps M] [--clients C] [--rtt 30,80,207])").dependOn(&run_replicas.step); - const locations_bench_step = b.step("locations-bench", "measure cold/warm result formatting (-Doptimize=ReleaseFast; CSV on stderr)"); if (c.optimize != .fast) { locations_bench_step.dependOn(&b.addFail("locations-bench requires -Doptimize=ReleaseFast").step); |
