Managed Neovim + WezTerm CI Smoke Checks
The CI matrix includes an isolated full lifecycle on Ubuntu, macOS, and Windows. It plans and applies the minimal profile, renders local override templates, verifies a second apply is idempotent, exercises backup/remove/restore, checks doctor text and JSON, and injects a transactional failure to verify automatic rollback. The test sets temporary HOME/XDG roots and disables dependency and network installation.
Additional validation now includes all tracked maintained Bash files, all setup and wrapper PowerShell files, tracked JSON/TOML/YAML/KDL/Lua configuration, generated lock and completion drift, Python 3.12 and 3.13, and a 50% Python coverage floor.
This note documents the low-risk CI checks for managed terminal/editor config under:
home/.config/nvim/home/.config/wezterm/home/.config/ghostty/
What exists today (relevant context)#
- Neovim config bootstraps
lazy.nvimby cloning from GitHub if missing, then loads plugin spec/imports via LazyVim. - WezTerm config is modular Lua, with dynamic event/module loading and optional local override from
~/.config/ooodnakov/local/wezterm.lua. - Ghostty config is a single
key = valuefile with an optionalconfig-fileinclude for~/.config/ooodnakov/local/ghostty.conf; the Noctalia theme lives inhome/.config/ghostty/themes/Noctalia. .github/workflows/ci.ymlruns static smoke checks for managed Neovim, WezTerm, and Ghostty config on Linux, macOS, and Windows, alongside shell syntax, Python lint/format, lock reproducibility, optional-dependency drift, andoooconfsmoke checks.
Definitely safe now (low flake risk)#
These checks are deterministic and do not depend on GUI/session state.
Neovim#
- JSON validity checks
- Validate
home/.config/nvim/lazy-lock.json- Validatehome/.config/nvim/lazyvim.json- Command idea:python3 -m json.tool <file> > /dev/null - Managed file presence checks
- Ensure at least these files exist:
home/.config/nvim/init.luahome/.config/nvim/lua/config/lazy.lua
WezTerm#
- Managed entrypoint presence checks
- Ensure these files exist:
home/.config/wezterm/wezterm.luahome/.config/wezterm/config/init.lua
- Reference asset presence checks (if configured as defaults) - If a default backdrop list is expected, ensure files referenced by default config exist.
Ghostty#
- Managed entrypoint presence checks
- Ensure these files exist:
home/.config/ghostty/confighome/.config/ghostty/themes/Noctalia
- Static syntax and reference checks
- Parse every non-comment line as
key = value- Ensure eachkeybindvalue contains both a trigger and an action - Ensure the configuredthemefile exists underhome/.config/ghostty/themes/- Ensure theconfig-fileinclude stays optional (?prefix) so a fresh clone works without a local override - Ensure everycustom-shaderpath exists and definesmainImage- Ensure the theme defines palette indexes 0–15 as hex colors
Possible with extra setup (good value, but adds runtime/dependency complexity)#
Neovim (macOS)#
-
Headless startup sanity - Install Neovim in CI. - Run with isolated temp dirs to avoid mutating runner state:
XDG_CONFIG_HOME=$PWD/home/.config- temp
XDG_DATA_HOME/XDG_STATE_HOME/XDG_CACHE_HOME - Example:
nvim --headless '+qall' - Caveat: first run may clone
lazy.nvim; plugin bootstrap/network outages can make this flaky.
-
Pinned plugin lock consistency - Run Lazy lock/check command headlessly and compare lockfile diff. - Useful, but more likely to break due to upstream/plugin API changes.
WezTerm (Windows)#
-
Config load check via WezTerm CLI - Install WezTerm in CI. - Run a command that loads config without opening a full GUI session (platform-specific). - Caveat: runner platform differences and font availability can cause false negatives.
-
Lua syntax check for all WezTerm Lua files - Install Lua toolchain and run parse-only checks (
luac -p) forhome/.config/wezterm/**/*.lua. - Useful but requires consistent Lua version and package availability.
Not worth automating (at least initially)#
- Visual appearance checks (themes, blur/background rendering, glyph aesthetics) - High maintenance, low signal for CI.
- Interactive keybinding ergonomics - Better validated manually on real machines.
- Plugin functional behavior requiring external tools
- Example: lazygit plugin behavior depends on
lazygit, git repo state, terminal semantics.
Implemented minimal checks#
The current CI keeps terminal/editor checks static and deterministic:
- Validate Neovim JSON files (
lazy-lock.json,lazyvim.json). - Verify core Neovim/WezTerm managed entrypoint files exist.
- Run deterministic WezTerm right-status Lua regressions for local, plain SSH, nested SSH, and SSH-domain host fallback (
tests/test_wezterm_right_status.lua). - Run cross-platform
oooconfsmoke checks (install --dry-run, expected-failingdoctoron a fresh HOME, andlock). - Validate lock artifacts with
scripts/generate/generate_dependency_lock.pyand targeted optional-dependency drift tests.
Why this shape:
- Almost zero flake risk.
- Minimal CI dependencies beyond Python, uv, shellcheck, and (on Linux) zsh plus Lua for the doctor and WezTerm checks.
- Catches accidental deletes/corruption quickly.
- Preserves reproducibility goals while keeping CI fast.
Suggested next phase#
After the first phase stabilizes, add optional/non-blocking headless startup checks behind a separate job or matrix entry, so regressions are visible without making every PR flaky.