Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark PipelineRun completed after binded PVCs are deleted #6985

Open
Tracked by #6990
QuanZhang-William opened this issue Jul 27, 2023 · 2 comments
Open
Tracked by #6990

Mark PipelineRun completed after binded PVCs are deleted #6985

QuanZhang-William opened this issue Jul 27, 2023 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@QuanZhang-William
Copy link
Member

Feature request

Background

Today, the pvcs created from PipelineRun's VolumeClaimTemplate is not automatically deleted at PipelineRun completion time by default. We have a user request to allow PVC to be deleted when a PipelineRun is completed. In TEP-0135, we have enforced such PVCs to be deleted at the PipelineRun's completion time in the new Affinity Assistant mode (i.e. coschedule: pipelineruns).

The pvcs are currently deleted in a "fire and forget" manner. The PipelineRun is marked as completed right after we call the APIServer to delete the pvcs (without checking if the pvcs are successfully deleted or not).

Proposal

@lbernick suggested that one potential improvement is to mark the PipelineRun completed after validating the pvcs are successfully deleted (i.e. we made another API call to try to get the pvcs)

Use case

Pros

  • There is no uncertainty of the pvc state when the owning PipelineRun is completed
  • Reduce test flakiness when validating pvc state after a PipelineRun is completed in our integration test
    • (We saw flakiness when pvcs are not yet deleted due to slow nodes after the PipelineRun is marked completed, which causes tests to fail)

Cons

  • Increasing PipelineRun completion latency
  • Potential PipelineRun timeout due to slow nodes to delete pvcs
  • What is the right state of the PipelineRun if the pvc deletion is failed?

This issue is created to collect more feedbacks from community, please let me know!

@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 25, 2023
@vdemeester
Copy link
Member

/remove-lifecycle stale

@tekton-robot tekton-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants