Commit 315f7f9
feat: add CI with osquery integration tests and coverage
# Summary
Complete CI infrastructure refactor with osquery integration testing and coverage measurement.
## Changes
### CI Workflow (`.github/workflows/ci.yml`)
- Renamed workflow from "Rust CI" to "CI"
- Split into build (fmt, clippy, build) and test jobs
- Added osquery installation for integration tests
- Integrated `cargo-llvm-cov` for coverage measurement
- Added dynamic coverage badge via Gist
### Test Script (`scripts/ci-test.sh`)
- New orchestration script for local and CI testing
- Detects osqueryd (PATH and common install locations)
- Falls back to Docker when osqueryd not available
- Builds and autoloads logger-file and config-static extensions
- Waits for socket AND extension registration before tests
- Generates lcov coverage reports with `--coverage` flag
- Cross-platform cleanup using `pkill -f` pattern matching
### Docker Support
- Added `docker/Dockerfile.test` for containerized testing
- Pre-builds extensions in image for faster test runs
- Mirrors native test environment for consistency
### README Badge Fixes
- Fixed CI badge URL (workflows/CI not workflows/Rust%20CI)
- Fixed coverage link (ci.yml not coverage.yml)
## Testing
- 161 tests passing
- ~87% code coverage
- CI completes in ~1.5 minutes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent e128398 commit 315f7f9
File tree
34 files changed
+5724
-88
lines changed- .github/workflows
- docker
- examples
- config-file
- src
- config-static
- src
- logger-file
- src
- logger-syslog/src
- two-tables/src
- writeable-table/src
- hooks
- osquery-rust
- src
- plugin
- _enums
- config
- logger
- table
- tests
- scripts
34 files changed
+5724
-88
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
12 | 8 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
20 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
21 | 17 | | |
22 | | - | |
23 | | - | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | | - | |
29 | | - | |
| 23 | + | |
30 | 24 | | |
31 | 25 | | |
32 | | - | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
36 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | | - | |
39 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments