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

pullRequest resource uploading step failing #1714

Closed
castlemilk opened this issue Dec 9, 2019 · 7 comments
Closed

pullRequest resource uploading step failing #1714

castlemilk opened this issue Dec 9, 2019 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@castlemilk
Copy link

Expected Behavior

upload step should correctly discover any required information from the given /workspace/<resource>/ folder and successfully update the given PR.

Actual Behavior

following error occurs:

{"level":"info","ts":1575932806.2572246,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: open /var/run/ko/refs/heads/pr: no such file or directory"}
{"level":"info","ts":1575932806.257303,"logger":"fallback-logger","caller":"pullrequest-init/main.go:56","msg":"RUNNING UPLOAD!"}
{"level":"info","ts":1575932806.2580793,"logger":"fallback-logger","caller":"pullrequest-init/api.go:107","msg":"Syncing resource: &{PR:0xc000212000 Status:0xc000224420 Comments:[] Manifests:map[comments:map[] labels:map[]]}"}
{"level":"info","ts":1575932806.5881653,"logger":"fallback-logger","caller":"pullrequest-init/api.go:144","msg":"Current labels: map[]"}{"level":"info","ts":1575932806.5882623,"logger":"fallback-logger","caller":"pullrequest-init/api.go:155","msg":"Creating labels [] for PR 10"}{"level":"info","ts":1575932806.8430235,"logger":"fallback-logger","caller":"pullrequest-init/api.go:177","msg":"Setting comments for PR 10 to: []"}{"level":"fatal","ts":1575932807.101696,"logger":"fallback-logger","caller":"pullrequest-init/main.go:62","msg":"1 error occurred:\n\t* Ref not found\n\n","stacktrace":"main.main\n\t/workspace/go/src/github.com/tektoncd/pipeline/cmd/pullrequest-init/main.go:62\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"}

Steps to Reproduce the Problem

  1. create a pullRequest resource
  2. use pullRequest resource as both input and output resource

Additional Info

  • download step is successful to populate the `/workspace// directory
  • tekton v0.9.1
@vincent-pli
Copy link
Member

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 10, 2019
@bigkevmcd
Copy link
Member

It'd be nice if this could open a PR in addition to updating existing ones.

@wlynch
Copy link
Member

wlynch commented Dec 11, 2019

/milestone Pipelines 0.9.2

@vdemeester vdemeester added this to the Pipelines 0.9.2 🐱 milestone Dec 11, 2019
@imjasonh
Copy link
Member

This should be fixed now at head, at in v0.9.2. If you find this not to be the case, please reopen with repro steps.

@bobcatfish
Copy link
Collaborator

@castlemilk are you able to verify that this fixes your issue? (not to alarm you but I'm asking b/c I saw some odd behaviour when I was trying to use this recently, hoping it was just me 🤞 )

@castlemilk
Copy link
Author

@bobcatfish this looks to be working for me now on v0.9.2

@bobcatfish
Copy link
Collaborator

Glad to hear it!! Thanks @castlemilk :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

8 participants