Skip to content

fix(tests): align model-sync log assertion to shipped path redaction (base-red #12732) - #13227

Merged
diegosouzapw merged 1 commit into
release/v3.8.51from
fix/release-v3.8.51-basereds-model-sync-logredaction
Sep 12, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.51from
fix/release-v3.8.51-basereds-model-sync-logredaction

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

What

Clears the one still-live code-level base-red on release/v3.8.51: tests/unit/model-sync-route.test.ts fails on the tip.

The persisted call-log error is now run through sanitizeErrorForLog → errorPathRedaction, which redacts the path to <path> for stored logs (defense in depth — call logs get exported). The live API response to the caller is unchanged (body.error is still /models); only the stored logs[0].error is redacted. The test still expected the pre-redaction /models on the log assertion.

Align logs[0].error to <path>; body.error stays /models. No production change — a test-only alignment to already-shipped redaction.

Verification

node --import tsx/esm --test tests/unit/model-sync-route.test.ts → 18/18 pass. prettier clean.

⚠️ base-red inherited: #12732

The base tip is red under #12732, but that verdict is stale — the release-green continuous runs keep getting cancelled by concurrent merges, so the issue never refreshes. Re-checked each of its 5 HARD failures against the current tip:

  • #12058 canonical mode unit → passes now (4/4), stale.
  • chat pipeline persists Codex responses cache/reasoning to call logs integration → passes now (28/28), stale (and not caused by P2b's video_content_removed column).
  • check:agent-skills-sync → passes now (exit 0), stale.
  • Package artifact: Build provenance check failed + Tarball boot-smoke → build/infra (needs a real pack build; not a code defect this PR touches).

This PR fixes the only code-level red that still reproduces. CI red on this PR is inherited from #12732; the build/infra items will clear on a fresh idle release-green run.

…(base-red)

tests/unit/model-sync-route.test.ts expected the persisted call-log error to be
'Invalid JSON response from /models', but the call-log write now runs the error
through sanitizeErrorForLog -> errorPathRedaction, which redacts the path to
<path> for stored logs (defense in depth for exported call logs). The live API
response to the caller is unchanged (body.error still /models); only the
persisted logs[0].error is redacted. Align the log assertion to the shipped
behavior; body.error assertion stays /models.

No production change — test alignment to an already-merged redaction. Refs base-red #12732.
@diegosouzapw
diegosouzapw merged commit 0431db3 into release/v3.8.51 Sep 12, 2026
15 of 21 checks passed
Githab-capibara added a commit to Githab-capibara/OmniRoute that referenced this pull request Sep 17, 2026
…(base-red) (diegosouzapw#13227)

Merged as part of the 39-PR owner batch of 2026-09-11, validated as a unit.

Boarded into one consolidated worktree cut from `release/v3.8.51` with the other 38 — zero conflicts between them.

- ESLint over every changed file: no errors (the only finding was one suppression entry the batch emptied, pruned on diegosouzapw#13243)
- `typecheck:core` clean; `check:dashboard-typecheck` OK (206 pre-existing, within baseline); `check:changelog-integrity` OK
- complexity 2821 / baseline 3218 and cognitive-complexity 1272 / baseline 1437 — both under baseline
- 256 assertions green: 246 under node:test and 10 under vitest, which is where `tests/unit/**/*.test.tsx` actually runs
- `check-file-size`: `chatCore.ts` rebaselined 6144 → 6146 for diegosouzapw#13278 and diegosouzapw#13276, annotated and landed on diegosouzapw#13243

⚠️ base-red inherited: diegosouzapw#12732 — the provider count (356 in the docs vs the 358 the modules define) and `open-sse/utils/stream.ts` at 3115 > frozen 3098 both reproduce on the pure tip with zero contribution from this batch.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…(base-red) (diegosouzapw#13227)

Merged as part of the 39-PR owner batch of 2026-09-11, validated as a unit.

Boarded into one consolidated worktree cut from `release/v3.8.51` with the other 38 — zero conflicts between them.

- ESLint over every changed file: no errors (the only finding was one suppression entry the batch emptied, pruned on diegosouzapw#13243)
- `typecheck:core` clean; `check:dashboard-typecheck` OK (206 pre-existing, within baseline); `check:changelog-integrity` OK
- complexity 2821 / baseline 3218 and cognitive-complexity 1272 / baseline 1437 — both under baseline
- 256 assertions green: 246 under node:test and 10 under vitest, which is where `tests/unit/**/*.test.tsx` actually runs
- `check-file-size`: `chatCore.ts` rebaselined 6144 → 6146 for diegosouzapw#13278 and diegosouzapw#13276, annotated and landed on diegosouzapw#13243

⚠️ base-red inherited: diegosouzapw#12732 — the provider count (356 in the docs vs the 358 the modules define) and `open-sse/utils/stream.ts` at 3115 > frozen 3098 both reproduce on the pure tip with zero contribution from this batch.
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