Skip to content

Commit e1e0666

Browse files
committed
test: narrow PTY fleet observation contract
1 parent 02c324b commit e1e0666

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

flake.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
66
flake-utils.url = "github:numtide/flake-utils";
7-
# Runtime compatibility gate: reviewed coherent lifecycle baseline containing the
8-
# ambiguity-safe PID read, EPERM handling, and single fleet-wide socket fallback budget.
7+
# Packaged PTY fleet-observation gate: the exact `pty list --json` producer revision with
8+
# ambiguity-safe PID reads, EPERM handling, and one fleet-wide socket fallback budget.
99
pty.url = "github:compoundingtech/pty/afeb3b6234b7010b7db802fd029766ad17c14219";
1010
pty.inputs.nixpkgs.follows = "nixpkgs";
1111
};
@@ -171,7 +171,7 @@
171171

172172
# Real producer-consumer contract: st2 consumes `pty list --json` from the exact pty
173173
# revision that owns fleet observation. Fake CLI fixtures below still cover malformed
174-
# output and a wedged child; this check proves the healthy 0/75/100/500-seat path crosses
174+
# output and a wedged child; this check proves the healthy 0/75/100/500-session path crosses
175175
# both packaged binaries within st2's short outer deadline.
176176
checks.pty-fleet-contract = pkgs.runCommand "st2-pty-fleet-contract-${version}" {
177177
nativeBuildInputs = [
@@ -203,9 +203,9 @@
203203
root=$(mktemp -d)
204204
i=0
205205
while test "$i" -lt "$fleet_size"; do
206-
seat=$(printf 'seat-%03d' "$i")
207-
: > "$root/$seat.sock"
208-
printf '%s\n' "$$" > "$root/$seat.pid"
206+
session=$(printf 'session-%03d' "$i")
207+
: > "$root/$session.sock"
208+
printf '%s\n' "$$" > "$root/$session.pid"
209209
i=$((i + 1))
210210
done
211211

0 commit comments

Comments
 (0)