Repository navigation
test: stabilize auth and lifecycle fixtures - #129397
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
06aea25 to
692a593
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 12:08 PM ET / 16:08 UTC. ClawSweeper reviewWhat this changesThis PR updates three tests to remove retired Claude file-discovery coverage, guarantee compaction fixture cleanup, and isolate model-selection tests from heavyweight imports. Merge readiness✅ Ready for maintainer review The prior cleanup finding is fixed: all registry and timer setup now falls inside fixture-owned cleanup scopes. No new patch defect was found; keep this maintainer-authored PR open for normal exact-head CI and merge handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThese tests cover onboarding’s ambient credential discovery and agent runtime preparation. They use local filesystem, process-registry, and import fixtures to keep focused test behavior isolated from unrelated runtime state. flowchart LR
A[Credential fixture] --> B[Onboarding discovery]
C[Process fixture] --> D[Compaction context]
E[Focused mocks] --> F[Model selection]
B --> G[Focused test results]
D --> G
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the focused fixture repairs once exact-head CI completes successfully; keep the model-selection differential suite limited to its selection contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR repairs test isolation rather than reporting a user-facing behavior defect; its focused test results are reported in the PR body. Is this the best way to solve the issue? Yes. Cleanup is now owned by each registry-mutating fixture, and the import mocks follow the scoped guidance for focused, import-bound agent tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecf06317796c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
6c3b416 to
c311e9f
Compare
c311e9f to
b85bc4b
Compare
|
Improved: Auth and lifecycle tests now isolate process state, retain current ambient-auth coverage, and avoid unrelated runtime imports. |
Stabilize auth and lifecycle test fixtures by removing retired Claude file-auth coverage, isolating process registry state, and avoiding heavyweight turn-model imports. Refs openclaw#129052.
Summary
Combine three test-only repairs for stale auth coverage, leaked fixture state, and heavyweight module loading.
Changes
Onboarding Ambient Discovery
#129052 removed Claude credential-file discovery when native Claude authentication ownership moved back to the CLI. Remove the obsolete Claude fixture while retaining Codex discovery coverage.
Compaction Runtime Context
Stop compaction context tests from depending on the non-isolated runner's global process-registry reset. Use a unique scope and same-instance cleanup for the integration case, while leaving ordering coverage with the dedicated process-reference suite.
Turn Model Differential
Mock unrelated thinking and message-channel helpers so the focused model-selection suite does not load heavyweight runtime barrels during collection.
Performance
Verification
git diff --check