Repository navigation
test(msteams): remove copied store and own state fixture cleanup - #134973
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
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. |
|
Merged via squash.
|
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.