Skip to content

fix(docker,mcp): install Unicode/CJK fallback fonts and deduplicate omitted line marker - #1298

Merged
kyasbal merged 1 commit into
mainfrom
push-wwrnyxqtnpmq
Nov 27, 2026
Merged

kyasbal merged 1 commit into
mainfrom
push-wwrnyxqtnpmq

Conversation

@kyasbal

@kyasbal kyasbal commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

Fixes two visual defects in headless Chromium render_timelines PNGs produced by the default Docker image (targeted for v0.62.1):

  1. Install Unicode symbol and CJK fallback fonts in default and CI builder images:
    • Add fonts-dejavu-core and fonts-noto-cjk to Dockerfile (default stage only; slim has KHI_MCP_DISABLE_RENDERER=true and needs no server-side fonts) and scripts/builder/Dockerfile (for CI/VRT Chromium parity).
    • Resolves tofu (□) glyphs in container-rendered PNGs for Kubernetes Event summary brackets (【OOMKilling】, 【BackOff】), Evidence Deck fold indicators (⋮), arrows (→), and CJK text in logs or annotations.
  2. Deduplicate the ⋮ prefix on Evidence Deck omitted-line bands:
    • Remove the redundant "⋮ " prefix from makeLogOmittedLine (pkg/server/mcp/scene/slice_log.go) and makeDiffOmittedLine (pkg/server/mcp/scene/slice_diff.go), since timeline-evidence-deck.component.html already prepends ⋮ (⋮) and all frontend specs/stories expect plain "N lines omitted" text.
    • Update affected pkg/server/mcp/scene unit test expectations accordingly.

Verification

  • make pre-commit (add-licenses, golangci-lint, qa-fast-must): PASS (0 issues, 0 mustfix, 0 advisory, 0 skipped).
  • make pre-push (qa-all-must including cross-OS build-go-binaries, deadcode, AST, differential coverage, and unlimited mutation testing): PASS (0 mustfix, 0 advisory, 0 skipped).
  • go test ./pkg/server/mcp/...: PASS.
  • Rebuilt Docker default image locally and verified render_timelines annotated scene + Evidence Deck PNG inside the container: confirmed 【OOMKilling】, 【BackOff】, CJK text, →, and single ⋮ N lines omitted bands render crisply without tofu or duplicate symbols.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the vertical ellipsis character (⋮) from the text representation of omitted lines in slice diffs, logs, and manifests, and updates all corresponding test assertions. Additionally, it adds the fonts-dejavu-core and fonts-noto-cjk packages to both the main and builder Dockerfiles. There are no review comments, and I have no feedback to provide.

@github-actions

Copy link
Copy Markdown

Go Quality Report (origin/main) — ✅ PASS

Metric Result
Changed Scope 2 prod file(s), 6 test file(s), 2 unit(s)
Patch Coverage 100.0% (2/2 lines)
Mutation Score 100.0% (0/0 killed, 0 survived)

Commit: ea82c1e4a2d8 · Cloud Build Logs

@kyasbal
kyasbal added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 0436a85 Nov 27, 2026
23 checks passed
@kyasbal
kyasbal deleted the push-wwrnyxqtnpmq branch November 27, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant