Trim the test suite, close coverage gaps, and parallelize CI - #834
Merged
TheGreatAxios merged 18 commits intoSep 10, 2026
Merged
Conversation
TheGreatAxios
commented
Sep 9, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Greybeard · Comment
The bar is sound (tests pin behavior, not copy); the lint heuristic and the trim both over-own it.
Findings
scripts/eval-capability.test.ts/scripts/eval-public-swe-one.test.ts— unique CLI coverage (parseArgs, mapPool, effort validation) deleted because those files were outsidebun run testpath list. Suite membership owns "this test runs," not deletion. Enroll them under./src,./tests, or./evals(or add./scriptsto the suite). Do not delete the contracts.tests/unit/tui/tool-formatter-web-brand.test.ts(deleted) /src/tui/tool-formatter.ts:54—setActiveWebProviderBrandintohumanizeToolName(branded web tool names; non-web tools unchanged) is product behavior. No remaining test covers it. Restore.scripts/eslint-rules/no-content-pin-tests.ts/AGENTS.md:38— error-level shape match is the wrong owner of a semantic bar. It cannot tell copy from plugin identity, frontmatter flags, or fork-boundary policy; its own tests treatmanifest.id === "corbits-skills"as a wording pin (tests/unit/eslint-rules/no-content-pin-tests.test.ts:32). Evidence it already distorts:tests/unit/corbits-skills-catalog.test.tswas rewritten into violation collectors to evadeexpect(skill).not.toContain(...). AGENTS.md already owns the bar. Drop the rule, or keep it as a documented heuristic that is not the definition of "behavioral."AGENTS.md:52— still saysbun run testis "the same suite CI runs." CI now shards viatest:paths(package.json:36,.github/workflows/ci.ymltest matrix). Path-union (tests/unit/check-gate.test.ts:47) is not the same isolation domain: mock.module leaks across./srcvs./testsno longer fail in CI (CL-6967). Tell the truth: localbun run testremains the one-process suite; CI shards for wall clock.package.json:36—test:pathswith zero args isbun testover the whole tree, includingvendor/. The vendor-exclusion constraint lives only on thetestscript. Fail closed (require paths, or alias totest).
Notes
Palette hex/ANSI pins, splash copy, and animation-frame pins were correctly dropped. Duplicate faremeter / inference-abort / consumeStream copies were real duplicates. The 401-not-sleep mount-gate fix owns flake at the retry classifier. New coverage (git-global-config wrappers, torn base JSONL, exec close, session-queue race, MCP schema drift) is the right spend of the freed budget. YAML paths: completeness is fail-closed today and brittle the moment another paths: key appears.
TheGreatAxios
force-pushed
the
cl-7514-trim-content-pin-and-cosmetic-tests-from-the-suite
branch
from
September 9, 2026 23:35
dd1c5a4 to
d42187d
Compare
The suite pinned packaged skill prose, palette hexes, ANSI-256 indexes, display-name branding, and animation frames, and carried duplicated copies of faremeter, stream-consumer, and inference-abort coverage. Those broke on every wording or palette edit without guarding behavior, and two eval test files were never run at all. Manifest, inventory, frontmatter-flag, and behavioral invariants stay.
sh -c, xargs, transparent env prefixes, and quoted program/flag spellings previously had no coverage for the git-global-config rule; only the plain forms were pinned. Assert they all still ask, and that scoped read-only git config forms stay unflagged.
Existing torn-tail tests only tear a tail segment behind a clean turns.jsonl. A session small enough to never roll over tears the base the isogit store parses first, which takes the resilient recovery path instead. Pin that the base-only tear recovers committed turns, extra segments survive it, and the next write heals the file.
Pin that disposeExecRuntime cancels all live workers with the close reason before agent teardown starts, and that a rejected agent close neither blocks toolset disposal nor rejects the teardown.
Cover the enqueue-during-await race: a rotation queued while a delivery is still awaiting its send must wait for the delivery to settle, and a failed delivery must not block the rotation behind it.
The connect mock served one static tool payload, so reconnect tests could not observe a server whose tools changed between generations. Parameterize the payload and pin that reconnect mounts exactly the drifted set: renamed schema on the same tool, a new tool, a single definition per name, the stale client closed, and the drift announced through onToolsChanged.
The mount-gate probes await a full runSubAgent cycle whose inference send to an unreachable host classifies as retryable, so each test slept through the client's full backoff schedule (three attempts, 500ms plus 1000ms fixed) before asserting mount counts. Under suite load that crossed the 5s per-test timeout. Point the send at a local server answering 401, which classifies credential_failure and never retries, and give the four full-runtime probes a 15s timeout to absorb construction-time load spikes.
Tests that pin an asset's literal wording or an exact palette value fail on copy and design edits while catching no behavior regression, and an audit found most low-value tests shared that shape. A local eslint rule now rejects the known shapes in test files; it is a heuristic shape match, calibrated to stay silent on behavior-string assertions like command parsing, approval display, and permission tokenization.
Unique CLI and web-brand contracts were deleted because they sat outside the suite path list. Membership owns that, not deletion. AGENTS.md owns the behavioral bar; an error-level shape-match lint rule does not. test:paths now requires paths so a zero-arg run cannot scan vendor/.
TheGreatAxios
force-pushed
the
cl-7514-trim-content-pin-and-cosmetic-tests-from-the-suite
branch
from
September 10, 2026 03:14
13967db to
4e53901
Compare
846 reaps the toolset before cancel/close and fail-closes a rejected agent.close. The coverage added here now asserts that order.
protect-main still requires prettier, eslint, typecheck, and build-and-test. Alias jobs go green only after static-analysis / build / the test shards succeed.
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
Verification
Fixes CL-7514
Fixes CL-7515
Fixes CL-7513
Fixes CL-7516