Uh oh!
There was an error while loading. Please reload this page.
perf(core): resolveLocalizationContext reads its three keys through settings.getMany (#10826) - #11208
Conversation
…ettings.getMany (#10826) The caller half of #10826 (service half: #11200). One grouped namespace read replaces three per-key get()s — queries 16-18 of 24 on the measured rig collapse to one, with per-key answers unchanged by the service's equivalence contract. Feature-detected: an older service without getMany keeps the three parallel gets (still one leg — this is a query-count fix per the card's own calibration, not a latency fix). A thrown getMany lands exactly where a thrown get did: failed=true and the direct $in fallback, which reads the same three keys. Serial constraint honored: landed after #11197 (#10825) on this file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ✅ What this run could not see
Coarse fallback — 23 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b002e5f2b3f5b8d0f066abdc790f8ce13bbc8f5e && git checkout b002e5f2b3f5b8d0f066abdc790f8ce13bbc8f5e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 21756b3254ed61a6c38baa46642bd003952194b4 09f32b428b581c60a6b2e7949a1de25ecbef28a0 && git checkout -B drift-repro 21756b3254ed61a6c38baa46642bd003952194b4 && git merge --no-ff 09f32b428b581c60a6b2e7949a1de25ecbef28a0
node scripts/docs-audit/affected-docs.mjs --json 21756b3254ed61a6c38baa46642bd003952194b4 |
Uh oh!
There was an error while loading. Please reload this page.
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 32615751699 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
What
The caller half of #10826 (service half merged as #11200):
resolveLocalizationContextprefers onesettings.getMany('localization', [timezone, locale, currency])over three per-keyget()s. Feature-detected — an older service keeps the three parallel gets; a throwngetManylands in the same direct$infallback a throwngetdid (failed = true, #10221's failure-only cache semantics untouched).Calibration (the card's own)
The three reads already ran parallel (1 leg), so this is a query-count fix — 16–18/24 collapse to one — not a latency fix.
Serial constraint honored
Landed after #11197 (#10825) on
resolve-authz-context.ts, per thedomain:engineseat's ruling.Tests
3 new pins (getMany preferred + per-key get never called + zero direct reads; no-getMany fallback keeps three gets; thrown getMany → direct
$infallback runs once).security/suite 63/63 in the file, full security dir green, core tsc unchanged vs main. Changeset included.Closes#10826.
🤖 Generated with Claude Code