thoth-station / kebechet

I'm Kebechet bot, goddess of freshness - I will keep your source code fresh and up-to-date
24 stars 20 forks source link

New patch release #1174

Closed harshad16 closed 1 year ago

harshad16 commented 1 year ago

Hey, Kebechet!

Create a new patch release, please.

harshad16 commented 1 year ago
2022-11-18 20:27:19,947   1 INFO     kebechet:219: Running manager 'version' for 'thoth-station/kebechet'
2022-11-18 20:27:26,355   1 DEBUG    kebechet.managers.manager:156: Issue No release maintainers stated for this repository not found, not closing.
2022-11-18 20:27:26,355   1 INFO     kebechet.managers.version.version:354: Found an issue #1174 which is a candidate for request of new version release: New patch release
2022-11-18 20:27:26,756   1 INFO     kebechet.managers.version.release_triggers:61: Old version found in sources: 1.11.0
2022-11-18 20:27:26,757   1 INFO     kebechet.managers.version.release_triggers:76: Computed new version: 1.11.1
2022-11-18 20:27:26,799   1 INFO     kebechet.managers.version.utils:129: Computing changelog for new release from version '1.11.0' to version '1.11.1'
2022-11-18 20:27:26,800   1 INFO     kebechet.managers.version.utils:146: Smart Log : False
2022-11-18 20:27:26,834   1 INFO     kebechet.managers.version.utils:197: Computed changelog has 5 entries
2022-11-18 20:27:26,837   1 INFO     kebechet.managers.version.utils:84: Adding changelog to the CHANGELOG.md file
2022-11-18 20:27:27,287   1 WARNING  git.remote:900: Error lines received while fetching: error: remote unpack failed: index-pack abnormal exit
error: failed to push some refs to 'https://github.com/thoth-station/kebechet'
2022-11-18 20:27:27,391   1 DEBUG    kebechet.managers.manager:110: Running pipenv command 'pipenv --version'
2022-11-18 20:27:29,558   1 ERROR    kebechet:237: An error occurred during run of manager {'configuration': {'assignees': ['sesheta'], 'labels': ['bot'], 'changelog_file': True}} <class 'kebechet.managers.version.version.VersionManager'> for 'thoth-station/kebechet', skipping
Traceback (most recent call last):
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 107, in wrapper
    return function(*args, **kwargs)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/services/github/pull_request.py", line 163, in create
    created_pr = github_repo.create_pull(
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/github/Repository.py", line 1390, in create_pull
    return self.__create_pull_1(*args, **kwds)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/github/Repository.py", line 1421, in __create_pull_1
    return self.__create_pull(
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/github/Repository.py", line 1434, in __create_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "field": "head", "code": "invalid"}], "documentation_url": "https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/kebechet/kebechet_runners.py", line 235, in run
    instance.run(**manager_configuration)
  File "/home/user/kebechet/managers/version/version.py", line 391, in run
    self._create_pr_for_trigger_release(
  File "/home/user/kebechet/managers/version/version.py", line 158, in _create_pr_for_trigger_release
    pr = self.create_pr(
  File "/home/user/kebechet/managers/manager.py", line 163, in create_pr
    return self.project.create_pr(
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 117, in wrapper
    __check_for_internal_failure(ex)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 59, in __check_for_internal_failure
    raise ex
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 107, in wrapper
    return function(*args, **kwargs)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/read_only.py", line 73, in readonly_func
    return func(self, *args, **kwargs)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/utils.py", line 199, in indirectly_called
    return specialized_function(self, *args, **kwargs)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 119, in wrapper
    __check_for_internal_failure(__wrap_exception(ex))
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.8/site-packages/ogr/abstract.py", line 59, in __check_for_internal_failure
    raise ex
ogr.exceptions.GithubAPIException
2022-11-18 20:27:29,591   1 INFO     kebechet:271: Finished management for 'thoth-station/kebechet'
Sentry is attempting to send 2 pending error messages
shreekarSS commented 1 year ago

Tried to reproduce it locally,

Looks like changelog is not being generated correctly

2022-11-18 21:26:42,820 37927 INFO kebechet.managers.version.utils:197: Computed changelog has 991 entries

harshad16 commented 1 year ago

The problem seems to be with branch push. https://github.com/thoth-station/kebechet/blob/6c04a114a6543708ccf4179b3b6df5236f23eb3e/kebechet/managers/manager.py#L182

    self.repo.remote().push(branch_name, force=force_push).raise_if_error()
  File "/home/hnalla/.local/share/virtualenvs/kebechet-Fx4bd8Xk/lib/python3.8/site-packages/git/remote.py", line 293, in raise_if_error
    raise self.error
  File "/home/hnalla/.local/share/virtualenvs/kebechet-Fx4bd8Xk/lib/python3.8/site-packages/git/remote.py", line 893, in _get_push_info
    proc.wait(stderr=stderr_text)
  File "/home/hnalla/.local/share/virtualenvs/kebechet-Fx4bd8Xk/lib/python3.8/site-packages/git/cmd.py", line 559, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
  cmdline: git push --porcelain origin v1.11.1
  stderr: 'error: remote unpack failed: index-pack abnormal exit