ci: regression-test that selected kernel modules ship in firmware#2033
Merged
ci: regression-test that selected kernel modules ship in firmware#2033
Conversation
Adds .github/scripts/check_target_modules.sh, run after every CI build in build.yml and build-one.yml. For each entry in a small explicit map (currently BR2_PACKAGE_WIREGUARD_LINUX_COMPAT → wireguard.ko) it asserts the .ko exists under output/target/lib/modules/ when the package is selected. CI-only — not wired into the local Makefile so contributors can experiment without being blocked. Catches the regression class fixed in #2032, where extra/wireguard.ko silently disappeared from hi3516cv200 / hi3518ev200 firmware due to a per-package merge interaction in hisilicon-opensdk. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
.github/scripts/check_target_modules.sh, run after every CI build (build.yml,build-one.yml).koexists underoutput/target/lib/modules/when the package is selected in.configBR2_PACKAGE_WIREGUARD_LINUX_COMPAT→wireguard.ko; new kernel-module packages should add a one-line entry to the scriptWhy
Catches the regression class just fixed in #2032: per-package merge interactions in
hisilicon-opensdksilently droppedextra/wireguard.kofrom hi3516cv200 / hi3518ev200 firmware. With this in place, any future regression that loses a selected kernel module would fail the PR build before merge.Test plan
wireguard.kopresent)BR2_PACKAGE_BUSYBOX nonexistent.koand confirm the step exits non-zero (don't merge that)🤖 Generated with Claude Code