Skip to content

test(msteams): remove copied store and own state fixture cleanup - #134973

Merged
steipete merged 1 commit into
mainfrom
codex/test-msteams-state-test-ownership
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-msteams-state-test-ownership

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The shared Teams suite still replays four cases against a locally copied memory implementation after that production owner was removed. The four state suites also allocate twenty-two real temporary roots without assigning their final directory cleanup to the suite owner.

Why This Change Was Made

Keep the real state store as the canonical shared-test subject and delete the copied factory plus its table branch. Use the existing temp tracker in each changed file and invoke resetPluginStateStoreForTests before directory cleanup in one afterAll callback. This preserves database closure before deletion independently of relative hook ordering.

User Impact

Production +0/-0; tests +64/-95 (net -31).

Focused native proof passes 40/40 before and 36/36 after: only the four copied-memory replays disappear. All 24 retained cases in the four changed suites and 12 independent helper cases retain exact native identities, including the quoted state ancestor and repeated poll-row multiplicity. The source inventory retains all 22 real fixture allocations and the existing row/voter caps, concurrent mutations, legacy-file/key-boundary and token-removal assertions.

Evidence

The normal dedicated MSTeams owner suite passes 1541/1541 across 99 files. Four SSO sensitivity runs each retain one exact injected native failure and two skips, without unhandled, extra hook or outer-timeout failures. At setup-after-allocation and settled-after-save boundaries, the baseline root remains after its corresponding file hook; the candidate root is removed before probe/shared cleanup. The settled candidate retains and observes the real DatabaseSync handle closed while the root still exists, before tracker deletion. The launcher records exact original-source restoration after its joined wrapper executions; current SSO bytes match the reviewed candidate. Full changed-file gate exit 0 is confirmed. Scoped Codex autoreview returned no findings at its requested threshold. No hosted CI or landing is claimed.

Named follow-up: Promise.all can reject before a mutation peer settles; reset is not a queue join, and these faults occur only at quiescent boundaries. The four-run observation covers one SSO fixture, not every allocated root, all four files' failure paths, or arbitrary process death. The launcher records wrapper/stream close, not an independent process-group-dead observation. No local Windows handle/deletion proof is claimed. On Windows the two homedir polls fixtures can use worker OPENCLAW_STATE_DIR, so 22 allocated roots need not mean 22 distinct DB paths. The shared newest-personal case's 60s TTL does not replace the 12 independent ranking helper cases. Cleanup adds real work; no SQLite-work reduction, full in-flight cleanup or elapsed speedup is claimed.

The first full-owner invocation used only the JSON reporter and was stopped by the wrapper's no-output watchdog. Repeating the same owner scope with the normal progress reporter passed all 1,541 cases without changing test or hook timeouts. The configured review model was unavailable; the same isolated Codex review workflow completed with its supported public model.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams size: S maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 07:38
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Final landing proof: exact PR head e6669f5 passed CI run 33483137928. Native review and prepare completed successfully. Local proof includes 36 focused cases, all 1,541 Teams owner cases, four source-restoring lifecycle faults, full changed-file checks and scoped Codex autoreview.

Latest ClawSweeper comment 5490566265 is the pickup acknowledgment, with no findings or Rank-up moves to apply. It is not a completed review. Production +0/-0; tests +64/-95. Existing in-flight Promise.all cleanup remains the named follow-up; the fault evidence covers allocation and quiescent post-save boundaries. No Windows-local execution or elapsed-speedup claim.

@steipete
steipete merged commit e8c3fbc into main Sep 1, 2026
167 checks passed
@steipete
steipete deleted the codex/test-msteams-state-test-ownership branch September 1, 2026 07:46
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant