Repository navigation
test: run repeated CLI formatting capacity pairings in process - #14279
Merged
Merged
Conversation
The acceptance matrix started 22 CLI processes for 11 presentations and two outcomes, most of which repeat the same recovery. Keep one real process per encoder boundary (encodeLines, encode, YAML stringify, Markdown), presentation owner (terminal, full envelope, token count and window) and outcome, plus the SIGPIPE case. Check every presentation and outcome pairing in process through createCliResultOutput, including the full-envelope, YAML and Markdown facts.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The PR appears safe to merge; no blocking issue was found. SummaryMoves repeated formatting-capacity checks into the process running the tests, reducing real CLI processes from 23 to 12.
Reviews (2) · Last reviewed commit: "test: run repeated CLI formatting capaci..." · Reviewed by Greptile |
vincentkoc
added a commit
that referenced
this pull request
Nov 24, 2026
…-20261124 * origin/main: (3854 commits) fix(ci): retry recorded crash dependency acquisition without stale index cache (#14076) chore(deps): bump rcssmin from 1.2.2 to 1.3.0 in /website (#14229) chore(deps): bump markdownify from 1.2.3 to 1.2.4 in /website (#14227) ci: compare frozen selections with observed test failures (#14301) ci: record affected-test predictions above the live cutoff (#14300) ci: wait for static checks before broad PR test shards (#14299) ci: validate workflow anchors with actionlint 1.7.12 (#14298) ci: measure portable runner time for recorded selection predictions (#14304) test(pe): distinguish unsupported DOS input from truncated input (#14302) test(go): check build information in a one-directory PE32 fixture (#14303) fix(tests): damage Deno PE resource framing the loader-equivalent reader reads test(go): expect loader-equivalent PE header facts in the MZ diagnostics (#14293) perf(resources): refuse non-ASAR Pickle prefixes without building errors perf(artifacts): reuse the streamed XML plist verdict when classifying perf(artifacts): decide the FAT header once per classified stream test: run repeated CLI formatting capacity pairings in process (#14279) fix(limits)!: make the IL2CPP pointer index adjustable and require owned refusal limits (#14243) fix(artifacts): report S-record data after the final count (#14260) feat(artifacts): report declared DDS, GLB, KTX and KTX2 headers and regions (#14248) fix(pe)!: share one loader-equivalent PE header owner across static readers (#14253) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/acceptance/cliFormattingCapacity.test.tsran 11 presentations × success/failure. That is 22 fresh CLI processes with an encoder loader hook, plus a SIGPIPE case. It was 67.7 s of module time in main CI run 45303778758 and among the slowest acceptance files. Most of the pairings repeat the same recovery increateCliResultOutput. This keeps one real process per distinct behaviour and checks every pairing in process.Real-process cases kept (11 + SIGPIPE)
Each kept case covers a distinct encoder boundary, presentation owner or outcome:
encodeLinesboundary, both outcomes, real failure envelope from a missing targetisTTY) presentationencodeLinesencodeboundary via the token-count presentationencodeboundary via the token window, failure pathyaml.stringifyboundary; parsed recovery document, with and without the envelope## ok/## error.code/## metaheadingsThe kept cases keep every assertion: the exact stderr marker that proves which encoder entry failed,
resource_constraint,--format json,formatted_characters, no[truncated:and noUNKNOWN,target_unavailableon failure, and YAML/Markdown envelope parsing.Pairings moved in process
They moved to
tests/boundary/cli/formattingRecovery.test.ts, under "CLI formatting capacity recovery for each presentation". That table covers all 22 pairings by callingcreateCliResultOutputwith the same parsed CLI arguments. A success value fails at encoding. A completedtarget_unavailablefailure's details exceed a runtime string. Each pairing asserts:resource_constraint,retryable: false,resource: memoryreported_limits.formatandformatted_characters: nulloriginal_failureon failuremeta.durationpresent only with--full-output)error,ok: false,meta.command)formattingRecovery› "human TOON returns a typed formatting constraint after failure"The encoder boundaries those pairings reached are still exercised in a real process by the kept cases above. No capacity limit, refusal reason or recovery assertion was dropped.
Mutation checks
Both mutations were applied to
src/cli/cliResultOutput.ts, then restored.options.fullOutput && !options.tokenWindow). The in-process cases "full TOON token window … after success" and "… after failure" fail. Both pairings were removed from the real-process matrix.original_failurefor YAML. "YAML … after failure" and "full YAML … after failure" fail. The second was removed from the real-process matrix.Timing
cliFormattingCapacitymodule time, CIformattingRecoverymodule time, CIcliFormattingCapacity, localThe PR run is less contended than a 12-shard main run, so the CI before and after figures are not strictly like for like. Estimated saving under main-CI contention: about 11 processes × 2.9 s ≈ 32 s of module time. This is an estimate.
Validation
vitest runon both files passes (46 tests). Built tests ran against a CI-built runtime.oxfmtandoxlintpass on both files.tscover both files reported no errors.verify:architecture-guardspasses.