You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error failed to clean partially cloned repository seems related to the process implemented in the pull request below. The content of the error field is err: context canceled, out: .
peaceiris
changed the title
"failed to check application" and "failed to clean partially cloned repository"
error: "failed to check application" and "failed to clean partially cloned repository"
Nov 14, 2024
What I can find out is that errors seem to be caused by context.Canceled during shutdown, especially after the git clean logic added in PR #5312. A good fix would be to skip or silently ignore cleanup and manifest-loading steps when ctx.Err() != nil, since these are expected cancellations during normal shutdown.
I can open a PR to handle this with proper checks.
I think cleanup operations should be executed even when the context is canceled.
We can run the piped in a container, a VM, or a bare metal machine. In the VM or bare metal environment, the files created by the piped should be cleaned when the piped is shut down.
We should check whether we can ignore the error even if the error comes from the context cancellation.
In this case, we can ignore the error because the operation is a kind of cleanup but partially clean, not entirely. The entire cleanup will executed in other codes.
Additionally, the issue shows not only the error failed to clean partially cloned repository. The screenshot shows another error message: failed to check application.
This may come from here; we can ignore this when the context is canceled because it's not a cleanup operation.
Uh oh!
There was an error while loading. Please reload this page.
What happened:
The following errors appear when a piped ends:
The error
failed to clean partially cloned repository
seems related to the process implemented in the pull request below. The content of the error field iserr: context canceled, out:
.The error
failed to check application: ...
has two possible forms:What you expected to happen:
A piped completes shutdown without those errors.
How to reproduce it:
Environment:
piped
version: v0.49.0 (at least) to v0.49.3control-plane
version:The text was updated successfully, but these errors were encountered: