Repository navigation
refactor(auth): keep test suites within line limits - #157805
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 10:24 PM ET / September 25, 2026, 02:24 UTC (Revision 2). ClawSweeper reviewWhat this changesMoves fixture constructors and case data from three authentication and prompt-observer tests into adjacent test-support modules to meet the existing line limit. Merge readiness✅ Ready for maintainer review Current main still has the three over-limit test suites, and this branch provides a focused remedy. The introduced changes preserve the reviewed test calls and show no concrete correctness or security defect. Priority: P3 Review scores
Verification
How this fits togetherThese suites exercise OAuth credential refresh, plugin-provider setup, and OpenAI Responses prompt observations. Fixture data feeds the tests, whose assertions check the production behavior during CI. flowchart LR
A[Fixture data] --> B[OAuth refresh tests]
A --> C[Provider setup tests]
A --> D[Prompt observer tests]
B --> E[Test assertions]
C --> E
D --> E
E --> F[CI checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +34. Total +34 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Enforce the existing counted-line budget while retaining the suites' coverage, case order, and fixture evaluation timing. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source and the configured line rule give a high-confidence path to the reported size failure; I did not execute Oxlint in this read-only review. Is this the best way to solve the issue? Yes. The fixture extraction is narrow, leaves production code untouched, and retains the case factories at their prior registration points. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b98500ebcc20. LabelsLabel changes: No label 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)
|
|
Merged via squash.
|
What Problem This Solves
Three authentication and prompt-observer test files exceeded the existing 1,000-line cap and blocked the relevant CI checks.
User Impact
There is no user-visible behavior change. Developers retain all existing test coverage while the suites satisfy the unchanged file-size limit.
Why This Change Was Made
Move fixture constructors and row data into test-support modules. Keep all test callbacks, hooks, mocks, assertions, case order, and fixture values. The OAuth row factories run at the original
it.eachregistration points, preserving whenDate.now()and identity fixtures are evaluated. Production code and lint baselines are unchanged.This focused current-main cleanup was identified during #151608 validation. The separately owned workspace test repair is outside this change.
Evidence