Skip to content

ci: add a musl (Alpine) build job - #178

Merged
jk-ozlabs merged 1 commit into
CodeConstruct:mainfrom
JacksonBopp:ci-musl-build
Sep 18, 2026
Merged

jk-ozlabs merged 1 commit into
CodeConstruct:mainfrom
JacksonBopp:ci-musl-build

Conversation

@JacksonBopp

Copy link
Copy Markdown
Contributor

Summary

Adds a job that builds and tests mctp inside an alpine:latest container, to catch musl portability issues in CI before they affect the meta-openembedded bump process, as requested in #126.

It's modeled on the existing no-libsystemd job: Alpine doesn't ship libsystemd, so the same meson dependency check that already gates the dbus-based tests (test-mctpd, test-mctpd-endpoint) keeps this job to the plain test-mctp suite, which is what it can actually exercise without dbus.

Test plan

Verified locally in a real alpine:latest container (not just reasoning about it):

  • apk add build-base linux-headers meson ninja git py3-pip installs cleanly
  • pip install -r tests/requirements.txt installs cleanly (ruff ships a musllinux wheel, the rest are pure Python or build from sdist without issue)
  • meson setup build configures cleanly, correctly reports libsystemd/libcap as not found
  • meson compile -C build builds all 6 targets with no errors
  • meson test -C build --verbose passes 7/7 subtests in test-mctp

Also added a CHANGELOG entry following the existing convention.

Add a job that builds and tests mctp inside an Alpine Linux container,
to catch musl portability issues in CI before they surface during the
meta-openembedded bump process (CodeConstruct#126).

Modeled on the existing no-libsystemd job: Alpine doesn't have
libsystemd, so the same meson dependency check that already gates the
dbus-based tests keeps this job to the plain test-mctp suite, matching
what it can actually exercise without dbus.

Verified locally in an alpine:latest container: configure, build, and
test all pass (7/7 subtests in test-mctp), with libsystemd and libcap
correctly reported as not found.

Signed-off-by: Jackson Bopp <boppjackson@gmail.com>
@jk-ozlabs
jk-ozlabs merged commit cbb3ca5 into CodeConstruct:main Sep 18, 2026
4 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.

2 participants