CI Perf Lint

consider-slim-over-alpine-for-ci

What it flags

Flags CI jobs that run inside a visible Alpine or musl-based container image.

Why it matters

Alpine or musl-based containers can be a deliberate and valid choice.

However, for many CI paths they increase friction with wheels, native addons, and prebuilt binaries. That can mean extra package-manager glue, more native dependency setup, or unexpected fallbacks to source builds when a wheel or prebuilt binary would normally be available on a more common glibc-based image.

If musl compatibility is not actually required, a slim Debian-based image is often easier to maintain and may reduce package-install complexity.

Current heuristic

The rule looks for:

It does not claim Alpine is wrong. It only suggests checking whether that tradeoff is intentional.

When to ignore it

Ignore this finding when:

Suggested verification

Sources