Skip to content

fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error - #173465

Merged
RomneyDa merged 4 commits into
mainfrom
fix/telegram-proxy-drain-retry
Oct 16, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/telegram-proxy-drain-retry

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the QA Lab live Telegram lane fails a run of consecutive scenarios at transport setup with Telegram Test Bot API getUpdates failed while draining stale updates. when the Telegram Test Bot API briefly rejects the one-shot stale-update drain.

User Impact

No product change. Release validation's live Telegram lane now waits out short Telegram flood control (429 retry_after), a releasing long poll (409), 5xx responses, network errors, and per-attempt timeouts during the per-scenario drain, instead of failing the scenario. Persistent failures still fail, with the last HTTP status and Telegram error_code in the error and in sanitized log lines.

Why This Change Was Made

drainTelegramTestUpdates issued a single getUpdates (timeout 0, 15 s abort) and threw on any non-OK response, with no retry and no logged status, so 429, 409, and 5xx failures looked the same in logs.

  • Retries 409/429/5xx and no-response failures inside a 120 s wall-clock budget (sized for slow runners; each attempt keeps its 15 s abort). It honors parameters.retry_after when the wait fits in the budget and otherwise uses 1 s to 10 s exponential backoff. Other statuses (for example 401) fail right away.
  • Proxy teardown and lease revocation abort the in-flight attempt and cancel the pending retry wait (the timer is cleared, so the process isn't held open); each attempt's abort is capped by the remaining budget, so the drain settles within 120 s.
  • Logs one telegram_test_api_drain_failure JSON line per failed attempt, with only integers and allowlisted atoms (status, telegramErrorCode, retryAfterSeconds, retryable, network errorCode). It shares the token-safe atom extraction with reportProxyFailure. Descriptions, URLs, and tokens are never logged.
  • The sleep is injectable (startTelegramTestApiProxy({ sleep })), so the tests never use real timers.

The drain is the only one-shot Bot API call in the proxy and the QA Lab transport setup path. The userbot driver that runs next uses TDLib, and the SUT Gateway's own polling has its own retry, so nothing else needed this change.

Evidence

Failure: 2026.10.4 FRV14, candidate 383c124cc32, Release Checks run 38775999936, attempts 1–3 (Telegram QA child runs such as 38793849651). In each attempt, roughly scenarios 9–12 of 25, the ones right after the telegram-long-final-* scenarios, failed with isolated scenario worker: failed to create QA transport live:telegram: Telegram Test Bot API getUpdates failed while draining stale updates.. Attempt 1 surfaced it as telegram account "sut" did not become ready ... reconnectAttempts 6. Later scenarios recovered, and the same SHA passed this lane earlier that day. The old code logged no status, so the exact Telegram status is still unknown. This PR adds the log line that will identify it. The ~35 telegram_test_api_proxy_failure upstream-fetch getUpdates lines per run come from aborted long polls, appear in passing runs too, and are not this failure.

Tests (.agents/skills/telegram-e2e-userbot/scripts/telegram-test-api-proxy.test.mjs, upstream faked through the proxy's fetchImpl, injected sleep plus mocked Date.now):

  • 429 with retry_after: 7, then success: one 7 s wait, offset kept, a single sanitized log line with no token, description, or "Too Many".
  • 409, then success: one 1 s backoff.
  • Persistent 502: fails after 15 attempts inside the 120 s budget. The error names HTTP 502, error_code 502 and contains no token.
  • 401: fails immediately with no retry.
  • Proxy closes during a real 60 s retry_after wait (default sleep): the drain rejects right away and the timer is cleared. On the previous head the drain waited out the full minute.
  • Stalled attempt at the deadline: after a 119 s retry_after leaves 1 ms of budget, a hung second attempt is abandoned and the drain fails with no HTTP response (TIMEOUT) within the 120s retry budget. On 55c8b525d3b it hung for the full per-attempt timeout (the 5 s test timeout fired).
  • On the old code, the four retry, budget, and status tests fail. The close and budget-cap tests fail on this PR's first head, 55c8b525d3b: the close test timed out and the process stayed alive for 60 s, and the stalled-attempt test hung past the deadline.

Commands:

  • node --test .../telegram-test-api-proxy.test.mjs: 20/20 pass, about 0.2 s.
  • pnpm test test/scripts/telegram-e2e-userbot-skill.test.ts --maxWorkers=1 (the Vitest wrapper that owns these node tests; pnpm test <the .mjs> finds no Vitest file): about 15 s wall. The proxy suite passes. Two failures in other files, telegram-run-composition.test.mjs (EPERM uv_cwd under the local macOS sandbox) and telegram-test-credential.test.mjs (real uv/TDLib launcher), happen without this change too and do not import the proxy.
  • pnpm test extensions/qa-lab/src/live-transports/telegram/adapter.runtime.test.ts: 18/18 pass.
  • oxfmt --check and git diff --check are clean.

Not run: a live Telegram Test Server lane.

Release note

This harness is candidate-owned during qualification (trusted_harness_sha = candidate). The fix applies to future candidates cut from main, not the 2026.10.4 FRV that is already running.

@clawsweeper

clawsweeper Bot commented Oct 15, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds bounded retries, cancellation, and sanitized diagnostics to Telegram QA stale-update draining.

Example: Telegram returns HTTP 429 with retry_after: 7 during scenario setup, then succeeds.

  • Before: The stale-update drain fails the scenario immediately.
  • After: The drain waits seven seconds, retries with the same offset, and completes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused repair and revised deadline assertion are sound on inspection; supplied behavioral evidence remains limited to an in-process harness.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied owner-boundary tests exercise retry and cancellation behavior with mocked upstream fetches, rather than a live Telegram recovery run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators see otherwise recoverable Telegram QA scenarios fail during stale-update draining.
Reason: The maintainer-authored change repairs an observed QA setup failure at its existing owner without adding product settings or another recovery path.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main still fails the drain immediately on transient errors, and the revised deadline test removes a timing-dependent assertion without losing the timeout contract. The prior findings are addressed; no new actionable defect was found.

Priority: P2
Reviewed head: aff48f4825fa4e649f70fa270585f1132ab4eab8

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied tests replace upstream fetches; no supplied run demonstrates transient drain recovery through the real Telegram transport.
Agent review details

How this fits together

The QA Lab Telegram transport drains stale bot updates through the repository-owned Test Bot API proxy before starting its TDLib observer and scenario.

flowchart LR
  A[QA scenario setup] --> B[Stale update drain]
  B --> C[Local Test API proxy]
  C --> D[Telegram Test Bot API]
  D --> B
  E[Lease health and teardown] --> B
  B --> F[TDLib observer startup]
Loading

Technical review

Best possible solution:

Keep bounded transient recovery in the existing drain owner while preserving lease cancellation, offsets, and token-safe diagnostics.

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

Current-main source directly shows that a 429, 409, or 5xx drain response aborts transport setup; the reported incident's exact upstream status remains unknown, and no reproduction was executed during this read-only review.

Is this the best way to solve the issue?

The repair belongs in the existing one-shot drain, and the latest test correction appropriately asserts the caller-visible timeout rather than a scheduling-dependent upstream count.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Stale-update draining changes intended behavior with a stated reason (906a63c: Drain pending Test Server updates before starting the leased userbot QA transport.)
  • Proxy stop and lease lifecycle keeps the original intent (ea6ad97: Consolidate cancellation and owned-resource cleanup under the canonical proxy lifecycle.)
  • Retained failure diagnostics keeps the original intent (35126bb: Retain bounded failure facts while excluding tokens, arbitrary exception details, and message content.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +171, Other +103. Total +274 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 171 0 +171
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 125 22 +103
Total 2 296 22 +274

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Transient drain failures interrupt release QA scenarios, with no product-runtime change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-15T20:55:59.506Z sha 55c8b52 :: needs changes before merge. :: [P2] Cancel the backoff timer when the proxy stops | [P2] Cap each request by the remaining drain budget
  • reviewed 2026-10-15T21:10:16.082Z sha 9884ba2 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-15T21:17:02.310Z sha f8ae6c3 :: needs maintainer review before merge. :: none

Reviewed October 15, 2026, 5:24 PM ET / 21:24 UTC (Revision 4).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Head 9884ba2 addresses both P2 findings: proxy stop/lease revocation now aborts the in-flight drain attempt and cancels the pending retry timer (regression: real 60 s retry_after wait, previously held the process for 60 s), and each attempt's abort is capped by the remaining 120 s budget with a pre-attempt deadline check (regression: next attempt after retry_after 119 is capped at 1 s, previously 15 s).

@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Head f8ae6c3 replaces the flagged low-value remaining-budget test (which stubbed AbortSignal.timeout) with a behavioral one: a stalled second attempt after retry_after 119 is abandoned at the 120 s deadline and the drain fails with no HTTP response (TIMEOUT). It fails on 55c8b52 (hangs past the deadline). Test-only change.

@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Head aff48f4 fixes a CI-only race in the new deadline test (checks-node-compact-small-1, run 38808199201): with 1 ms of budget left, the drain's own abort can fire before the proxy forwards the stalled attempt, so the upstream request count was timing-dependent (1 vs 2). The test now asserts only the drain's outcome (2 attempts, no HTTP response (TIMEOUT) budget error, sanitized TIMEOUT log line), which holds in either order. Test-only change; 30/30 local repeats pass.

@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa
RomneyDa merged commit 387ebd6 into main Oct 16, 2026
76 of 79 checks passed
@RomneyDa
RomneyDa deleted the fix/telegram-proxy-drain-retry branch October 16, 2026 02:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…in hits a transient Bot API error (openclaw#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…78169)

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): validate shipped release provenance markers against main (#173781)

(cherry picked from commit eee5b40)
Co-authored-by: RomneyDa <[email protected]>

* fix(sqlite): settle peer closes after shared worker refusal (#173813)

A refused opener stops its shared worker, so queued peer closes receive the
slot's existing operation failure without running. Join native exit without
recording that exact failed-slot error as a second cleanup failure. Distinct
close, termination and lease-cleanup failures still propagate.

Update and Doctor teardown can finish retiring peer agent stores after another
opening is revoked. The rejected opening retains its error, exact lease cleanup
remains owned, and uncertified native exit cannot publish a clean-close seal.

The real-worker regression fails on main with native retirement failed and
passes with all peer leases removed. The original intermittent sessions-tail
case passed six pre-fix replays; the forced owner boundary proves this repair.

Proof: sessions-tail/creation-owner/cleanup 62 passed; broker/client/reply,
close-wedge and retention siblings 54 passed; final integrity owner 27 passed,
one existing Linux-only skip. pnpm test
src/state/openclaw-agent-execution.integrity.test.ts --maxWorkers=1: 76.57s wall,
26.00s Vitest, new regression 2.66s. Scoped types, lint, formatting, line-cap and
independent P2 reviews pass. PR CI supplies broad proof.

(cherry picked from commit 6d51bb2)
Co-authored-by: RomneyDa <[email protected]>

* fix(gateway): restore 2026.10.4 startup memory by keeping cold start from opening every memory index (#174718)

* perf(agents): bound catalog worker young-generation heap

Keep the catalog worker's existing 512 MiB old-generation allowance while
bounding its young generation to 32 MiB. Forward-port of the release/2026.10.4
fix; main moved the catalog pool into prepared-model-catalog-worker.pool.ts, so
the limit now lives on that pool's single resource-limit object.

(cherry picked from commit a3510e8)

* fix(memory): keep cold Gateway start from opening every agent's index

#167756 started Memory Core's index service eagerly on every Gateway start,
opening each configured agent's memory manager right after readiness. On an
idle Gateway that startup catch-up touches every session-transcript read lane,
so each lane spawns its own worker isolate (plus a memory-search worker): the
2026.10.5 Gateway startup peak RSS rose from ~1.1 GB to ~1.8 GB.

Cold start is demand-driven again, as before #167756: the first search, flush,
or turn that needs an agent's index opens it. Once a watched manager has run in
the process (a process-wide fact that survives plugin instance replacement and
resets with a Gateway restart), every later service start reopens all configured
indexes, so plugin reloads, provider-only reloads, rollback recovery, and
memory/agent config restarts still resume watching without a search or turn.

* perf(sqlite): bound broker and transcript worker young-generation heaps

Cap the SQLite broker carriers and session-transcript reader workers at a
32 MiB young generation, matching the catalog worker bound, while keeping the
existing 512 MiB old-generation allowance. Worker counts, lanes, admission,
and lifecycle custody are unchanged.

V8's default nursery grows to ~63 MiB per worker after a startup allocation
burst and stays resident on idle workers. On the 2026.10.5 Gateway (fresh
state, forced 16 CPUs) the broker's heap total at startup peak fell
125 -> 91 MiB and the transcript reader 81 -> 34-66 MiB; with the Memory Core
cold-start fix, max Gateway peak RSS over the runs fell 1152 -> 1117 MB.
Tradeoff: more frequent scavenges during large allocation bursts in these
workers.

(cherry picked from commit 6c050f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): start a fresh model catalog read after invalidation (#174812)

(cherry picked from commit 919e835)
Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…8170)

* fix: ClawHub release verification fails while publication is pending (#168153)

* fix(release): verify ClawHub only after public finalization

* fix: align ClawHub recovery with authoritative publication state

(cherry picked from commit 7985ac2)
Co-authored-by: RomneyDa <[email protected]>

* fix: Linux feed publication tolerates stale public downloads (#168179)

(cherry picked from commit 18f2006)
Co-authored-by: RomneyDa <[email protected]>

* feat(pr): scope worktree cleanup to one PR (#168152)

(cherry picked from commit 51c0f56)
Co-authored-by: RomneyDa <[email protected]>

* feat(release): reconcile exact owned validation cancellation trees (#168267)

* feat(release): reconcile exact owned FRV cancellation trees

* fix(release): parse cancellation provenance with fixed patterns

* fix(release): normalize rerun copies before cancellation discovery

(cherry picked from commit 02a2bd2)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): recover failed receipts without rerunning workloads (#168266)

* fix: recover failed release receipts without rerunning workloads

* test(release): materialize publication harness preload closure

(cherry picked from commit 4485101)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): restore Telegram progress E2E delivery (#168675)

(cherry picked from commit 1fbfd4a)
Co-authored-by: RomneyDa <[email protected]>

* docs(release): generate release notes once after validation-recovery backports (#169495)

(cherry picked from commit 696fb2f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): explain why release:candidate --workflow-sha must be trusted main (#169496)

(cherry picked from commit 513d0e7)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): full release validation helper fails when main advances before admission dispatch (#169500)

(cherry picked from commit 992410c)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): derive attested publish tooling in npm postpublish verification (#169497)

(cherry picked from commit 1f8307f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): report candidate supersession and resume watchers (#168271)

* fix(release): report candidate supersession and resume watchers

* fix(release): keep invalid candidate metadata advisory to watchers

(cherry picked from commit cdb57ac)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): stop waiting for advisory ClawSweeper reviews (#169739)

(cherry picked from commit c2d1513)
Co-authored-by: RomneyDa <[email protected]>

* ci: let PR checks finish and classify inherited failures (#169647)

* ci: finish PR jobs and classify failures against main

* ci: distinguish signature and job-name failure attribution

* test(ci): avoid object spread in failure fixtures

* ci: classify differing validation scopes as unknown

(cherry picked from commit 7c4ff5a)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): scripts/pr keeps a lock after a failed command that fully drained (#169595)

* fix(pr): release drained failed-operation locks instead of requiring manual recovery

* test(pr): drop unused lock owner initializer

* docs(pr): drop obsolete blanket failure-retention claim

(cherry picked from commit a939a9d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): success headline hides post-swap steps that did not run (#170490)

(cherry picked from commit f26cdca)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): require current website downloads at closeout (#170704)

* fix(release): require current website downloads at closeout

* fix(release): verify request-time downloads before closeout receipts

* style(release): use braces for dispatch validation

(cherry picked from commit 0c51cc6)
Co-authored-by: RomneyDa <[email protected]>

* fix(ci): prevent avoidable FRV retries and cold setup failures (#170964)

* fix(ci): preserve FRV work through transient GitHub reads

* fix(ci): retain cache reads for frozen workflow targets

* fix(ci): count contributing packed release timing samples

* fix(ci): avoid stalled iOS simulator diagnostics

* test(ci): correct FRV regression assertions and output capture

(cherry picked from commit 5cd688d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): stabilize stalled recovery cleanup validation (#171507)

* test(update): await recovery descendant before fixture expiry

Expire the generated helper recovery timeout callback after the isolated command has persisted a live descendant PID and emitted readiness. Keep process-group termination and close joins native, retain the durable failed sentinel and dead-descendant assertions, and bound missing readiness with a fixture watchdog.

Refs #170803 (stalled-recovery fixture race only).

* test(update): load recovery clock from fixture module

Replace the added hand-written preload source template with a test-owned ESM fixture and per-case JSON configuration. Preserve exact helper and recovery command scoping, native timeout callback and watchdog cleanup, persisted descendant readiness and existing deadline, close-order, sentinel and process-death assertions.

Production behavior and deadlines are unchanged. Refs #170803 (stalled-recovery fixture race only).

* test(update): join state workers before handoff cleanup

Await the maintained state-database test cleanup owner before removing managed-handoff fixture directories. Synchronous native-handle close only starts worker retirement and can race the final WAL cleanup, observed as ENOTEMPTY in the retained-notification triage case.

Reuse closeStateDatabaseForTest without retries, timing seams, triage behavior changes or production changes. Refs #170803 (managed-handoff test fixtures only).

(cherry picked from commit 4a25358)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): retire session MCP managers left by earlier test files (#172515)

(cherry picked from commit d4be691)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): show publication release and Windows source identities (#170274)

(cherry picked from commit 35fffec)
Co-authored-by: RomneyDa <[email protected]>

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): packed package check refuses a root dist above 10,000 JavaScript files (#172954)

(cherry picked from commit 244cd79)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): Bun agents-support shard fails after the question authority test leaks sharing reads (#172974)

(cherry picked from commit 54f0b41)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile (#173105)

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile

* test(googlechat): keep the direct smoke test deadline above its child budget

(cherry picked from commit 8bc4915)
Co-authored-by: RomneyDa <[email protected]>

* fix(test): interrupted test wrappers miss their signal exit verifying a generation (#173068)

* fix(test): interrupted test runs miss their signal exit verifying a generation they will delete

* fix(test): keep borrower disposal verification; skip it only for interrupted wrappers

* fix(test): return the shim interruption result on every path

(cherry picked from commit b66e0fc)
Co-authored-by: RomneyDa <[email protected]>

* test(openshell): registration lifecycle test fails when registry retirement outlasts its 1s poll (#173205)

(cherry picked from commit 7cd0f47)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): give relocated worker facade and image tests the archive budget (#174556)

(cherry picked from commit 746a52a)
Co-authored-by: RomneyDa <[email protected]>

* test(ui): settle lazy preference reader before profile identity waits (#174614)

(cherry picked from commit d6ea634)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): collect Bun recovery retention from a timer phase (#174924)

Bun's JavaScriptCore scans native stacks conservatively. Under load, the
immediate dispatcher can keep a stale pointer to the completed recovery
fixture graph across every immediate-phase collection, so the retired
PluginInstance stayed reachable only through GC-internal roots. A
collection from a timer callback releases it. When the expected
references are still live after the existing immediate passes, run up to
four timer-phase collections; a strong retainer still fails.

(cherry picked from commit 8919729)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): adapt worker archive timeout backport

Keep the release branch test inventory while granting the two relocated archive cases the intended three-minute budget.

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): adapt unloaded-thread recovery to release params

Use the release branch request parameter directly when deciding whether an ordinary bound thread may be resumed.

Co-authored-by: RomneyDa <[email protected]>

* test(codex): adapt recovery fixture to release helper

Use the release branch thread-result helper signature so the recovery regression validates the intended thread identity.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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