Add cross-platform health check fallbacks#27
Open
daxia778 wants to merge 2 commits into
Open
Conversation
added 2 commits
June 26, 2026 11:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #1
Summary
Adds cross-platform fallback paths for
tools/health_check.pyso memory and load checks no longer degrade to generic/procread warnings on non-Linux hosts.Changes
/proc/meminfoand/proc/loadavgbehavior as the first path on Linux.sysctl+vm_stat), Windows (GlobalMemoryStatusEx), and generic POSIXos.sysconf.os.getloadavg()when/proc/loadavgis unavailable.unittestcoverage for missing-/procmemory/load fallback behavior and health-check output shape.diagnostic/build-f1cce566-metadata.jsondiagnostic/build-f1cce566-part001.logddiagnostic/build-f1cce566-part002.logdTesting
python3 -m py_compile tools/health_check.py tests/test_health_check_fallbacks.py— passed.python3 -m unittest discover -s tests -v— 4 tests passed.check_memory_usage()now returns a measured value instead of a/procwarning./opt/homebrew/bin/python3.12 build.py— ran full build and finalized diagnostics. Local result was 6 passed / 4 failed:frailboxfails on an existing C compile error, andnfc-scanner,openapi-haskell, andopenapi-toolsfail becauseluac/ghcare not installed locally. The diagnostic metadata and.logdchunks from that run are committed.git diff --check— passed.Checklist
Payment preference after acceptance: USDC on Base to
0xB54Ec1F0905186553FaB1763409e1CC127b874F9. If the project uses a different approved payout rail, I can follow that flow.