Skip to content

fix(workboard): await concurrent test cleanup - #147218

Closed
vincentkoc wants to merge 1 commit into
mainfrom
fix/workboard-await-concurrent-cleanup
Closed

vincentkoc wants to merge 1 commit into
mainfrom
fix/workboard-await-concurrent-cleanup

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Related: #147191

What Problem This Solves

The concurrent attachment-deletion regression test starts asynchronous SQLite cleanup without waiting for it, failing the existing floating-promise lint check.

User Impact

The test waits until both SQLite owners close and its temporary directory is removed before finishing. Production behavior is unchanged.

Why This Change Was Made

Await the existing harness cleanup in the test's finally block, after resuming and settling deletion, matching the other concurrent-store tests.

Evidence

  • The failed lint job identifies this one missing await at extensions/workboard/src/store.test.ts:4506.
  • Source review confirms the harness's async cleanup joins both SQLite owners before removing its directory. git diff --check passes; autoreview found no actionable issue.
  • Crabbox at f0e6a3651967707c88acb59db9ca2c4c07159782: the attachment deletion/recreation race test passed (1 passed; 148 filtered out); scoped lint passed. The command verified the source SHA and clean tracked tree before and after execution.
  • The normal lint gate passed on the same head. The complete required CI rollup is green on that head. The exact-head ClawSweeper review has no actionable findings or before-merge moves.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 17:24
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 1:40 PM ET / 17:40 UTC (Revision 2).

ClawSweeper review

What this changes

The Workboard attachment-race test now waits for both SQLite owners and temporary-directory cleanup before finishing.

Merge readiness

✅ Ready for maintainer review

This remains a useful, correct cleanup fix: fetched main still leaves the asynchronous cleanup unawaited. No actionable correctness or security findings remain.

Priority: P3
Reviewed head: f0e6a3651967707c88acb59db9ca2c4c07159782

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair supported by the async cleanup contract and passing exact-head lint.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test-only repair is exempt from external-contributor runtime proof; the captured targeted test result and verified exact-head lint support the changed cleanup path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored test-only repair is exempt from external-contributor runtime proof; the captured targeted test result and verified exact-head lint support the changed cleanup path.
Evidence reviewed 6 items Introduced change and cleanup contract: The verified merge-base-to-head patch only adds await at line 4506. The complete affected test resumes and settles deletion first; its existing async cleanup helper awaits both database owners before removing the directory. Neighboring concurrency tests already await this helper.
Database close is asynchronous: The SQLite facade returns a closing promise that drains admitted operations, settles initialization, and completes connection and worker cleanup. Awaiting the existing harness preserves that lifecycle without changing production code.
Still necessary on fetched main: The same test on fetched main still calls harness.close() without await.
Findings None None.
Security None None.

How this fits together

Workboard stores task cards and attachments in SQLite. Its concurrency tests use two database owners to simulate overlapping operations; cleanup must finish before the test returns.

flowchart LR
 A[Attachment race test] --> B[Resume paused deletion]
 B --> C[Wait for deletion]
 C --> D[Close both SQLite owners]
 D --> E[Remove temporary directory]
 E --> F[Finish test]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep cleanup within the test’s awaited lifecycle using the existing harness, without adding helpers or weakening assertions.

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

Yes, source establishes the defect: fetched main discards the promise from asynchronous harness cleanup. The linked lint failure and exact-head passing lint support it; no local execution was performed.

Is this the best way to solve the issue?

Yes. Awaiting the existing cleanup operation is the smallest repair and matches sibling tests without changing their behavior or coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a narrowly scoped test-cleanup correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored test-only repair is exempt from external-contributor runtime proof; the captured targeted test result and verified exact-head lint support the changed cleanup path.

Evidence

What I checked:

  • Introduced change and cleanup contract: The verified merge-base-to-head patch only adds await at line 4506. The complete affected test resumes and settles deletion first; its existing async cleanup helper awaits both database owners before removing the directory. Neighboring concurrency tests already await this helper. (extensions/workboard/src/store.test.ts:4506, f0e6a3651967)
  • Database close is asynchronous: The SQLite facade returns a closing promise that drains admitted operations, settles initialization, and completes connection and worker cleanup. Awaiting the existing harness preserves that lifecycle without changing production code. (extensions/workboard/src/sqlite-store.ts:233, f0e6a3651967)
  • Still necessary on fetched main: The same test on fetched main still calls harness.close() without await. (extensions/workboard/src/store.test.ts:4506, f96fed1a7cc0)
  • Related merged work and routing history: Current-main history includes the SQLite worker refactor and the attachment-deletion change in fix(workboard): keep attachment deletion in its SQLite owner #147191. GitHub commit metadata identifies steipete as the worker-refactor author and shows the helper becoming asynchronous. Local deep blame and parent-blob comparison could not complete because historical objects were unavailable; no introduction claim relies on those failed inspections. (extensions/workboard/src/store.test.ts:167, 38fb08d04bd4)
  • Latest-release comparison: The latest supplied release, v2026.9.4, contains the concurrency harness but not this attachment-recreation regression test. No released fix for this test cleanup is claimed. (extensions/workboard/src/store.test.ts, 3a9d69db306c)
  • Validation and re-review continuity: The linked normal lint job succeeded on the exact reviewed head. The captured PR body also reports the targeted Crabbox race test passing. The previous completed review covered this same head and retained no findings or rank-up moves. This review ran no tests; the read-only diff check passed. (f0e6a3651967)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (1 earlier review cycle)
  • reviewed 2026-09-13T17:33:05.756Z sha f0e6a36 :: needs maintainer review before merge. :: none

VACInc added a commit that referenced this pull request Sep 13, 2026
Allow independent reasoning effort and Fast mode for OpenClaw model-backed command and widget approval reviews. Both settings are optional; Fast mode maps to the supported provider processing tier through the shared completion path.

Validated with 272 focused tests, production typechecking, type-aware lint, and configuration inventory checks. ClawSweeper reviewed the exact head with no actionable findings. Existing configs retain their defaults; remove the new optional keys before downgrading.

Merged under the operator-approved exception for the unrelated Workboard missing-await lint failure on main (repair tracked in #147218). All other CI checks passed.
@vincentkoc

Copy link
Copy Markdown
Member Author

Superseded by #147203, merged as fc19759.

That commit adds the same await harness.close() at extensions/workboard/src/store.test.ts:4506; the complete file blob matches this PR. Independent verification confirmed equivalence. Native merge correctly stopped with no net change, so this PR was not merged. Closing the duplicate while retaining its focused test and lint evidence above.

@vincentkoc vincentkoc closed this Sep 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…aw#147192)

Allow independent reasoning effort and Fast mode for OpenClaw model-backed command and widget approval reviews. Both settings are optional; Fast mode maps to the supported provider processing tier through the shared completion path.

Validated with 272 focused tests, production typechecking, type-aware lint, and configuration inventory checks. ClawSweeper reviewed the exact head with no actionable findings. Existing configs retain their defaults; remove the new optional keys before downgrading.

Merged under the operator-approved exception for the unrelated Workboard missing-await lint failure on main (repair tracked in openclaw#147218). All other CI checks passed.
@RomneyDa
RomneyDa deleted the fix/workboard-await-concurrent-cleanup branch October 22, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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