Repository navigation
Harness score: class-only tests are left out of the headline and must each have a passing successor - #3387
Merged
Conversation
… each have a passing successor
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
…thout it is refused
…is not class-only, and one successor stands for at most four
This was referenced Nov 27, 2026
Merged
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.
The harness score can now leave class-only tests out of its headline and check that each has a successor. The list is empty in this PR, so the score does not change; each group adds its rows in the PR that writes the successors.
This follows arch's ruling for the harness gap: a Think test that reaches its behaviour through something private to the class (a row seeded in a private shape, a private method, a private timing seam) gets a successor through the public API that runs on both configs, is marked class-only, and is deleted with the class code.
What changes
packages/think/harness-class-only.json(new,[]): a list of{ file, test, reason, successor: { file, test } }.fileis relative tosrc/tests,testis the full name as the score writes it (describe > … > name), andreasonnames the private row, method or seam.scripts/harness-class-only.ts(new): reads the list, checks it against a run, and renders the table.scripts/harness-compat.ts:needThinkandneedThinkPassed; the per-file counts andpassingin the json are unchanged, so per-file comparisons still work;classOnly, the count;harness-compat.mdprint the score asN of M (K class-only, each with a successor), and the md ends with the class-only table (old test, what it reaches, successor) when the list is not empty.pnpm test:harnessand in--check. The run exits 1, and writes nothing, when:A successor's pass on the class config is the ordinary suite's (
pnpm test:workers, which CI runs); the md says so.Checked
pnpm test:harnessregeneratedharness-compat.mdandharness-compat.jsonwith the empty list:321 of 1299 (0 class-only, each with a successor) tests that construct Think pass (24%); 616 of all 1594. The recorded score was 294 of 1296; the difference is what has merged on main since it was last recorded, not this PR.One test left the recorded baseline, and it is a real regression on main, not this PR:
durable-admission.test.ts > … > runs however long it waited: its question is never droppedpassed when the score was last recorded (#3349) and now fails on the harness-backed Think every time (3 of 3 alone:expected 'two' to be 'q0 q1 q2 ').test:harness:checkis not run in CI, so nothing flagged it. I have reported it to the harness's owner; regenerating records what main does today.There is no test suite for
scripts/, so none is added.For takers
Add your rows to
harness-class-only.jsonin the PR that adds the successors, and state the class-only count before and after next to the score.