Skip to content

ci: regression-test that selected kernel modules ship in firmware#2033

Merged
widgetii merged 1 commit intomasterfrom
ci-verify-kernel-modules
May 1, 2026
Merged

ci: regression-test that selected kernel modules ship in firmware#2033
widgetii merged 1 commit intomasterfrom
ci-verify-kernel-modules

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented May 1, 2026

Summary

  • Adds .github/scripts/check_target_modules.sh, run after every CI build (build.yml, build-one.yml)
  • For each entry in a small explicit map it asserts the .ko exists under output/target/lib/modules/ when the package is selected in .config
  • Currently maps BR2_PACKAGE_WIREGUARD_LINUX_COMPATwireguard.ko; new kernel-module packages should add a one-line entry to the script
  • CI-only — not wired into the local Makefile, so contributors can experiment locally without being blocked by the check

Why

Catches the regression class just fixed in #2032: per-package merge interactions in hisilicon-opensdk silently dropped extra/wireguard.ko from 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

  • Local smoke test: script returns OK on the post-hisilicon-opensdk: fix open_* leak and wireguard loss in per-package mode #2032 hi3518ev200_lite build (wireguard.ko present)
  • PR build (this run) confirms it passes for representative SoCs
  • Manually verify it fails as expected: temporarily add a bogus entry like BR2_PACKAGE_BUSYBOX nonexistent.ko and confirm the step exits non-zero (don't merge that)

🤖 Generated with Claude Code

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>
@widgetii widgetii merged commit 12113cc into master May 1, 2026
88 checks passed
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