Skip to content

CI: podman machine DeferCleanup callback error because file is being used by another process. #25614

@l0rd

Description

@l0rd

Issue Description

Machine e2e test podman machine cp / all tests fails from time to time:

[FAILED] DeferCleanup callback returned error: remove C:\Users\ADMINI~1\AppData\Local\Temp\ginkgo552643153\foo-dir\bar.txt: The process cannot access the file because it is being used by another process.
  In [DeferCleanup (Each)] at: C:/Users/Administrator/AppData/Local/cirrus-ci-build/repo[/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go:153](https://github.com/containers/podman/blob/93675fdba2e46c93442d45419cbb9fb3e80f8108/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go#L153) @ 03/18/25 05:05:36.307

  Full Stack Trace
  < Exit [DeferCleanup (Each)] podman machine cp - C:/Users/Administrator/AppData/Local/cirrus-ci-build/repo[/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go:153](https://github.com/containers/podman/blob/93675fdba2e46c93442d45419cbb9fb3e80f8108/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go#L153) @ 03/18/25 05:05:36.307 (1ms)
  > Enter [DeferCleanup (Each)] podman machine cp - C:/Users/Administrator/AppData/Local/cirrus-ci-build/repo[/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go:153](https://github.com/containers/podman/blob/93675fdba2e46c93442d45419cbb9fb3e80f8108/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go#L153) @ 03/18/25 05:05:36.307

Log: https://api.cirrus-ci.com/v1/artifact/task/6697640798191616/html/machine-wsl-podman-windows-rootless-host-sqlite.log.html

I can reproduce it systematically on my local machine

Steps to reproduce the issue

Locally:

$remotetags = "remote exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper containers_image_openpgp"
$focus_file = "cp_test.go"
$focus_test = "all tests"
./test/tools/build/ginkgo.exe `
  -v --tags "$remotetags" `
  --focus-file  $focus_file `
  --focus "$focus_test" `
  ./pkg/machine/e2e/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flakesFlakes from Continuous Integrationkind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.machinewindowsissue/bug on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions