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
I reverted cherry_picker to 1.2.2 and the "bug" dissapeared. @ewdurbin did not found nothing in the logs, and myself has not really investigated the issue more than checking if reverting fixes it.
I am hitting this issue using cherry_picker 1.3.1 and 1.3.0 with Ansible. It seems it sets state = BACKPORT_COMPLETE in the local git config, resulting in an error on subsequent runs.
> cherry_picker --pr-remote fork f27eccabbd stable-2.7
🐍 🍒 ⛏
Usage: cherry_picker [OPTIONS] [COMMIT_SHA1] [BRANCHES]...
Try "cherry_picker -h" for help.
Error: Run state cherry-picker.state=BACKPORT_COMPLETE in Git config is not known.
Perhaps it has been set by a newer version of cherry-picker. Try upgrading.
Valid states are: BACKPORT_PAUSED, UNSET. If this looks suspicious, raise an issue at https://github.com/python/core-workflow/issues/new.
As the last resort you can reset the runtime state stored in Git config using the following command: `git config --local --remove-section cherry-picker`
Clearing that section from the local config gets around the issue.
@samdoran I'm pretty sure that the issue has been created by 1.3.0. 1.3.1 doesn't clear that (by design). After cleaning up the state, 1.3.1 should work. BACKPORT_COMPLETE state has been completely removed from the source code so you can't get that anymore.
@Mariatta@JulienPalard@samdoran@asvetlov it turned out that the dists on PyPI (both wheel and tarball) contain an outdated version of the source code prior to #315 which is why 1.3.1 is still broken.
Activity
Mariatta commentedon Mar 27, 2019
GitMate.io thinks possibly related issues are #257 (🤖 miss-islington Heroku app errors), python/miss-islington#7 (Trigger the backport by leaving comments to miss-islington), #121 (Missed code style in cherry_picker/readme.rst), #63 (cherry_picker needs Python 3.6), and #56 (cherry_picker.py requires Python 3.6).
webknjaz commentedon Mar 29, 2019
So #315 wasn't enough? Feel free to ping me with new info since it's probably my change that caused the regression.
samdoran commentedon Apr 22, 2019
I am hitting this issue using
cherry_picker1.3.1 and 1.3.0 with Ansible. It seems it setsstate = BACKPORT_COMPLETEin the local git config, resulting in an error on subsequent runs.Clearing that section from the local config gets around the issue.
Reverting to
cherry_picker==1.2.2also works.webknjaz commentedon Apr 22, 2019
@samdoran I'm pretty sure that the issue has been created by
1.3.0.1.3.1doesn't clear that (by design). After cleaning up the state,1.3.1should work.BACKPORT_COMPLETEstate has been completely removed from the source code so you can't get that anymore.webknjaz commentedon May 22, 2019
@Mariatta @JulienPalard @samdoran @asvetlov it turned out that the dists on PyPI (both wheel and tarball) contain an outdated version of the source code prior to #315 which is why
1.3.1is still broken.I'll try to track down how this happened now.
asvetlov commentedon May 22, 2019
Thanks!
webknjaz commentedon May 22, 2019
So the tag points to the branch which doesn't have the relevant commit there: https://github.com/python/core-workflow/releases/tag/cherry-picker-v1.3.1
Build: https://travis-ci.org/python/core-workflow/builds/507624424
It points to a commit in the release PR https://github.com/python/core-workflow/pull/317/commits (5e60b22).
But that tree doesn't contain the "merge" commit 04b6587 which has the necessary changes: https://github.com/python/core-workflow/commits/5e60b229027ac70b0a68dd4d36ac68f9bee53fd4
As you can see that PR's branch derives from 9cf0ac1 which doesn't yet have the bugfix.
webknjaz commentedon May 22, 2019
@Mariatta the only fix here is to cut the new release. Just make sure to merge everything before creating a branch for that.
Mariatta commentedon May 28, 2019
Sorry for the delay and the trouble. v1.3.2 has just been released to fix this. Thanks.