Skip to content

fix(environments): reap Docker and Podman rootless probes - #3965

Open
yuchenwang3 wants to merge 2 commits into
harbor-framework:mainfrom
yuchenwang3:fix/docker-rootless-probe-cleanup
Open

yuchenwang3 wants to merge 2 commits into
harbor-framework:mainfrom
yuchenwang3:fix/docker-rootless-probe-cleanup

Conversation

@yuchenwang3

@yuchenwang3 yuchenwang3 commented Oct 28, 2026 •

Copy link
Copy Markdown

Cancelling or timing out rootless detection could leave its docker info or podman info process running. Both implementations now call the existing termination helper in finally, preserving cancellation propagation and the cached False fallback for other probe failures.

The subprocess regressions cover cancellation, timeout, communication failure, and cleanup failure for both Docker and Podman. The Podman cancellation case reproduced the missing cleanup before the November 19 fix.

Validation on c5a2dc163a5e (macOS, Python 3.13.14):

  • pytest -q tests/unit/environments/test_docker.py tests/unit/environments/test_podman.py: 216 passed, 2 skipped.
  • Changed-file Ruff lint passed and Ruff formatting was applied; repository-wide ty check and git diff --check passed.
  • The tests use real disposable subprocesses with the engine command mocked. Docker/Podman integration tests were not run locally.

AI assistance: Codex wrote the patch and tests, ran the checks, and drafted this description.


Devin Review

@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown

@yuchenwang3 is attempting to deploy a commit to the Harbor Framework Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Enjoy a better diff viewing experience by clicking one of these URLs:

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Copy link
Copy Markdown
Author

Finished the pending local checks on unchanged head 949836ed20fa: repository-wide ty check and all eight rootless-probe regressions pass in the provisioned Python 3.13.14 environment. The checks used the installed tools directly because the local uv launcher is below the required version. The earlier Docker/Podman unit run remains 255 passed, 2 skipped. No local Docker integration test was run; the PR description now records the completed checks.

@yuchenwang3

Copy link
Copy Markdown
Author

Could a maintainer review this? It reaps the rootless Docker probe after cancellation or timeout, so the probe no longer outlives its task. ty check and the 8 rootless regression tests pass locally; I haven't run the Docker integration tests.

Assisted-by: OpenAI Codex
Signed-off-by: Yuchen Wang <[email protected]>
@yuchenwang3 yuchenwang3 changed the title fix(docker): reap the rootless probe after cancellation or timeout fix(environments): reap Docker and Podman rootless probes Nov 19, 2026

Copy link
Copy Markdown
Author

Fixed the Podman override flagged by Devin in c5a2dc1. It now reaps the rootless-probe subprocess in finally, and the cancellation/timeout/failure regressions run against both Docker and Podman. The Podman cancellation regression failed before the fix; the final Docker/Podman unit run passed 216 tests with 2 skips. Ruff lint and repository-wide ty check passed, and formatting was applied. No local container integration run was performed.

@yuchenwang3

Copy link
Copy Markdown
Author

CI finished after my last comment, and every check on c5a2dc1 passes, including the Runtime (docker-network) and Runtime (podman-network) jobs. Could a maintainer review this PR?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant