Skip to content

chore(quality): rebaseline the last ceiling the 09-17 merge wave moved - #14016

Merged
diegosouzapw merged 2 commits into
release/v3.8.51from
fix/release-v3.8.51-basereds-0917c
Sep 18, 2026
Merged

diegosouzapw merged 2 commits into
release/v3.8.51from
fix/release-v3.8.51-basereds-0917c

Conversation

@diegosouzapw

@diegosouzapw diegosouzapw commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Único teto remanescente da leva de merges de 2026-09-17.

tests/unit/chatcore-translation-paths.test.ts 3447 → 3449, vindo da #13173 (prefixos de cache de meio de conversa do Fable — as asserções novas daquele caso).

Por que a PR encolheu

Ela carregava três tetos. Os outros dois — src/sse/handlers/chatHelpers.ts e open-sse/handlers/chatCore.ts — foram absorvidos pelos rebaselines que as próprias PRs trouxeram ao mergear depois (a #13720 levou o chatHelpers a 1253, e o chatCore voltou a caber no teto vigente). Em vez de mergear números obsoletos, refiz o branch sobre o tip atual.

Medido limpo no tip 176d632a:

[file-size]      OK — 148 arquivos congelados (4698 verificados)
[test-file-size] OK — 43 test files congelados (5912 verificados)

Registrado, fora de escopo

tests/unit/chatcore-translation-paths.test.ts tem duas falhas de header (buildStreamingResponseHeaders drops upstream compression and framing headers e chatCore strips upstream compression and length headers from streaming responses). Reproduzi as duas em 2fa6ef0b, anterior a toda esta leva — é base-red antigo, precisa de investigação própria e não é tratado aqui.

@diegosouzapw diegosouzapw changed the title fix(quality): document OMNIROUTE_STRIP_SYSTEM_PREAMBLE and rebaseline the second 09-17 wave chore(quality): rebaseline the three ceilings the second 09-17 wave moved Sep 17, 2026
tests/unit/chatcore-translation-paths.test.ts 3447 -> 3449, from #13173 (Fable
mid-conversation cache prefixes — the new assertions for that case).

This is the only one left. The other two this PR originally carried
(chatHelpers.ts and chatCore.ts) were absorbed by the rebaselines the merging
PRs brought with them, so the branch was rebuilt on the current tip rather than
shipping stale numbers. Measured clean: check:file-size and test-file-size both
pass with no violations.
@diegosouzapw
diegosouzapw force-pushed the fix/release-v3.8.51-basereds-0917c branch from 4d4fef0 to fbd9e82 Compare September 17, 2026 22:37
@diegosouzapw diegosouzapw changed the title chore(quality): rebaseline the three ceilings the second 09-17 wave moved chore(quality): rebaseline the last ceiling the 09-17 merge wave moved Sep 17, 2026
@diegosouzapw

Copy link
Copy Markdown
Owner Author

Validated in local merge-train /tmp/mt-basereds.log on 192.168.0.113 @ train tip c2fb6404606064c56520d7b2a148e8770dc70cd0 (boarded #14022 #14016 #14079 #14082): static gates green; test:unit 40635 tests, 17 failing — every one reproduces on the pure release tip 1603c86 (41 failing there; list in the base-red sweep), zero new reds. Merged with --admin per merge-gates §4/§7 (inherited base-reds only).

@diegosouzapw
diegosouzapw merged commit 1b484c5 into release/v3.8.51 Sep 18, 2026
15 of 21 checks passed
diegosouzapw added a commit that referenced this pull request Sep 18, 2026
…rge wave (#14082)

Every PR against release/v3.8.51 is born red on all four Unit Tests fast-path
shards. Reproduced on the pure tip (1603c86): ~35 tests. This commit repairs
the two large clusters plus the stale assertions sharing their root cause
(17 tests); the rest is tracked separately.

RTK (12 tests, real regression): #13521 gated dedup on
  skipFilters || isDocumentLikeRead
but isDocumentLikeRead is true for ANY text whose type detection is unknown —
not only non-shell tool results — so plain repeated tool output (the classic
RTK case) stopped being deduplicated, processRtkText returned no stats, and
rtkEngine.apply().stats.engine came back undefined. The intent of #13388 was
the non-shell-tool skip, which resolveToolMeta already expresses as
skipFilters; dedup now honours only that. The #13521 regression guard
(rtk-file-content-preservation, tool named 'read' → skipFilters) still passes
4/4; rtk-engine is back to 9/9.

Golden + stale assertions (5 tests, product changes never propagated):
- tests/snapshots/provider/translate-path.json: xKiro (#12648) was added to the
  registry without regenerating the snapshot — purely additive entry.
- providers-constants-split: APIKEY_PROVIDER_COUNT 241 → 242 (xKiro).
- tests/snapshots/g13/combo-chatcore-public-seams.json and the three
  Content-Type assertions in chatcore-translation-paths / chat-route-coverage:
  #13419 deliberately made streaming responses declare
  'text/event-stream; charset=utf-8' (Arabic/Persian mojibake) and updated the
  integration test but not these unit assertions.

Before/after on the 26 base-red files: 266 tests, 23 → 18 failing here
(the RTK suites were counted per-file in CI; per-test this is 17 fixed). The
file-size ✗ on chatcore-translation-paths.test.ts is the pre-existing drift
#14016 rebaselines — this commit keeps that file's line count unchanged.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
diegosouzapw#14016)

tests/unit/chatcore-translation-paths.test.ts 3447 -> 3449, from diegosouzapw#13173 (Fable
mid-conversation cache prefixes — the new assertions for that case).

This is the only one left. The other two this PR originally carried
(chatHelpers.ts and chatCore.ts) were absorbed by the rebaselines the merging
PRs brought with them, so the branch was rebuilt on the current tip rather than
shipping stale numbers. Measured clean: check:file-size and test-file-size both
pass with no violations.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…rge wave (diegosouzapw#14082)

Every PR against release/v3.8.51 is born red on all four Unit Tests fast-path
shards. Reproduced on the pure tip (3ce81a1): ~35 tests. This commit repairs
the two large clusters plus the stale assertions sharing their root cause
(17 tests); the rest is tracked separately.

RTK (12 tests, real regression): diegosouzapw#13521 gated dedup on
  skipFilters || isDocumentLikeRead
but isDocumentLikeRead is true for ANY text whose type detection is unknown —
not only non-shell tool results — so plain repeated tool output (the classic
RTK case) stopped being deduplicated, processRtkText returned no stats, and
rtkEngine.apply().stats.engine came back undefined. The intent of diegosouzapw#13388 was
the non-shell-tool skip, which resolveToolMeta already expresses as
skipFilters; dedup now honours only that. The diegosouzapw#13521 regression guard
(rtk-file-content-preservation, tool named 'read' → skipFilters) still passes
4/4; rtk-engine is back to 9/9.

Golden + stale assertions (5 tests, product changes never propagated):
- tests/snapshots/provider/translate-path.json: xKiro (diegosouzapw#12648) was added to the
  registry without regenerating the snapshot — purely additive entry.
- providers-constants-split: APIKEY_PROVIDER_COUNT 241 → 242 (xKiro).
- tests/snapshots/g13/combo-chatcore-public-seams.json and the three
  Content-Type assertions in chatcore-translation-paths / chat-route-coverage:
  diegosouzapw#13419 deliberately made streaming responses declare
  'text/event-stream; charset=utf-8' (Arabic/Persian mojibake) and updated the
  integration test but not these unit assertions.

Before/after on the 26 base-red files: 266 tests, 23 → 18 failing here
(the RTK suites were counted per-file in CI; per-test this is 17 fixed). The
file-size ✗ on chatcore-translation-paths.test.ts is the pre-existing drift
diegosouzapw#14016 rebaselines — this commit keeps that file's line count unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant