Skip to content

pluginruntime: plugin remote steps run via sh/su/tar, so a Windows spore cannot run them #1001

Closed

Description

@scttfrdmn

Found while adding the Windows CI job (#971): pkg/pluginruntime's tests fail on windows-latest and the package is skipped there (scripts/windows-test-skips.txt).

pkg/agent always initialises the plugin runtime, including on a Windows spore, but remote_executor.go runs every step with sh -c (or su - <user> -c for as_user) and unpacks pushes with tar --no-overwrite-dir. None of those exist on a stock Windows AMI, so a plugin install on a Windows spore fails at its first step, and as_user has no Windows equivalent.

Needs a decision: either refuse plugins on Windows spores up front with a clear error, or give the runtime a PowerShell executor. The tests (which use sh fixtures) would then need a Windows variant before the package can come off the skip list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions