Skip to content

fix(ci): install librados-dev in CI runners for CGO compilation #74

@CodeMonkeyCybersecurity

Description

Summary

All CI jobs fail with fatal error: rados/librados.h: No such file or directory because go test ./pkg/... tries to compile CGO packages (cephfs, kvm) that depend on system libraries not installed in the GitHub Actions runner.

Evidence

fatal error: rados/librados.h: No such file or directory

Affects: ci-unit, ci-integration, ci-e2e-smoke

Proposed Fix

Either:

  1. Install librados-dev in CI: sudo apt-get install -y librados-dev librbd-dev
  2. Or use build tags to skip CGO packages in CI: go test -tags=!cgo ./pkg/...
  3. Or exclude CGO packages: go test ./pkg/... -skip 'cephfs|kvm|libvirt'

Impact

CI is red on every push, which erodes trust in the CI pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions