Skip to content

test: LLVM coverage, libfuzzer targets, and ConPTY - #102

Merged
fxrdhan merged 6 commits into
mainfrom
test/maximum-test-coverage
Aug 31, 2026
Merged

test: LLVM coverage, libfuzzer targets, and ConPTY#102
fxrdhan merged 6 commits into
mainfrom
test/maximum-test-coverage

Conversation

@fxrdhan

@fxrdhan fxrdhan commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

Introducing:

  1. Automated Line & Branch Code Coverage (LLVM-Cov): Dedicated CI job using cargo-llvm-cov to generate LCOV reports and step summaries for workspace tests and doctests.
  2. Coverage-Guided Fuzzing Framework (fuzz/ Crate): Continuous LLVM libfuzzer-sys fuzz targets with AddressSanitizer (ASan) for Tar archives, YAML themes, LS_COLORS, and duration parsers, accompanied by a fast CI smoke canary.
  3. Windows Native Virtual Console (ConPTY) Testing: Win32 console mode invariants and Virtual Terminal Processing testing (ENABLE_VIRTUAL_TERMINAL_PROCESSING) in tests/platform/windows_conpty.rs.
  4. Linux Syscall Count Invariant Guard (strace): Automated verification script devtools/verify-syscall-invariants.sh guarding against $O(N^2)$ metadata syscall amplification on FUSE/NFS workloads.
  5. Adversarial Test Optimizations: Streamlined sibling lookup fixtures to guarantee sub-second execution while maintaining full invariant depth.

Type of Change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • ⚡ Performance improvement
  • ♻️ Code refactor / clean-up
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation / Man pages / Completions
  • 🔧 Build / CI / Dependencies

Related Issues & Upstream References

  • Resolves: Test suite expansion & gold standard coverage
  • Upstream: N/A

How Has This Been Tested?

  • Testing commands executed:
    • cargo nextest run --workspace (2,294 tests passed)
    • cargo test --doc (29 doctests passed)
    • cargo clippy --all-targets --all-features -- -D warnings (passed cleanly)
    • cargo fmt --all -- --check (passed)
    • reuse lint & convco pre-commit hooks (passed)
  • Platforms verified:
    • macOS (Apple Silicon Darwin arm64)
    • Linux & Windows CI target matrices

Contributor Checklist

  • My commits follow Conventional Commits format
  • Upstream references are included in this PR body only, not in commit titles
  • Tests covering the changes have been added/updated
  • cargo clippy --all-targets passes with no warnings
  • cargo nextest run (or cargo test) passes
  • cargo fmt --check / nix fmt passes
  • License headers (SPDX / REUSE) are properly preserved/added

@fxrdhan
fxrdhan force-pushed the test/maximum-test-coverage branch from e7fd962 to 74c05f9 Compare August 31, 2026 19:50
@fxrdhan
fxrdhan force-pushed the test/maximum-test-coverage branch from 74c05f9 to b9f08cf Compare August 31, 2026 20:01
@fxrdhan
fxrdhan force-pushed the test/maximum-test-coverage branch from b9f08cf to 02587d7 Compare August 31, 2026 20:09
@fxrdhan
fxrdhan merged commit 771a122 into main Aug 31, 2026
23 checks passed
@fxrdhan fxrdhan changed the title test: elevate test suite coverage to gold standard 10/10 with LLVM coverage, libfuzzer targets, and ConPTY test: LLVM coverage, libfuzzer targets, and ConPTY Aug 31, 2026
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