podman icon indicating copy to clipboard operation
podman copied to clipboard

Makefile: localunit skips every package under pkg/bindings

Open Daksha1611 opened this issue 2 months ago • 0 comments

The localunit target currently passes pkg/bindings in its --skip-package list when invoking Ginkgo.

Since the skip pattern is matched as a substring, this ends up skipping all packages under pkg/bindings, rather than just pkg/bindings/test. The latter appears to be the intended exclusion, since that suite requires a running Podman service.

This also means that the unit tests in the following packages are not being run in CI:

  • pkg/bindings — 14 tests in connection_stdio_test.go
  • pkg/bindings/internal/util — 13 tests in util_test.go
  • pkg/bindings/images — 3 tests in build_test.go

While looking into this, I also found that TestConvertAdditionalBuildContexts in pkg/bindings/images/build_test.go fails on a regular Linux host. The test expects C:\test to be converted to /mnt/c/test, but specgen.ConvertWinMountPath only performs this conversion when shouldResolveWinPaths() is true. On Linux, that is limited to WSL or Hyper-V environments.

The Windows-specific expectation should therefore be moved to a Windows-only test file, similar to the existing volumes_linux_test.go / volumes_windows_test.go split in pkg/specgen.

Once that test is separated, the skip entry can be narrowed to pkg/bindings/test, allowing the other unit tests under pkg/bindings to run normally in CI.

Daksha1611 avatar Sep 18 '26 15:09 Daksha1611