Skip to content

setup: the MesloLGM Nerd Font on every Mac that lacks it, pinned by sha256 (hosted Macs M3) - #156

Merged
SSFSKIM merged 2 commits into
masterfrom
hosted-font-cask
Oct 26, 2026
Merged

SSFSKIM merged 2 commits into
masterfrom
hosted-font-cask

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Part of hosted Macs M3 (ci-kit spec docs/doperpowers/specs/2026-10-26-maws-hosted-mac-design.md, the architect's font ruling). The e2e group settings uses MesloLGM Nerd Font Mono. Its :429 case skips without the font, so a desktop that lacks it runs fewer tests than the mini does. Until now only the mini had the font, installed by hand.

.github/ci-setup.sh now installs the font on a Mac that lacks MesloLGMNerdFontMono-Regular.ttf:

  • it downloads Nerd Fonts 3.5.1 Meslo.tar.xz and checks its sha256 (6b6624632dc6873dfb7681c3f818e7c01ab601ab707690b6440933bbe57e2b11) before unpacking;
  • it installs only the four MesloLGM Mono files into ~/Library/Fonts;
  • a mismatch or a failed download refuses setup with a clear message and exits 1;
  • Linux never fetches.

A Homebrew cask in .github/ci-kit.yml was the first route. It would fail every setup on the mini, because Homebrew refuses to overwrite a font it did not install (--adopt included). ci-setup.sh runs in the guest's bakes too, so the guest takes the font at its next bake.

Validation Evidence

  • Class 1a static on 5a4598c: scripts/ci-gate.sh … --gates static → run 40290377952 success.
  • Tests: ci-setup.test.mjs passes 15/15. They cover:
    • a font already present means no fetch;
    • a sha256 mismatch refuses and installs nothing;
    • a failed download fails setup;
    • Linux never fetches.
      The success path also ran for real under a scratch HOME and installed the four files.
  • Hosted Mac: scripts/ci-gate.sh 5a4598c8d --gates e2e:settings --runner macos --lane hosted → run 40290727230 (maws-app 40290837337).
    • The font installed from the pinned archive, and settings' Nerd Font case :429 ran and passed.
    • The run is red for another reason: :478, a 1512x982 window clamped by the hosted Mac's Dock. That is fixed separately by hiding the Dock on the hosted Mac.
  • Review: doperpowers:reviewer-high found no material findings. It downloaded the pinned release independently to confirm its sha256 and the four extracted files.
  • Not yet exercised live: the mini's skip path (its font is present) and the guest's bake. The next Mac jobs and bake show them.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

settings' Nerd Font case skips on a Mac without MesloLGM Nerd Font Mono, so
its count lines differ between desktops: the hosted Macs and the guest lack
it, the mini has it. ci-setup.sh installs font-meslo-lg-nerd-font where the
font file is missing, and keeps a font that is already there. The cask is not
on ci-kit.yml's list: ci-kit reads presence from Homebrew alone, the mini's
font was installed by hand (72 files in ~new/Library/Fonts, no cask), and
Homebrew refuses to overwrite a font it did not put there, so the listed cask
would fail every job's setup on the mini.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
The font comes from the Nerd Fonts release 3.5.1's Meslo.tar.xz, checked
against its sha256 before it is unpacked, as maws-app-scan.sh pins gitleaks;
a mismatch or a failed download refuses setup. Only the four MesloLGM Nerd
Font Mono files are installed, into ~/Library/Fonts, and only where the font
is missing. Homebrew's cask followed whatever version its API named.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T08:35:22.570202Z 5a4598c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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