Repository navigation
[PR] test(#5558): carry no-op receipt regression tests from superseded PR #5564 - #7288
ranxianglei wants to merge 2 commits into
Conversation
…5564 Carries the regression tests from PR #5564 (superseded by #5560) that assert observable no-op receipt fields not covered by #5560's existing tests: - reason === 'noop' and blocksCreated === 0 on the ext-lane no-op path - compressFailStreak not re-armed on a legal no-op - genuine kernel errors (too small) keep the refused receipt - the shared no-op receipt did not change the normal path (applyRanges) Text assertions adjusted to match #5560's receipt wording ('protected' / 'already compressed' instead of the PR's original 'protected zone' / 'already covered'). Closes #5558 (behavior fix already in master via #5560; this adds the regression coverage that PR #5564 carried but never landed).
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.10972-pr.7288.891f797This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr7288.tgz
npm install -g packageInstall instructions are refreshed on each push. |
…nel receipt wording
The carried-over test asserted res.text.includes("already compressed"), but the
kernel's no-op warning for an already-covered range reads "already covered by
active block(s)" (kernel/src/compress.ts:1864) — "already compressed" is the
wording of the refused/error path (gate:already-compressed), not the no-op path.
The assertion therefore failed against master. Align it with #5560's existing
already-folded test, which uses /covered by active block/.
(ai: vllm-qwen/qwen3.8-27b) Duplicate check (查重): Not a duplicate. This is the only open PR carrying the #5558 regression tests — #5564 (the source of these tests) is closed/superseded, and #5560 (the behavior fix) is already merged into master. No other open PR/issue covers this test carry-over. The carry-over is authorized by the directive at #5564 floor 71 (mirror #5566): "carry only those cases into a small follow-up test PR." Review — structured 8 questions (八问):
Fix applied (顺手修, commit 0f94cbb): The carried-over test 2 had a wrong assertion literal — Labels: added Verdict: 可合 (mergeable). After the fix, all 4 tests pass, the existing #5560 suite is green, typecheck is clean, and full CI is green (36 success + 12 skipped, 0 failures). The PR delivers exactly what it set out to: the #5564 regression coverage that never landed, now correctly asserting the observable no-op receipt fields. Merge is yours (human-only). |
Summary
Carries the regression tests from PR #5564 (superseded by #5560) that assert observable no-op receipt fields not covered by #5560's existing tests.
Context
What's carried
New file
tests/issue5558-ext-summary-noop.test.ts(4 tests):reason === 'noop',blocksCreated === 0,compressFailStreaknot re-armed (these assertions are NOT in [PR] fix(compress): return no-op for covered external-summary ranges (#5558) #5560's existingprotected ranges return an idempotent no-optest).reason === 'noop',blocksCreated === 0,compressFailStreaknot re-armed (these assertions are NOT in [PR] fix(compress): return no-op for covered external-summary ranges (#5558) #5560's existingalready-folded ranges return a no-optest).Text assertion adjustment
The PR's original text assertions (
res.text.includes("protected zone")/res.text.includes("already covered")) were adjusted to match #5560's receipt wording ("protected"/"already compressed"), since #5560'sapplyRangesdelegation produces different receipt text than the PR's originalnoopCompressReceipt.Verification
parseCompressInput(compress-tool.ts),applyRanges/RewriteCtx(stream.ts),applyConfiguredCompression(external-summary-compress.ts).Closes #5558 (behavior fix already in master via #5560; this adds the regression coverage).
Supersedes: #5564 (closed as superseded per directive).