Skip to content

feat: add optional nohz_full GRUB check - #29

Merged
jasper9 merged 1 commit into
mainfrom
jgray/nohz-full-check
Nov 6, 2026
Merged

jasper9 merged 1 commit into
mainfrom
jgray/nohz-full-check

Conversation

@jasper9

@jasper9 jasper9 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New nohzFull check, off by default:
    • Fails if nohz_full= is missing from GRUB_CMDLINE_LINUX_DEFAULT (whole-token match)
    • Warns, without failing, if the running kernel (/proc/cmdline) has no nohz_full or a different CPU list (update-grub / reboot pending)
    • Checks presence only, not the CPU list, since that varies per host
  • should_run_check takes an optional default for missing keys. nohzFull uses false, so existing local_config.json files without the key are unaffected; all other checks still default to true
  • config.json, README and CLAUDE.md updated

Enabling on a host

In that host's local_config.json (a full copy of config.json, since it replaces it entirely), under checksToRun:

"nohzFull": true

Testing

  • shellcheck -S warning clean; config.json validates with jq
  • Toggle: key missing → skipped, false → skipped, true → runs; other checks with a missing key still run
  • Stubbed grub and /proc/cmdline: set and booted (pass), set but not booted (pass + warning), CPU list changed (pass + warning), missing (fail), xnohz_full= lookalike (fail)
  • Not yet run on a live host

🤖 Generated with Claude Code

Fail if nohz_full= is missing from GRUB_CMDLINE_LINUX_DEFAULT and warn
if the running kernel does not match yet (reboot pending). The check is
off by default and only runs when checksToRun.nohzFull is explicitly
true, so existing local configs without the key are unaffected.

should_run_check now takes an optional default for missing keys;
existing checks keep defaulting to true.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

🤖 Codex Review

No findings.

@jasper9
jasper9 merged commit b4559a1 into main Nov 6, 2026
9 checks passed
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