1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00
forgejo-runner/act/container
Earl Warren 9c24e5bfc3
fix: remove LXC working directory when it completes
The working directory was not cleaned up upon completion of a LXC job because
rc.stopJobContainer() -> rc.cleanUpJobContainer() -> rc.JobContainer.Remove()
was never called for LXC containers.

- stopContainer() and closeContainer() must not call
  rc.stopHostEnvironment(ctx) for LXC containers because
  - it will needlessly be called twice
  - it intercepts the call to
    - rc.stopJobContainer()
    - rc.JobContainer.Close()
- rc.stopHostEnvironment(ctx) must be called in rc.cleanUpJobContainer
  which is indirectly called by rc.stopJobContainer()
- since rc.JobContainer.Close() is a noop, not calling it for LXC
  containers had no consequence

Resolves forgejo/runner#442
2025-09-16 14:32:18 +02:00
..
testdata refactor: filecollector into new package (#2174) 2024-01-30 00:46:45 +00:00
container_types.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_auth.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_build.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_cli.go chore: remove github.com/pkg/errors (#873) 2025-08-28 09:33:52 +00:00
docker_cli_test.go chore: remove github.com/pkg/errors (#873) 2025-08-28 09:33:52 +00:00
docker_images.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_images_test.go chore: use t.Context for tests, activate usetesting for lint + add t.TempDir and t.Chdir (#844) 2025-08-11 13:21:42 +00:00
DOCKER_LICENSE fix: support docker create arguments from container.options (#1022) (#1351) 2022-10-06 22:09:43 +00:00
docker_logger.go fix: fixes the build on FreeBSD (#882) 2025-08-18 06:01:33 +00:00
docker_network.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_pull.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_pull_test.go chore: use t.Context for tests, activate usetesting for lint + add t.TempDir and t.Chdir (#844) 2025-08-11 13:21:42 +00:00
docker_run.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_run_test.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_stub.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
docker_volume.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
executions_environment.go chore: modernize code (#857) 2025-08-15 04:54:13 +00:00
host_environment.go fix: remove LXC working directory when it completes 2025-09-16 14:32:18 +02:00
host_environment_test.go chore: use t.Context for tests, activate usetesting for lint + add t.TempDir and t.Chdir (#844) 2025-08-11 13:21:42 +00:00
linux_container_environment_extensions.go chore: modernize code (#857) 2025-08-15 04:54:13 +00:00
linux_container_environment_extensions_test.go chore: use t.Context for tests, activate usetesting for lint + add t.TempDir and t.Chdir (#844) 2025-08-11 13:21:42 +00:00
parse_env_file.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
util.go chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
util_openbsd_mips64.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
util_plan9.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
util_windows.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00