Skip to content

fix: keep release validation bounded and clean up session fixtures - #201623

Merged
RomneyDa merged 4 commits into
mainfrom
fix/frv16-ci-budgets
Nov 19, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/frv16-ci-budgets

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Release qualification can time out in slow integration fixtures, and session-worktree cleanup can report a stale removal result before accepted persistence finishes. An additional startup test races a port that its mocked Gateway does not own. This is a maintainer-requested release-validation repair.

User Impact

No production behavior or operation limits change. Release validation keeps its existing assertions while allowing bounded execution headroom and reliably joining fixture cleanup.

Why This Change Was Made

Use 180-second outer allowances for the affected worker/rollback/config cases, a 30-second test RPC/refresh allowance, and 300 seconds for the full 101-package CLI proof. Allow APT installation 480 seconds within a 20-minute active-work deadline. Join accepted session persistence before checking removal, always clean up naming worktrees, and remove an unowned port-rebind probe while retaining launch/config/status and independent reservation-release coverage.

Current main intentionally retired the old catalog-secrets suite in #198916; this patch preserves that retirement rather than restoring it merely to change a timeout.

Evidence

  • Exact main candidate dc2fafc9ff846d827772c2a4f300cd044cdae688: six focused files passed, 89 tests total (68 tooling, 21 session/worktree). The main CLI proof executed all 101 packages with 4,900 requests.
  • Five worker fixture files passed 73/73 tests in isolated release-baseline proof. The Git rollback scenario passed with database, service, Git and history restoration assertions intact. The original hosted timeouts did not reproduce locally; these allowances are not claimed as demonstrated production fixes.
  • The cleanup-order regression failed with the unchanged helper and passed after repair.
  • Formatting and lint passed for all 15 changed files. All six targeted TypeScript graph leaves passed. Broad PR CI remains required.
  • Fresh independent source review covered all 15 changed files with no P0–P2 findings. Canonical autoreview using the restricted OpenClaw engine reviewed 7f6b6d795f48..dc2fafc9ff84, P0–P2, and completed scoped-clean. Its supplied-patch review had no unchanged implementation context; the separate source review inspected owners and retained coverage.

The release-only CLI suite passed all 7 tests, including both 101-package flows (ordinary: 4,900 requests; recovery: 7,792 requests). The six additional release-only credential-discovery failures were reproduced as loopback fixture traffic using an inherited HTTP proxy; a separate three-line test-only repair retains existing proxy exclusions and exempts only the fixture host:port. That full suite passed 9/9 on Node and 9/9 on Bun. The retired suite is not restored by this main PR. Neither this PR nor local passes claim that the new release candidate is qualified. Real desktop carriers and missing/cancelled CI coverage still require a new full release-validation run.

Simplification: no production owner, state, or compatibility layer added. Large worker diffs are formatter indentation around five timeout registrations. Added test code protects the distinct cleanup ordering failure.

RomneyDa and others added 4 commits November 19, 2026 04:51
Apply the explicitly requested 120s to 180s test-only allowance to five worker lifecycle registrations. Preserve all assertions, synthetic execution deadlines, and production limits. Original FRV15 timeout causes remain unlocalized; this is not a product fix claim.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b9a605f10eff1485c79968eec65141b2ad0ea14e)
Raise only the parameterized rollback test budget from the inherited 120 seconds to 180 seconds. FRV15 timed out in the Git case while neighboring rollback cases took 86-115 seconds. Preserve every restoration assertion and all production operation limits.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit d66b3b01f66390a4e3b1648ace73929fdaab5640)
Join captured creation-source persistence before checking terminal cleanup, and always release naming worktrees after the bounded root wait. Keep production limits unchanged while increasing focused integration-test deadlines.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f10c54116aa51efe6e3593b429c2b93908dc64ef)
Allow the measured 101-package proof and APT installation sufficient bounded execution time. Retain launch and reservation lifecycle assertions instead of racing an unowned replacement port.

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

clawsweeper Bot commented Nov 19, 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 cli CLI command changes scripts Repository scripts size: XL labels Nov 19, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review November 19, 2026 05:01
@RomneyDa
RomneyDa enabled auto-merge (squash) November 19, 2026 05:10
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adjusts release-validation timeouts, fixes session-fixture cleanup ordering, and removes an unreliable port-rebind assertion.

Example: A session creation source deregisters while its accepted terminal persistence is still pending.

  • Before: The fixture retains a false removal result even after persistence finishes.
  • After: The fixture joins captured settlement before checking removal.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent; validation rests on reported focused results, with historical timeout causes still unlocalized and broad CI unfinished.
Proof confidence 🦐 gold shrimp (3/6) This is test/support and validation-tooling maintenance with no installed-product behavior change; the body reports focused passes and cleanup red/green evidence without claiming full release qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Maintainers can receive false release-validation failures or incomplete fixture cleanup.
Reason: The maintainer-authored direction is established, and the narrow test/tooling changes preserve production contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a focused fixture cleanup repair and bounded validation headroom, with no actionable correctness or security findings; exact-head CI remains pending.

Priority: P3
Reviewed head: dc2fafc9ff846d827772c2a4f300cd044cdae688

Before merge

None.

Findings

None.

Agent review details

How this fits together

Release-validation scripts and integration fixtures exercise Gateway, worker, update, and package-publication owners, then check results and release their test resources.

flowchart TD
  A[Release validation] --> B[Integration fixtures]
  A --> C[Desktop proof script]
  B --> D[Gateway and worker owners]
  D --> E[Accepted persistence]
  E --> F[Fixture cleanup]
  F --> G[Result assertions]
Loading

Technical review

Best possible solution:

Retain the existing lifecycle owners and assertions while landing the fixture ordering repair and bounded allowances after required CI succeeds.

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

Source establishes the stale cleanup result, and the PR reports a matching red/green regression; the historical hosted timeouts were not reproduced locally, and this review executed no target code.

Is this the best way to solve the issue?

The change uses existing settlement ownership, preserves runtime limits and substantive assertions, and removes a probe whose mocked process never owned the replacement listener.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session fixture settlement keeps the original intent (c62c2d9: Session-list lifecycle work retained removal checks and captured cleanup settlement; the later controller cutover unified source custody.)
  • Naming worktree cleanup keeps the original intent (67ecf6b: The memory-reduction repair joined independently owned background work before fixture cleanup; the nested finally preserves cleanup when that wait fails.)
  • Worker, config, and rollback allowances changes intended behavior with a stated reason (fix(workers): settle remote turn ownership #161759: Existing fixtures protect claim custody, persistence, configuration revisions, and rollback restoration; this PR explicitly increases only test allowances while retaining those contracts.)
  • Packaged Gateway port probe changes intended behavior with a stated reason (350b86f: The original repair added one bounded fresh-port recovery for packaged checks; the removed rebind probe cannot establish ownership for a mocked Gateway.)
  • Desktop proof deadline changes intended behavior with a stated reason (dda6470: The desktop proof bounds setup and carrier execution; the PR explains slower APT setup and retains finite active-work and child-command deadlines.)
  • Full package CLI proof keeps the original intent (7b0beee: The retirement preserves ordinary qualification through a 101-package CLI flow under the existing request ceiling; only its test timeout changes.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff changes validation tooling and test/support code; worker assertion bodies remain unchanged apart from formatting and timeout registrations. (dc2fafc9ff84)
  • Cleanup ordering matches lifecycle ownership: Current main checks removal before joining captured settlement; the removal owner can return false while terminal persistence remains pending, establishing the fixture failure directly from source. (src/gateway/chat-abort-lifecycle-internal.ts:122, dc2fafc9ff84)
  • Distinct cleanup regression: The added case holds accepted persistence across source removal and checks the shared fixture's final result; the PR reports that it fails with the unchanged helper and passes after repair. (src/gateway/server.sessions.create.attachments.test.ts:35, dc2fafc9ff84)
  • Reservation coverage retained: The independent reservation test still checks listener ownership, closure, and idempotent release; startup recovery retains launch, persisted-port, status, and retry-bound assertions. (test/scripts/openclaw-cross-os-release-checks.test.ts:1541, dc2fafc9ff84)
  • Prior retirement respected: The merged test(agents): trim and fold low-value regression suites #198916 folded the former catalog-secrets coverage into retained suites; this PR preserves that retirement. (ee3e16ecca72)
  • Exact-head validation state: The aggregate CI gate remains pending; security-sensitive review reports no sensitive product changes, and dependency review reports no dependency changes. (dc2fafc9ff84)

Likely related people:

  • Dallin Romney: Raw commit 7b0beee adds test/scripts/plugin-npm-cli-process.test.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7b0beee16be0; files: test/scripts/plugin-npm-cli-process.test.ts)

PR surface

Tests +55, Other +1. Total +56 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 14 594 539 +55
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 2 +1
Total 15 597 541 +56

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This repairs validation fixtures and tooling without changing installed-product behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This repairs validation fixtures and tooling without changing installed-product behavior.
  • 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.

Reviewed November 19, 2026, 12:19 AM ET / 05:19 UTC.

@RomneyDa
RomneyDa merged commit 428d204 into main Nov 19, 2026
242 of 243 checks passed
@RomneyDa
RomneyDa deleted the fix/frv16-ci-budgets branch November 19, 2026 05:23
RomneyDa added a commit that referenced this pull request Nov 19, 2026
Release adaptation of main PR #201623, merged as 428d204. Preserve the full 101-package CLI contract and existing startup/status assertions. Shared desktop and startup patches match the reviewed main change; CLI budget is adapted to the retained release suite.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…penclaw#201623)

* test(gateway): allow worker lifecycle fixtures 180 seconds

Apply the explicitly requested 120s to 180s test-only allowance to five worker lifecycle registrations. Preserve all assertions, synthetic execution deadlines, and production limits. Original FRV15 timeout causes remain unlocalized; this is not a product fix claim.

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

* test(update): allow headroom for database rollback scenarios

Raise only the parameterized rollback test budget from the inherited 120 seconds to 180 seconds. FRV15 timed out in the Git case while neighboring rollback cases took 86-115 seconds. Preserve every restoration assertion and all production operation limits.

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

* test: settle session fixtures and allow slower catalog refreshes

Join captured creation-source persistence before checking terminal cleanup, and always release naming worktrees after the bounded root wait. Keep production limits unchanged while increasing focused integration-test deadlines.

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

* test(release): bound slow setup and remove unowned port probe

Allow the measured 101-package proof and APT installation sufficient bounded execution time. Retain launch and reservation lifecycle assertions instead of racing an unowned replacement port.

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

---------

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

Labels

cli CLI command changes gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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