Skip to content

fix(test): accepted-sync worker-environment tests time out on loaded hosts while polling apply markers - #162573

Merged
steipete merged 1 commit into
mainfrom
steipete/poll-gateway
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/poll-gateway

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the accepted-sync worker-environment tests fail on a loaded host when the apply child takes longer than 10 s to start, because they poll an apply-started marker file and race the child's close against a fixed timer.

User Impact

No user-visible change. src/gateway/worker-environments/workspace-accepted-sync.test.ts stops failing spuriously on slow machines; a missing apply start now fails at the owning step or the Vitest test timeout.

Why This Change Was Made

Part of the polling audit from #162274. The apply child now announces readiness on a stderr line written after it opens the FIFO (so an immediate release cannot lose the gate bytes), the test owns the FIFO writer, child close is retained as a promise that also terminates the child on test abort, and a fixture lifetime joins cleanup before temp directories are removed. Six waits convert. The five receiver-fixture waits in the same file are left unchanged on purpose: the product starts the receiver in its own detached process group (workspace-mutation-remote-script.ts) with no owned join the test can await, so converting them needs a product-side ownership change (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Release-note context: test-only change, no user-visible behavior change.

Per-site conversions

Category numbers follow the work order. Old line numbers are its census identifiers.

File / original line Old wait / deadline Final signal or disposition Category Class Justification
src/gateway/worker-environments/workspace-accepted-sync.test.ts:226 waitForChildClose / 10,000 ms STOP; original preserved — A Product owns nested detached receiver; outer rsync close lacks a portable owned abort/join path before readiness.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:232 waitForFile(receiverMarker) / 10,000 ms STOP; original preserved — A Same receiver lifecycle boundary; no custom cancellation protocol added.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:259 waitForFile(applyMarker) / 10,000 ms STOP; original preserved — A Same fixture restored as one coherent unit rather than partially changing its cancellation lifecycle.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:269 waitForDead(receiverPid) / 10,000 ms STOP; original preserved — B Receiver leader belongs to product-owned detached group, beyond outer rsync's portable termination owner.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:293 waitForChildClose cleanup / 1,000 ms STOP; original preserved — B Retains original cleanup path with the rest of the restored receiver fixture.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:377 waitForChildClose apply / 10,000 ms Durable ChildProcess close captured at spawn 1 A Direct child is test-owned; same close promise serves success and finally cleanup.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:382 waitForFile(applyMarker) / 10,000 ms Synchronous readiness line on owned stderr 2 A Preload opens FIFO reader and emits readiness after the actual backup rename, before blocking read.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:428 waitForFile(applyMarker) / 10,000 ms Existing settleStarted deferred, raced against publication 1 A Apply callback returns SSH-loss status only after readiness. Product invokes settle after awaiting apply: src/gateway/worker-environments/workspace-accepted-sync.ts:244 and :257.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:563 waitForChildClose apply / 10,000 ms Durable ChildProcess close captured at spawn 1 A Same direct-child close owner.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:568 waitForFile(applyMarker) / 10,000 ms Synchronous readiness line on owned stderr 2 A Same reader-open → readiness → FIFO-read ordering.
src/gateway/worker-environments/workspace-accepted-sync.test.ts:638 waitForChildClose cleanup / 1,000 ms Reuse captured close promise 1 B The observer retains SIGTERM-on-abort until close; finally releases the FIFO and joins that original close promise.

The receiver fixture is byte-identical to the b512f38 base. Product settlement follows the apply callback result, which follows readiness. Converted waits use the existing gate and test-signal helpers.

Stops, residuals, and deliberately unconverted sites

The exact full-status census reached its 120-second cap. Bounded, path-scoped status censuses then checked all registered worktrees, including another check immediately before applying changes. Counts varied from 346 to 356 as other lanes created/removed worktrees. Stale registrations with missing directories returned 128; existing-worktree conflicts below were preserved.

  • S1: /Users/steipete/Projects/openclaw/.claude/worktrees/openclaw-ci-status-5bd23e — scheduler and projects modified.
  • S2: /Users/steipete/.codex/worktrees/heartbeat-integration-c0cb2d87/openclaw — projects unmerged; tunnel modified.
  • S3: /Users/steipete/Projects/openclaw/.claude/worktrees/poll-scripts-1a — mutation and manifest staged deletions.
  • S4: /Users/steipete/Projects/openclaw/.claude/worktrees/poll-scripts-2a — mutation and manifest staged deletions.
  • S5: /Users/steipete/Projects/openclaw/.claude/worktrees/poll-infra-cli — hooks mapping and inventory staged deletions plus untracked replacements.
File:old-line Old helper Deadline New category Class Reason
src/gateway/gateway-cron-scheduler.live.test.ts:392 waitForPidFile(first payload) 30000 ms — B S1: uncommitted modification
src/gateway/gateway-cron-scheduler.live.test.ts:398 waitForPidFile(replacement watcher) 30000 ms — B S1: uncommitted modification
src/gateway/gateway-cron-scheduler.live.test.ts:399 waitForDead(replacement watcher) 10000 ms — B S1: uncommitted modification
src/gateway/gateway-cron-scheduler.live.test.ts:413 waitForPidFile(second payload) 30000 ms — B S1: uncommitted modification
src/gateway/gateway-cron-scheduler.live.test.ts:414 firstPid waitForDead(first payload) 10000 ms — C S1: uncommitted modification
src/gateway/gateway-cron-scheduler.live.test.ts:414 secondPid waitForDead(second payload) 10000 ms — B S1: uncommitted modification
src/gateway/server.sessions.create.projects.test.ts:508 waitForFile(first setup) 15000 ms — B S1/S2: modified/unmerged
src/gateway/server.sessions.create.projects.test.ts:532 waitForFile(replacement setup) 15000 ms — B S1/S2: modified/unmerged
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:26 waitForChildClose 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:128 waitForFile(receiverMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:136 waitForDead(receiverPid) 10000 ms — B S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:154 waitForFile(contenderMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:286 waitForFile(releaseMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:293 waitForDead(owner.receiverPid) 10000 ms — C S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:321 waitForFile(contenderMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-mutation-remote-script.test.ts:359 waitForDead(receiverPid).catch 1000 ms — C S3/S4: staged deletion
src/gateway/worker-environments/workspace-sync-manifest.test.ts:29 waitForChildClose 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-sync-manifest.test.ts:399 waitForFile(applyMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-sync-manifest.test.ts:421 waitForFile(contenderMarker) 10000 ms — A S3/S4: staged deletion
src/gateway/worker-environments/workspace-sync-tunnel.test.ts:458 waitForChildClose(receiver controller) 10000 ms — A S2: uncommitted modification
src/gateway/worker-environments/workspace-sync-tunnel.test.ts:460 waitForPidFile(receiver group) 10000 ms — A S2: uncommitted modification
src/gateway/hooks-mapping.test.ts:901 waitForFile(old-started) 5000 ms — C S5: staged deletion + untracked replacement
src/gateway/worker-environments/workspace-sync-inventory.test.ts:292 waitForFile(ready) 5000 ms — A S5: staged deletion + untracked replacement

Lifecycle STOP (the five receiver rows in the per-site table): the early-abort probe blocked the controller before receiver spawn. FIFO release left it alive (SYNC_EARLY_RESCUE_REQUIRED); probe-owned SIGKILL then rescued/reaped it. This is failure evidence, not cleanup proof. The product starts a separate detached group (src/gateway/worker-environments/workspace-mutation-remote-script.ts:57). Existing attached-tree termination is Linux-only (packages/agent-core/src/harness/env/kill-tree.ts:62); detaching outer rsync would not own that separate group. Rsync cleanup uses SIGUSR1, which Node reserves for debugger startup. A portable replacement needs additional cancellation ownership or fixture restructuring. Per the escape hatch, the receiver fixture was restored exactly. Evidence: early-abort.log; tbx_01m3v75bh3vs9pgn8vsbnd99sg; run 36832810327.

No prepared scratch proposals for skipped files were applied or counted as proof. The pre-edit census for the final accepted-sync repair found only this lane's own modification.

Evidence

All proof ran on Blacksmith Testbox through node scripts/crabbox-wrapper.mjs one-shot runs; no local Vitest.

Proof (from the lane report)

All Vitest/typecheck execution used one-shot Blacksmith Testbox wrappers. No local Vitest or local pnpm install, browser automation, GitHub PR/comment, push, or shared-dependency modification. The remote wrapper performed its standard dependency preparation.

Final Testbox: tbx_01m3v9fdvyk4bpsfmdt4ftat23, provider blacksmith-testbox, run 36836922087. Wrapper exit 0; one-shot box stopped. Full user command took 971.934s; wrapper total 977.924s.

  • Original standalone: 16/16 cases passed, 19.725s wall.
  • Fixed ordinary smoke: 16/16 passed, 16.829s wall.
  • Class-A representative: identical temporary 11,000 ms delay after backup rename and before readiness, applied to original and fixed bytes. Original failed its old 10,000 ms file deadline with timeout waiting for .../apply-started; fixed passed 1/1 selected case. Walls 27.821s and 28.863s. Probe cleanup: original SYNC_DELAY_CLEAN 1, fixed SYNC_DELAY_CLEAN 0.
  • Forced abort, child readiness: explicit 5,000 ms timeout, withheld readiness. Expected timeout plus SYNC_ABORT_FINALLY line and SYNC_ABORT_CLEAN line; direct child PID dead after retained close join.
  • Forced abort, settlement callback: explicit 5,000 ms timeout, withheld callback deferred. Expected timeout plus SYNC_ABORT_FINALLY callback and SYNC_ABORT_CLEAN callback; direct apply PID confirmed dead after its close and publication joins. Both final abort patterns target the SSH-loss fixture; earlier receiver-callback proof is not counted.
  • Forced abort arriving during cleanup: finally first recorded aborted:false; the later timeout caused source-owned SIGTERM, retained close joined, and SYNC_LATE_CLEAN owned confirmed no rescue and a dead child.
  • Final standalone repetition: 20/20 standalone runs, 320/320 test cases passed, no retries. Median wall 17.303 s; mean 17.589 s; range 15.983–20.319 s. Before/after numbers include test-runner preparation and are observations, not a controlled performance benchmark.
  • Owning bundle replay: agentic-gateway-core-2 passed, exit 0, 260.178 s; both canonical config invocations passed. Bundle came from createNodeTestShardBundles({includeReleaseOnlyToolingShards:true}) and retained its exact configs and includePatterns in groups.json.
  • pnpm tsgo:core:test --changed-paths-json '["src/gateway/worker-environments/workspace-accepted-sync.test.ts"]': exit 0, 80.274 s.
  • Local node_modules/.bin/oxfmt --check src/gateway/worker-environments/workspace-accepted-sync.test.ts: passed.
  • Local node_modules/.bin/oxlint --type-aware --tsconfig config/tsconfig/oxlint.core.json src/gateway/worker-environments/workspace-accepted-sync.test.ts: passed.
  • git diff --check: passed.

Standalone walls by run (seconds): 18.432, 19.880, 18.457, 16.600, 19.447, 17.705, 16.839, 16.079, 16.070, 16.341, 15.983, 16.291, 20.319, 18.447, 16.293, 16.901, 16.507, 19.101, 17.999, 18.098.

Commands/payloads retained beside this report:

node scripts/crabbox-wrapper.mjs run --timing-json -- bash -c "$(cat <scratch>/proof-verified.sh)" > <scratch>/proof-verified.log 2>&1
CI=1 pnpm test src/gateway/worker-environments/workspace-accepted-sync.test.ts --maxWorkers=1
OPENCLAW_NODE_TEST_GROUPS_JSON='<exact group from groups.json>' CI=1 node --import tsx scripts/ci-run-node-test-shard.mts
pnpm tsgo:core:test --changed-paths-json '["src/gateway/worker-environments/workspace-accepted-sync.test.ts"]'

proof-verified.sh embeds the exact original bytes and probe transformers. Each probe restores bytes in Python finally and the payload verifies the final hash. proof-verified.log records per-run walls and results; groups.json records the owning shard selection.

Coordinator shard replays (flake-triage bar: 3 total with the lane's replay above)

SHARD agentic-gateway-core-2 replay=1 pass wall=257s   49 passed (49) |  515 passed (515)
SHARD agentic-gateway-core-2 replay=2 pass wall=242s   49 passed (49) |  515 passed (515)
SHARDS overall=0

Accepted-workspace apply tests polled backup-rename marker files against
10-second deadlines. Child close also raced 10-second body deadlines and
a 1-second cleanup deadline despite healthy pending work.

Await fixture readiness on owned stderr, the existing settlement deferred,
and retained child-close promises instead. Bind waits to the test signal
and drain fixture bodies before removing their inputs, so timed-out tests
finish FIFO release and process cleanup. Keep child cancellation active
until close so an abort arriving during cleanup still terminates the child.

Keep the receiver fixture unchanged: its detached process groups lack an
owned cross-platform abort completion signal. Other assigned files remain
unchanged because the pre-edit census found worktree ownership conflicts.
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: L labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 5:19 AM ET / 09:19 UTC.

ClawSweeper review

What this changes

The PR replaces deadline-based apply-fixture polling with readiness signals and retained child-close promises, and joins cleanup before removing test directories.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains a useful, well-validated fixture reliability fix, with no blocking defect found.

Likely related people: steipete, supported by prior merged work on this area.

Priority: P2
Reviewed head: 46378ed3b35594b040a7d7ca994268ea100dd590

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused lifecycle ownership, preserved assertions, and targeted before/after fault evidence make this an above-average test repair.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff changes only the accepted-sync test. Readiness follows FIFO reader acquisition; cancellation remains registered until close; both changed fixture bodies join child and publication completion in finally.
Production ordering preserves assertion meaning: The publisher awaits apply before invoking settlement after an uncertain result. The fixture returns its simulated SSH-loss result only after readiness, so awaiting the existing settlement deferred still establishes that apply reached the backup rename.
Complete captured proof inspected: The fetched full body matches captured SHA-256 8a8e2a578ae8b831297a27731d0b3a39fde650597b7cc587c023a84c2c5a5bb3. It reports an identical 11-second startup-delay probe failing before and passing after, readiness and settlement abort probes, cancellation during cleanup with a dead child, 320 passing cases across 20 standalone runs, and three successful owning-shard replays. These exercise the changed fixture lifecycle with real child processes and production transaction scripts on Testbox; no embedded commands were executed during review.
Findings None None.
Security None None.

How this fits together

Accepted workspace publication copies reconciled files into a worker workspace and settles uncertain remote transaction outcomes. These tests exercise its production transaction scripts while controlling child readiness, publication progress, and cleanup.

flowchart TD
  A[Accepted workspace files] --> B[Workspace publisher]
  B --> C[Apply transaction child]
  C --> D[Readiness signal]
  D --> E[Test assertions and gate release]
  F[Test cancellation] --> G[Child close and fixture cleanup]
  E --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +68. Total +68 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 376 308 +68
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 376 308 +68

Review metrics

Metric Value Why it matters
Fault coverage 11-second startup delay; 3 abort scenarios Reported probes distinguish removal of the premature deadline from reliable cleanup under cancellation.
Flake validation 20 standalone runs; 3 owning-shard replays The complete body supplies the repository's documented repetition bar.
Measured suite cost 17.303-second median standalone wall The PR records the changed test file's execution cost without claiming a controlled performance improvement.

Technical review

Best possible solution:

Use owned readiness and completion signals for the direct apply fixtures while preserving the receiver fixture until its detached-process lifecycle has an adequate owner.

Do we have a high-confidence way to reproduce the issue?

Yes: current main visibly races apply readiness against a 10-second deadline, and the reported identical 11-second delay fails before and passes after. This read-only review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes: the patch uses existing test-signal and fixture-lifetime helpers, preserves transaction assertions, and changes no production timeout or API.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3ea571a6b98f.

Labels

Label changes:

  • add P2: This is a bounded test reliability repair for slow hosts, with no user-facing production change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.

Label justifications:

  • P2: This is a bounded test reliability repair for slow hosts, with no user-facing production change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Testbox report exercises the changed apply fixture through real production transaction children: delayed readiness passes after the fix, and readiness, settlement, and late-cleanup aborts join dead children. Full-body inspection also confirms three shard replays; no stored-data contract changes.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff changes only the accepted-sync test. Readiness follows FIFO reader acquisition; cancellation remains registered until close; both changed fixture bodies join child and publication completion in finally. (src/gateway/worker-environments/workspace-accepted-sync.test.ts:54, 46378ed3b355)
  • Production ordering preserves assertion meaning: The publisher awaits apply before invoking settlement after an uncertain result. The fixture returns its simulated SSH-loss result only after readiness, so awaiting the existing settlement deferred still establishes that apply reached the backup rename. (src/gateway/worker-environments/workspace-accepted-sync.ts:244, 46378ed3b355)
  • Complete captured proof inspected: The fetched full body matches captured SHA-256 8a8e2a578ae8b831297a27731d0b3a39fde650597b7cc587c023a84c2c5a5bb3. It reports an identical 11-second startup-delay probe failing before and passing after, readiness and settlement abort probes, cancellation during cleanup with a dead child, 320 passing cases across 20 standalone runs, and three successful owning-shard replays. These exercise the changed fixture lifecycle with real child processes and production transaction scripts on Testbox; no embedded commands were executed during review. (46378ed3b355)
  • Current main still needs the change: Fetched main retains the 10-second apply-marker and child-close waits in both affected fixtures, including the 1-second cleanup close deadline. (src/gateway/worker-environments/workspace-accepted-sync.test.ts:382, 3ea571a6b98f)
  • Latest-release comparison: The v2026.9.7 source also retains the old apply-marker and child-close waits. GitHub contents inspection supplied the release source after the local historical blob could not be fetched. (src/gateway/worker-environments/workspace-accepted-sync.test.ts:385, c074824a27c9)
  • Prior area contribution: Current-main history records several prior changes by Peter Steinberger in the production owner and test. GitHub identifies steipete as the author of the large-change-set regression commit. Older line-level blame was unavailable because historical blob retrieval returned HTTP 403; no feature-introduction claim is made. (src/gateway/worker-environments/workspace-accepted-sync.test.ts:169, 779e6cfc04bc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 5ada1a2 into main Oct 1, 2026
111 of 113 checks passed
@steipete
steipete deleted the steipete/poll-gateway branch October 1, 2026 09:25
steipete added a commit that referenced this pull request Oct 1, 2026
… out on loaded hosts while polling fixture files (#162635)

Gateway hook-mapping, cron live, session-creation, and worker-environment workspace mutation/inventory/manifest tests waited for fixture children by polling marker, PID, and ready files against 5-10 s wall-clock deadlines, which a loaded host outlasts.

Hook mapping now waits for a synchronous module-entry event with a separate release; directly spawned controllers are joined through durable close promises attached at spawn; readiness for test-spawned children arrives on stdout/IPC lines written after the fact they announce; waits raced against a command that can settle first fail fast via awaitGateBeforeSettlement bound to the test signal; and cleanup joins through onTestFinished so a timeout cannot orphan fixtures (a forced-abort probe caught and fixed exactly that in the inventory test). Receiver, tunnel, and cron-watcher waits whose processes the product starts in separately detached groups keep their original waits (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from #162274 (follow-up to #162573). Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked processes; 20/20 standalone runs of all six files; 3/3 replays of each owning Gateway shard; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…hosts while polling apply markers (openclaw#162573)

The accepted-sync worker-environment tests waited for the apply child by polling an apply-started marker file against a 10 s deadline and racing the child's close against fixed timers. On a loaded host the healthy child boot outlasts the deadline.

The apply child now reports readiness on a stderr line written after it opens the FIFO (so an immediate release cannot lose the gate bytes), the test owns the FIFO writer, child close is retained as a promise that also terminates the child on test abort, and a fixture lifetime joins cleanup before temp directories are removed. Six waits convert. The five receiver-fixture waits stay unchanged because the product starts the receiver in its own detached process group with no owned join (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274. Proof on Blacksmith Testbox: an 11 s delayed-startup probe fails the original bytes with the old timeout and passes these bytes; three forced-abort probes reach cleanup with the child dead; 20/20 standalone runs; 3/3 replays of agentic-gateway-core-2; targeted tsgo; Codex autoreview and ClawSweeper clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… out on loaded hosts while polling fixture files (openclaw#162635)

Gateway hook-mapping, cron live, session-creation, and worker-environment workspace mutation/inventory/manifest tests waited for fixture children by polling marker, PID, and ready files against 5-10 s wall-clock deadlines, which a loaded host outlasts.

Hook mapping now waits for a synchronous module-entry event with a separate release; directly spawned controllers are joined through durable close promises attached at spawn; readiness for test-spawned children arrives on stdout/IPC lines written after the fact they announce; waits raced against a command that can settle first fail fast via awaitGateBeforeSettlement bound to the test signal; and cleanup joins through onTestFinished so a timeout cannot orphan fixtures (a forced-abort probe caught and fixed exactly that in the inventory test). Receiver, tunnel, and cron-watcher waits whose processes the product starts in separately detached groups keep their original waits (follow-up). No product source, test timeout, product timeout, or assertion meaning changed.

Part of the polling audit from openclaw#162274 (follow-up to openclaw#162573). Proof on Blacksmith Testbox: delayed-startup fault probes fail the original bytes and pass these bytes; forced-abort probes reach cleanup with no leaked processes; 20/20 standalone runs of all six files; 3/3 replays of each owning Gateway shard; targeted tsgo; Codex autoreview and ClawSweeper clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant