Skip to content

CI: generalize rootful (integration) test execution beyond the imagecache one-off #501

Description

Follow-up to #467 review feedback (pr-workflow.yaml thread).

#467 added a one-off CI step that re-runs ./internal/imagecache/ under sudo so its root-gated tests (overlay mounts, whiteout mknod, trusted.* xattrs) execute instead of skipping. As more packages grow privileged tests, this shouldn't be a hardcoded package list.

Proposal: a repo-wide convention that a single CI step can discover — e.g. tests self-gate with t.Skip when unprivileged (as imagecache already does) and CI runs sudo -E go test for a designated set discovered via a build tag (//go:build roottest), a naming convention, or a small manifest. Should also document how to run them locally (sudo go test ./internal/imagecache/) in the contributor docs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions