feat: cross-platform health checks + independent log parser fixtures (closes #1, closes #5) - #90
Open
laurentketterle-hub wants to merge 2 commits into
Open
feat: cross-platform health checks + independent log parser fixtures (closes #1, closes #5)#90laurentketterle-hub wants to merge 2 commits into
laurentketterle-hub wants to merge 2 commits into
Conversation
added 2 commits
August 5, 2026 13:30
- Add shutil.disk_usage() as primary disk check (Python 3.3+) - Add psutil-based memory check with /proc/meminfo fallback - Add macOS sysctl and Windows wmic memory fallbacks - Add os.getloadavg() with psutil and multiprocessing fallbacks for CPU load - Graceful degradation on unsupported platforms
- Add hand-crafted JSON, TEXT, NGINX, and MALFORMED log fixtures - Each fixture designed to exercise specific parser paths - Fixtures are independent of parser implementation (not auto-generated) - Covers edge cases: IPv6, empty referer, multi-line, truncated JSON - Eliminates false-pass issue from legacy auto-generated fixtures
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.
Description
Fixes #1 and #5 with two complementary improvements.
1. Cross-platform health check fallbacks (closes #1)
shutil.disk_usage()primary, withos.statvfs()Unix fallbackpsutil.virtual_memory()primary, with/proc/meminfo(Linux),sysctl/vm_stat(macOS),wmic/systeminfo(Windows) fallbacksos.getloadavg()(Unix),psutil.getloadavg(),multiprocessing.cpu_count()fallbacks2. Independent log parser fixtures (closes #5)
tools/log_parser_fixtures.pywith hand-crafted fixture data