Repository navigation
test(scripts): batch accepted Docker stats fixtures - #134133
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 9:34 AM ET / 13:34 UTC. ClawSweeper reviewWhat this changesThe PR combines six accepted Docker-stats parsing cases into one mixed streamed fixture while retaining separate rejection and memory-streaming checks. Merge readinessNo blocking correctness finding: the mixed fixture retains the accepted-input checks through peak and exact sample-count assertions, while rejection and streaming guards remain separate. Current main does not contain this consolidation, and the MEMBER-authored, maintainer-labeled PR needs an explicit maintainer merge decision. Priority: P3 Review scores
Verification
How this fits togetherDocker E2E runners write resource samples to a stats log, then a Node assertion script parses the stream and enforces memory and CPU ceilings. This PR changes the focused test fixture for that script, not the production assertion or Docker runners. flowchart LR
A[Docker stats log] --> B[Focused test fixture]
B --> C[Resource ceiling assertion]
C --> D[Streaming line parser]
D --> E[Peak and sample accounting]
E --> F[Test result]
Decision needed
Why: The protected maintainer label and MEMBER authorship require explicit human handling, although source review found no discrete defect. Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -38. Total -38 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the production assertion unchanged and merge the fixture consolidation if the responsible maintainer accepts the reduced test-process overhead. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates deterministic test fixtures rather than reporting a product defect. The supplied focused test result covers the changed test surface. Is this the best way to solve the issue? Yes. One mixed stream exercises the parser’s accepted line formats and terminal-row exclusion together, while separate tests preserve distinct failure behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 87dba63ec9c5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Validated head All eight focused tests passed. One real streamed CLI invocation covers the six accepted input scenarios and terminal-row exclusion through exact sample-count and peak assertions; separate rejection and streaming guards remain. Five Node child launches and temporary roots are removed. Production +0/-0; tests +17/-55. Local suite time was 476.8 ms before and 364.0 ms after. The full changed-file gate, formatting/diff checks and structured Codex review passed. I read the latest full ClawSweeper review and its Rank-up moves; there are no actionable code findings. Exact-head CI and the evidence above address the remaining validation requests. |
|
Merged via squash.
|
What Problem This Solves
Six accepted-input Docker stats cases each create a temporary log and launch the same Node CLI, despite the parser supporting mixed streaming samples.
Why This Change Was Made
Use one mixed log with LF, a padded sample, an exactly capped CRLF line, standalone CR separators, byte-unit memory and a terminal zero-capacity row. Require exactly six counted samples, the original memory/CPU peaks and the exact line-cap boundary. Retain every distinct rejection and streaming-memory guard.
User Impact
No resource policy or runtime change. Five fewer Node processes and temporary roots; thirteen tests become eight while retaining all accepted-input scenarios. Production +0/-0; tests +17/-55.
Evidence
{"numPassedTests":8,"numFailedTests":0,"numPendingTests":0,"success":true}Local suite time decreased from 476.8 ms to 364.0 ms; not a CI-wide benchmark. The six-sample assertion detects dropped accepted rows or an incorrectly counted terminal row. Malformed JSON, invalid limits and fields, oversized lines, terminal-only logs, nonpositive memory and streaming-memory coverage remain. Full changed-file gate, formatting, diff check and structured Codex autoreview pass.