Skip to content

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

Open
JacksonBopp wants to merge 1 commit into
CodeConstruct:mainfrom
JacksonBopp:ci-musl-build
Open

ci: add a musl (Alpine) build job#178
JacksonBopp wants to merge 1 commit into
CodeConstruct:mainfrom
JacksonBopp:ci-musl-build

Conversation

@JacksonBopp

Copy link
Copy Markdown

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>
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