Repository navigation
fix(ci): isolate config recovery proof - #120847
Conversation
|
@clawsweeper review This exact head repairs a current-main CI blocker reproduced twice on #119520 and once from a fresh current-main clone. The generic recovery integration fixtures now isolate HOME/config/state/plugin discovery and use core-owned gateway data; channel- and plugin-specific recovery cases remain unchanged. Full focused proof passes 51/51 in 9.26 seconds, the former timeout case completes in 213ms, and fresh autoreview is clean. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Codex review: needs maintainer review before merge. Reviewed August 9, 2026, 12:41 AM ET / 04:41 UTC. ClawSweeper reviewWhat this changesThe PR gives config-recovery tests an isolated home, config, state, and plugin-discovery environment while using core-only data for generic recovery cases. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this is a focused, correct test-fixture isolation repair for a current-main CI timeout. It is maintainer-labeled and should follow normal maintainer merge handling rather than automated cleanup. Priority: P2 Review scores
Verification
How this fits togetherConfig recovery reads backup and current configuration data, validates it through plugin-aware config metadata, and restores suspicious reads. This test suite drives that real recovery path and reports CI reliability for the configuration boundary. flowchart LR
A[Test fixture] --> B[Case-specific environment]
B --> C[Configuration I/O]
C --> D[Plugin-aware validation]
D --> E[Recovery and audit state]
E --> F[Focused CI proof]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -2. Total -2 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the hermetic fixture boundary, retain the direct channel-bearing recovery cases, and merge after normal exact-head maintainer checks. Do we have a high-confidence way to reproduce the issue? Yes: the PR records the exact current-main recovery test timing out at 120 seconds, and the inspected fixture path explains its ambient bundled-plugin discovery dependency. Is this the best way to solve the issue? Yes: isolating the test-owned environment fixes the nondeterministic fixture boundary while preserving real configuration recovery and separate channel-specific coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7f3cc6995bc6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where the config recovery proof could time out in the compact Node CI shard while cold-loading bundled channel doctor contracts that the tested recovery behavior did not require. This currently blocks otherwise unrelated pull requests, including #119520.
Why This Change Was Made
The recovery integration helper now owns an isolated per-case HOME, config path, state directory, and plugin-discovery environment while preserving caller-provided environment object identity for rollback assertions. Generic recovery fixtures use core-owned gateway data for size-drop and restore scenarios; the separate channel- and plugin-specific recovery cases remain unchanged.
This keeps the real
createConfigIOrecovery, migration, validation, recursive reread, SQLite health state, audit, and clobber-snapshot path under test without charging an unrelated bundled Telegram doctor-contract module graph to the first generic case.User Impact
No product behavior changes. CI no longer flakes at the 120-second per-test limit because generic config recovery proof is independent of ambient host/workspace plugin state.
Evidence
Current-main reproduction before the fix:
The same untouched case failed twice in exact-head CI jobs
93184843124and93186417445after 3,132 sibling tests passed. Sampling showed synchronous dynamic module evaluation rather than SQLite lock waiting.After the isolation repair:
The formerly failing exact case completes in 213ms.
git diff --check, targeted formatting, and fresh autoreview passed with no accepted/actionable findings.