J83: stabilize Rust tests under VM load #299
Closed
opened 2026-11-02 00:08:52 +00:00 by kayg
·
15 comments
No Branch/Tag specified
main
j444b-d381-key-wins-flood
j470b-server-mesh-rejoin
mesh-compat-382
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#299
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
J83: make the five reported Rust test failures deterministic under VM load without masking defects.
Plan (estimate: 3 hours, stop and report if exceeding 6 hours):
Initial queues: dev-02 has 1/3 slots occupied and 68G free; compute01 has 3/4 occupied and 115G free. Use dev-02 unless queues change before launch. All heavy commands use build-slot; no builds on the control host. No new dependencies, foundational choices, merge or deploy.
started: branch test-stability-load, base
ffebd0561(origin/dev), worktree /home/kayg/Developer/Worktrees/infraternal-j83. plan and 3-hour estimate are in the issue body. initial VM queues checked; reproductions will use dev-02 and one target at /home/claude/worktrees/j83/target.finding: status_exits_5_when_something_that_should_run_is_down fails 20/20 under the existing six-worker / three-core load when DBUS_SESSION_BUS_ADDRESS points at an unavailable Unix socket and XDG_RUNTIME_DIR is private/unavailable. Each failure is expected exit 5 versus actual 0 (Unknown is deliberately not confirmed-down). Evidence: dev-02 ~/.cache/codex-scratch/j83/status-private-bus/{1..20}.log. The original loaded sweep passed status 20/20 with the live host manager, proving host-state dependence. Fix will isolate environment/system-unit discovery and provide an immutable inactive service-manager fixture, retaining production deadlines and Unknown semantics.
status fix validated under the same load: unavailable inherited bus before 20/20 failures, after 0/20. All 8 cli_envelope tests PASS; cargo fmt --all --check PASS; targeted cargo clippy --locked -p infraternal --test cli_envelope -- -D warnings PASS. Receipt: dev-02 ~/.cache/codex-scratch/j83/status-check2.log plus status-private-bus-after/*.log. Separate atomic status commit created. Restart exact test and full 18-test restart suite both passed their baseline load loops 20/20; no deadline changes are justified by those observations. Daemon sweep remains active; it will be waited through completion.
finding: added a controlled real-kernel ETXTBSY regression to ssh_askpass. It holds an executable writer open until the initial exec future is polled, then releases it. With the current direct Command::output path it fails 20/20 while the CPU-load workers are active. This demonstrates the transient writer/exec ordering without a timing sleep. Receipt: dev-02 ~/.cache/codex-scratch/j83/askpass-red/{1..20}.log. The ordinary askpass load loop was 0/20 failures; these counts will be distinguished in the final report. Fix is test-only retry of ETXTBSY; other spawn/auth/protocol failures remain fatal.
askpass fix validated: controlled writable-fd/exec race before 20/20 failures, after 0/20 under load. The complete ssh_askpass binary passes 20/20 loaded runs (5 passed, 1 pre-existing ignored controlling-terminal test per run). Unrelated NotFound spawn errors are preserved and existing private-pipe authentication/refusal assertions remain. cargo fmt --all --check and targeted clippy PASS. Receipts: dev-02 ~/.cache/codex-scratch/j83/askpass-check.log and askpass-green/*.log. Separate atomic ETXTBSY commit created; no production code or deadlines changed.
baseline loaded sweep finished: restart exact 0/20 failures; full restart unit suite additionally 0/20; agent_daemon (the sole 24-abrupt-stop test) 0/20; ordinary ssh_askpass 0/20; live-host status 0/20. Controlled regressions separately demonstrated status unavailable-bus 20/20 and ETXTBSY held-writer 20/20, both now 0/20. Final head candidate
2691f69f13. scripts/verify fast is running on this head in dev-02 with six CPU workers and command affinity 0-2; a full 20-run after sweep is also running. No timeout failure reproduced yet, so no production or test deadline has been widened. Logs/one target remain /home/claude/worktrees/j83/target and ~/.cache/codex-scratch/j83/.checkpoint: pushed only test-stability-load at
2691f69f13to preserve the two validated atomic changes while the final loaded gate runs. This is not a completion claim. No merge or deploy. Baseline sweep is complete; final after sweep and scripts/verify fast are being blocked on in this same turn. Targets: dev-02 /home/claude/worktrees/j83/target (one directory); receipts ~/.cache/codex-scratch/j83/.additional finding: the default-restart test executes a 410 MiB debug unit image and retains two sealed copies. A private systemd scope capped at 512 MiB (no swap), with the existing CPU load, kills the exact test with exit 137. This is a controlled resource-pressure reproduction, distinct from the reported timeout. A 20-run before loop is queued through build-slot. I stopped the superseded first fast-gate process tree by its owned PIDs before editing this fixture; its interrupted log is retained, not counted as a gate pass. Proposed narrow repair: reuse the existing stripped_test_image fixture for this exact test, preserving the real receiver/default-target path, one-open assertion and all production limits.
checkpoint: pushed
2691f69f13. controlled host-bus failure: 20/20 before, 0/20 after; controlled open-writer ETXTBSY: 20/20 before, 0/20 after. ordinary CPU-load baseline: all four suites 0/20. after sweep is still running, daemon iteration 10 passed, other suites complete. restart memory probe at 512 MiB exits 137 because the 410 MiB debug image is retained twice; the 20-run confirmation is queued. preparing reuse of existing stripped-test-image fixture, keeping production and test deadlines unchanged. first gate stopped before tests to avoid compiling superseded test fixtures; will rerun full gate on final head. VM target retained for active job: /home/claude/worktrees/j83/target. logs: /home/claude/.cache/codex-scratch/j83.restart resource reproduction is confirmed: 20/20 OOM kills (exit 137) before, 0/20 failures after in private MemoryMax=512M/MemorySwapMax=0 scopes, concurrent with CPU load. Existing stripped executable cache reused through a child running the same exact test; cold cache creation passed too. Production admission and all deadlines unchanged. Third atomic commit pushed:
0b0d9690a0. fmt, targeted clippy, and 20 resource loops pass; full restart-suite repetitions and ordinary daemon after sweep still active. Final verify fast under six CPU burners is queued on dev02 (both VMs checked, compute01 full). This memory reproduction does not establish the cause of the historical restart timeout.owner direction: no raw daemon-timeout traceback survives; j82-gate.log retains only ssh_askpass ETXTBSY, and j82-gate2.log has no Rust failures. Stop investigating the unreproduced daemon timeout. Recorded evidence: agent_daemon::real_binary_preserves_input_and_output_across_24_abrupt_stops completed 20 baseline + 20 follow-up runs with 0/40 failures on dev02, six Python CPU burners, all test/load processes pinned to CPUs 0–2, four named test suites swept concurrently. Follow-up daemon runs also overlapped the restart resource/full-suite loops and initial gate work. Per-run logs and durations are in j83/before/agent_daemon-* and j83/after/agent_daemon-*; no daemon deadline or implementation changed. The two reported daemon labels identify this single test. Full final gate continues on head
0b0d9690a.all J83 reproduction/repetition runs are finished. ordinary CPU-load sweeps: restart 0/20 before and 0/20 follow-up, agent_daemon 0/20 before and 0/20 after, askpass natural suite 0/20 before/after, status live-host 0/20 before/after. controlled cases: inactive-manager/absent user bus status 20/20 failures before -> 0/20 after; held-writer ETXTBSY regression 20/20 -> 0/20; default restart private 512 MiB scope 20/20 OOM -> 0/20 after stripping. Full restart suite: 20/20 passing before and after (same 18 tests). Gate remains active on final head. Precise affinity note: the sweep harness and burners were pinned to CPUs 0–2; systemd-created shim scopes retain the existing fixture CPU-weight propagation. Final gate runs with six burners over host CPUs 0–9 and CARGO_BUILD_JOBS=3.
final-gate checkpoint on pushed head
0b0d9690a0: workspace test row PASS under six CPU burners (789 s), all named cases PASS inside that row; shim process-per-user, inode reuse, cargo-deny and architecture checks PASS. Static x86 build passed trust/linkage checks: 21,733,296 bytes, +289,472 against the gate retained baseline. arm64 static build active, then TS. Actual slice delta vsffebd0561will be measured after the gate. Reclaimed completed native test executables and inactive incremental cache from our target only; enough disk remains. Source/branch clean; no new commit needed. Small units correction: third commit message says 429 MiB; measured source image is 429,155,136 bytes (about 409 MiB), stripped 53,151,784 bytes. The exact byte counts in evidence are authoritative.J83 finish. Branch
test-stability-load, head0b0d9690a047d390dea378bc6b7a7ec9ffba0aa8, baseffebd0561a010690583481abc4d583ecaca4542e. Three atomic commits, pushed. No production code changed.Failures out of 20 under load:
Ordinary sweeps ran on dev02 with six CPU burners, the harness pinned to CPUs 0–2, and four suites swept concurrently. Existing managed-shim CPU-weight propagation remained. Restart memory scopes used MemoryMax=512M, MemorySwapMax=0, taskset 0–2 and nice 10, overlapping CPU load; the after loop also owned six burners. The first after run includes cold stripped-cache creation. Raw per-run logs, counts, commands and conditions are attached.
The historical restart timeout did not reproduce; the memory-pressure finding is an OOM reproduction, not proof of that timeout's cause. The historical daemon timeout did not reproduce in 40 loaded runs, and the daemon passed the final gate as well. The owner confirmed no raw daemon traceback survives and directed J83 to stop investigating it. No daemon change was made.
Final
scripts/verify fastran on this head through build-slot on dev02, CARGO_BUILD_JOBS=3, nice 10, six active CPU burners over CPUs 0–9. Complete output attached; summaries verbatim:Static slice measurement against the actual base revision, using the same target and toolchain: x86_64 21,733,296 bytes, aarch64 19,857,608 bytes, +0 bytes each, byte-identical SHA-256. The gate's retained historical baselines report +289,472 and +228,368 bytes respectively; those are already present at the base. Native x86 runtime probes report the gate's expected SKIP on the arm64 host.
Cleanup complete: all runs finished, final load workers exited,
/home/claude/worktrees/j83/targetdeleted, source clean, VM checkout restored to this head. Evidence retained outside the checkout at/home/claude/.cache/codex-scratch/j83and on the control host at/home/kayg/.cache/codex-scratch/j83/evidence. No blocker or owner decision remains for this slice. Issue left open for review.J210 owner-authorized housekeeping: closing this completed scope because its work is merged on dev in 3f31e8cd3. Verified the merge commit is an ancestor of current origin/dev. The implementation reports and evidence remain in this issue.