Skip to content

fix(test): stabilize full release validation shards - #166184

Merged
RomneyDa merged 1 commit into
mainfrom
fix/frv-test-blockers-20261006
Oct 6, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/frv-test-blockers-20261006

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • drain worker-backed state owners before shared-auth fixture directories are deleted
  • size the relocated Windows worker proof from the observed 134s hosted duration
  • let the Zalo stalled-header assertion wait through the test's existing 5s upper bound

Release-validation evidence

  • Full beta FRV checks-node-bundle-infra-small-private-qa-3: shared-auth relocation failed when teardown statted an already-deleted worker-owned openclaw.sqlite
  • Full beta FRV checks-windows-node-test-3: relocated exec-authorization proof hit its 120s deadline and reported at 134.3s after cleanup; sibling archive proofs took 58.6-90.9s on the same host
  • Full beta FRV checks-node-extensions-shard-7: the intended 250ms stalled-header fallback completed after 1.05s under shard load, just beyond Vitest's default 1s waitFor deadline

Verification

  • shared-auth absolute/tilde relocation cases passed in 20 separate processes (40/40)
  • Zalo polling lifecycle passed 20 executions (540/540), including the stalled-header proof
  • the exact original bundle-infra-small-private-qa-3 plan passed three times at its original single-plan concurrency: 58 files, 692 passed, 2 skipped on every run
  • exact-head PR CI passed

Test cost

  • no new tests
  • shared-auth focused file: 46.4s test process / 51.2s wrapper on the release checkout; exact relocation cases took 10.9-13.9s per standalone process on the patched head
  • Zalo polling lifecycle: 285.1s for 20 executions on the patched head
  • original FRV shard replays: 487.9s, 246.2s, and 233.4s test duration (493.4s, 250.3s, and 237.4s wrapper duration)
  • Windows release-only tooling proof: hit 120s and reported at 134.3s after cleanup on the failing hosted runner; deadline raised to 180s

@clawsweeper

clawsweeper Bot commented Oct 6, 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 channel: zalo Channel integration: zalo size: S labels Oct 6, 2026
@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Maintainer-approved ClawSweeper automerge is not merged yet.

Approver: RomneyDa
Head: 707f235f5394
Merge status: exact-head ClawSweeper review decision is human

I left the PR open for the remaining gate instead of bypassing it.

Automerge progress:

  • 2026-10-06 16:02:33 UTC active review reused 707f235f5394 (waiting)
  • 2026-10-06 16:04:46 UTC review queued 707f235f5394 (queued)

@clawsweeper clawsweeper Bot added the clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge label Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 6, 2026, 12:43 PM ET / 16:43 UTC (Revision 3).

ClawSweeper review

What this changes

The PR drains database workers before deleting shared-auth test fixtures and adjusts existing Zalo and Windows packaging-test deadlines to accommodate measured shard execution.

Merge readiness

⛔ Needs changes before merge - 1 item remains

No actionable introduced defect was found. The recorded exact-head validation resolves the previous review’s proof request, and current main still lacks these repairs. The explicit human-review hold remains separate from patch correctness.

Priority: P2
Reviewed head: 707f235f5394c5f446ece49a8fd07865a495268d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair with retained assertions and documented repeated validation; the workflow hold does not reduce patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored test-only patch. Its separate flake-validation requirement is addressed by recorded exact-head standalone and original-shard replays; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored test-only patch. Its separate flake-validation requirement is addressed by recorded exact-head standalone and original-shard replays; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced changes: The verified merge-base-to-head patch changes only test fixtures and deadlines: asynchronous database shutdown precedes fixture deletion, the Zalo assertion receives a 5-second wait budget, and the relocated worker case receives a 180-second test deadline. Existing behavioral assertions and the child-command timeout remain intact.
Existing shutdown owner: The existing asynchronous agent-database close fences and drains registered resources before releasing native handles; the shared-state asynchronous close likewise drains worker resources. The fixture now awaits these owners before deleting its roots.
Shared-state retirement contract: The synchronous test close explicitly documents that worker retirement continues after return and requires awaiting the asynchronous close before accessing database files. The patch follows that existing contract without modifying migration or storage formats.
Findings None None.
Security None None.

How this fits together

Full Release Validation exercises authentication-state relocation, Zalo image handling, and packaged worker execution. These tests consume isolated fixtures and built artifacts, then report whether release contracts remain intact.

flowchart LR
  A[Release validation shards] --> B[Isolated test fixtures]
  B --> C[Database relocation tests]
  B --> D[Zalo image timeout test]
  B --> E[Packaged worker test]
  C --> F[Drain workers before cleanup]
  D --> G[Bounded completion assertions]
  E --> G
  F --> H[Validation results]
  G --> H
Loading

Before merge

  • Complete next step (P2) - Reconcile the remaining clawsweeper:human-review hold with the recorded maintainer approval through the native maintainer workflow.
Agent review details

Security

None.

PR surface

Tests +9. Total +9 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 45 36 +9
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 45 36 +9

Review metrics

None.

Technical review

Best possible solution:

Preserve the existing behavioral coverage while using orderly worker teardown and measured, bounded test deadlines.

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

Yes for the reported validation scenarios: the body identifies the original failing shards and measured failures, and source explains the worker-retirement race and mismatched assertion deadline. This read-only review did not execute them.

Is this the best way to solve the issue?

Yes. The patch reuses existing shutdown owners and adjusts test budgets while preserving the assertions that detect actual behavior failures.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • remove status: 🚀 automerge armed: Current PR status no longer selects a status label.

Label justifications:

  • P2: This is a bounded repair to release-validation test reliability without an introduced user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Pinned introduced changes: The verified merge-base-to-head patch changes only test fixtures and deadlines: asynchronous database shutdown precedes fixture deletion, the Zalo assertion receives a 5-second wait budget, and the relocated worker case receives a 180-second test deadline. Existing behavioral assertions and the child-command timeout remain intact. (707f235f5394)
  • Existing shutdown owner: The existing asynchronous agent-database close fences and drains registered resources before releasing native handles; the shared-state asynchronous close likewise drains worker resources. The fixture now awaits these owners before deleting its roots. (src/state/openclaw-agent-db-lifecycle.ts:596, 707f235f5394)
  • Shared-state retirement contract: The synchronous test close explicitly documents that worker retirement continues after return and requires awaiting the asynchronous close before accessing database files. The patch follows that existing contract without modifying migration or storage formats. (src/state/openclaw-state-db-cache.ts:619, 707f235f5394)
  • Zalo assertion retains its contract: The stalled-header case uses a real loopback HTTP server and the existing media-fetch owner with a shortened header timeout. The change preserves the minimum elapsed-time assertion, existing upper bound, and unavailable-image delivery assertion. (extensions/zalo/src/monitor.image.polling.test-support.ts:281, 707f235f5394)
  • Previous validation request resolved: The captured PR body reports 20 separate-process shared-auth executions, 20 Zalo executions, and three original-shard replays with 692 passed and 2 skipped each. The MEMBER’s exact-head confirmation and approval explicitly cite completed validation rather than a waiver: fix(test): stabilize full release validation shards #166184 (comment). This addresses the previous review’s sole retained rank-up move. (707f235f5394)
  • Still necessary on current main: Comparison with fetched main shows that all three requested test repairs remain absent there. No same-repository merged fixing PR is established by the supplied context; this PR remains open and cleanly mergeable on the pinned head. (817706084620)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Masato Hoshino: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-06T16:03:47.150Z sha 707f235 :: needs changes before merge. :: none
  • reviewed 2026-10-06T16:08:30.751Z sha 707f235 :: needs changes before merge. :: none

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Complete next step (P2) - Complete and record the documented flake-validation gate on the patched head: 20 clean standalone runs, three clean original-shard runs, and owner sibling tests. (sha=707f235f5394c5f446ece49a8fd07865a495268d)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review\n\nProof gate completed on exact head 707f235f5394c5f446ece49a8fd07865a495268d: 20 separate-process shared-auth runs passed; Zalo passed 20 executions; the original 58-file bundle-infra-small-private-qa-3 plan passed three times at single-plan concurrency (692 passed, 2 skipped each run). Exact-head PR CI is clean.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes.

Request: re-review\n\nProof gate completed on exact head 707f235f5394c5f446ece49a8fd07865a495268d: 20 separate-process shared-auth runs passed; Zalo passed 20 executions; the original 58-file bundle-infra-small-private-qa-3 plan passed three times at single-plan concurrency (692 passed, 2 skipped each run). Exact-head PR CI is clean.

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper automerge\n\nThe P2 proof item is resolved on exact head 707f235f5394c5f446ece49a8fd07865a495268d. Evidence is recorded in the PR body: 20 clean standalone shared-auth runs in separate processes, 20 clean Zalo executions, and three clean original-shard runs with owner siblings (58 files; 692 passed, 2 skipped each).

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper approve\n\nMaintainer approval is based on completed exact-head evidence, not a waiver: 20 separate-process standalone shared-auth runs, 20 Zalo executions, three clean original-shard runs including owner siblings, clean required CI, and clean P0/P1 AutoReview.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes.

Request: automerge\n\nThe P2 proof item is resolved on exact head 707f235f5394c5f446ece49a8fd07865a495268d. Evidence is recorded in the PR body: 20 clean standalone shared-auth runs in separate processes, 20 clean Zalo executions, and three clean original-shard runs with owner siblings (58 files; 692 passed, 2 skipped each).

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper approve

@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: The recorded proof addresses the previous review’s validation gate on exact head 707f235f5394c5f446ece49a8fd07865a495268d. Automerge is labeled armed, but the supplied context does not establish readiness: the latest completed review predates the proof update and still says changes are needed.

Evidence:

  • PR body records 20 standalone shared-auth runs, 20 Zalo executions, and three original-shard runs: 58 files, 692 passed, 2 skipped each.
  • Latest completed review, at 16:08 UTC, requested that proof.
  • Re-review request followed at 16:28 UTC; no completed newer review is supplied.

Suggested next action: Obtain a current-head, current-body review with @clawsweeper review to reassess the documented proof gate.


Source: #166184 (comment)
Assist reasoning: medium.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: The supplied evidence addresses the previous review’s requested proof gate on unchanged head 707f235f5394c5f446ece49a8fd07865a495268d. Confirming the updated proof requires a full re-review.

Evidence:

  • The previous review requested 20 standalone runs, three original-shard runs, and owner sibling coverage.
  • The updated PR body reports 20 separate-process shared-auth runs, 20 Zalo executions, and three 58-file shard passes with 692 passed and 2 skipped each.
  • Exact-head CI is reported clean; individual check results and proof artifacts are absent from the supplied context.

Suggested next action: Request @clawsweeper review to assess the current head and updated PR body.


Source: #166184 (comment)
Assist reasoning: medium.

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: Your comment expresses evidence-based maintainer approval for head 707f235f5394c5f446ece49a8fd07865a495268d. The supplied context does not show a completed review of the updated proof.

Evidence:

  • The PR body records 20 separate-process shared-auth runs, 20 Zalo executions, and three original-shard runs: 692 passed, 2 skipped each.
  • Your 16:30 UTC approval reports clean required CI and P0/P1 AutoReview.
  • The latest supplied ClawSweeper review, completed at 16:08 UTC, still requested that proof. No completed review after the proof update is included.

Suggested next action: Use @clawsweeper review to assess the current head and updated PR body.


Source: #166184 (comment)
Assist reasoning: medium.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. label Oct 6, 2026
@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper approve

@RomneyDa RomneyDa removed the clawsweeper:human-review Needs maintainer review before ClawSweeper can continue label Oct 6, 2026
@RomneyDa
RomneyDa merged commit ec0d57f into main Oct 6, 2026
137 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: zalo Channel integration: zalo clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant