ci(nightly): add modinfo/depmod, sparse, and qemu-insmod jobs#54
Merged
Conversation
Extends the nightly compile matrix with runtime + static validation on top of the existing kernel API compile check. - compile job: runs modinfo + depmod -n on every .ko after the build. Validates module metadata (license, version, USB id table, vermagic, parameters) and confirms dependency wiring is sane. - static-analysis job (8 cells, one per driver): runs sparse over the driver source with kernel 6.12 LTS headers. Cheap signal on common C bugs the kernel build doesn't fail on. Warnings don't currently fail the job; tightening to come once the baseline is established. - qemu-insmod job (8 cells, one per driver): builds a tinyconfig bzImage (kernel 6.12.30) with wireless + INET/ACPI/PCI/USB, packages a busybox initramfs with the .ko, and boots it under QEMU. The init script insmod-s the module and prints DRIVER_INSMOD_RESULT=0 on success, then 'reboot -f' triggers qemu's -no-reboot to exit cleanly. Catches NULL derefs in module_init, EXPORT_SYMBOL mismatches that modpost-with-empty- Module.symvers can't see, etc. Single kernel target (per-kernel bzImage builds would be hours each); revisit when we have a faster path. summary job now requires all three (compile, static-analysis, qemu-insmod) green to call the run successful.
48c349e to
01d82ed
Compare
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.
Extends the nightly compile matrix with runtime + static validation on top of the existing kernel API compile check.
compile job: runs modinfo + depmod -n on every .ko after the build. Validates module metadata (license, version, USB id table, vermagic, parameters) and that dependency wiring resolves cleanly.
static-analysis job (8 cells, one per driver): runs sparse over the driver source with kernel 6.12 LTS headers. Cheap signal on common C bugs the kernel build doesn't fail on. Warnings don't currently fail the job; tightening to come once the baseline is established.
qemu-insmod job (8 cells, one per driver): builds a tinyconfig + WiFi-enabled bzImage (kernel 6.12.30), a busybox initramfs carrying the .ko, and boots it under QEMU. The init script insmod-s the module and prints DRIVER_INSMOD_RESULT=0 on success. Catches NULL derefs in module_init paths, EXPORT_SYMBOL mismatches that modpost-with-empty-Module.symvers can't see, etc. Single kernel target (per-kernel bzImage builds would be hours each); revisit when we have a faster path.
summary job now requires all three (compile, static-analysis, qemu-insmod) green to call the run successful.
Temporary pull_request trigger on this workflow so this PR exercises the new jobs end-to-end; that trigger will be reverted before merge.