rajatjindal / krew-release-bot

bot to bump version of plugin in krew-index on new releases
Apache License 2.0
46 stars 16 forks source link

HTTP 500 – body: opening pr: non-fast-forward update:[...] #41

Closed ahmetb closed 4 years ago

ahmetb commented 4 years ago

I've just released v0.8.0 kubectx repo which has ctx and ns plugins. One worked. One failed.

https://github.com/ahmetb/kubectx/runs/459044199

Error:

time="2020-02-20T23:13:07Z" level=info msg="using template file \"/github/workspace/.krew/ns.yaml\""
time="2020-02-20T23:13:07Z" level=info msg="getting sha256 for https://github.com/ahmetb/kubectx/archive/v0.8.0.tar.gz"
time="2020-02-20T23:13:07Z" level=info msg="downloaded file /tmp/228467540/1582240387"
time="2020-02-20T23:13:09Z" level=fatal msg="expected status code 200 got 500. body: opening pr: non-fast-forward update: refs/heads/ahmetb-kubectx-v0.8.0\n"

Can you please investigate @rajatjindal? Thanks.

rajatjindal commented 4 years ago

Hi Ahmet

Thanks for reporting it. If i understand it right, i am surprised we didnt see this earlier.

I will check once i am online on laptop and fix it.

ahmetb commented 4 years ago

I am suspecting race condition, or not proper cleanup and/or reuse of container or concurrency>1. 😄

rajatjindal commented 4 years ago

Hi Ahmet,

I've released version v0.0.37 that potentially fixes this issue. I'll submit a PR for the ctx repo.