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

Missing PullRequestPipelineResource steps with artifact PVC #1632

Closed
afrittoli opened this issue Nov 27, 2019 · 9 comments
Closed

Missing PullRequestPipelineResource steps with artifact PVC #1632

afrittoli opened this issue Nov 27, 2019 · 9 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@afrittoli
Copy link
Member

Expected Behavior

When the pull request pipeline resource is used in a Task as both input and output, I expect three steps to be added:

  • created dir
  • download pr
  • upload pr

This should happen regardless of Tekton configuration.

Actual Behavior

If Tekton is configured to use artifact PVC, only download is added to the POD:

$ k get pod/mario-comment-github-5bngk-v2pf4-pod-b741cb -n mario -o jsonpath='{.spec.containers[*].name}' | tr ' ' '\n' ; echo
step-create-dir-image-p7cz5
step-git-source-source-84p6r
step-pr-source-pr-5bngk-wt8pb
step-copy-pr-to-output
step-setup-comment
step-image-digest-exporter-h5g4d

With the bucket instead:

$ k get pod/mario-comment-github-fs2xp-sgj95-pod-75de28 -n mario -o jsonpath='{.spec.containers[*].name}' | tr ' ' '\n' ; echo
step-create-dir-pr-wk9xh
step-create-dir-image-dqcdf
step-git-source-source-x4984
step-pr-source-pr-fs2xp-wgbp8
step-copy-pr-to-output
step-setup-comment
step-image-digest-exporter-nktfp
step-pr-source-pr-fs2xp-mvhnn

Steps to Reproduce the Problem

I reproduce the output with the mario-bot prototype at https://github.com/afrittoli/plumbing/pull/1/files.

  1. The TaskRun is created by the EventListent via a TriggerTemplate
  2. The TaskRun embeds the Task definition
  3. The PullRequestPipelineResource is created by the EventListent via a TriggerTemplate
  4. The PullRequestPipelineResource is used as both input and output resource in the Task

Additional Info

@vdemeester
Copy link
Member

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 27, 2019
@bobcatfish
Copy link
Collaborator

Are you 100% sure that the behaviour your expect isn't there @afrittoli ? I think it might be easier to understand what's going wrong if you could list exactly what each of the missing steps is intended to be doing.

(I'm just surprised b/c I think both @dlorenc and I have been using the PR resource a bunch, and I know I've got PVC linking turned on, and it was working as I expected)

@afrittoli
Copy link
Member Author

I have two clusters, with the exact same version of Tekton deployed, same Tekton resources and the only difference was the PVC vs. Bucket configuration.
The cluster using bucket works, the one using PVC doesn't. Once I reconfigured the PVC cluster to use bucket is started working as well.

I'm not sure if the description of the issue is as narrow as it can be - it could be that there are other elements involved. e.g. perhaps this behavior happens only if a TaskRun is used as opposed to a PipelineRun, or perhaps it only happens if there is more than one output resource.

@bobcatfish
Copy link
Collaborator

e.g. perhaps this behavior happens only if a TaskRun is used as opposed to a PipelineRun, or perhaps it only happens if there is more than one output resource.

oooohhhh you know what, that could be it - @dlorenc and I have definitely seen different behaviour around the PVCs in a TaskRun vs a PipelineRun (or in the case of #1068, when there was just 1 Task vs multiple)

@bobcatfish bobcatfish added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Nov 27, 2019
@vdemeester
Copy link
Member

@afrittoli @bobcatfish is this still an issue ? 🙃

@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
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.

/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 22, 2020
@tekton-robot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 21, 2020
@tekton-robot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants