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

Two tests () fail because of different command line API of the recent git #6915

Closed
2 tasks done
mcepl opened this issue Dec 7, 2021 · 3 comments
Closed
2 tasks done
Labels
wontfix Nobody will work on this.

Comments

@mcepl
Copy link

mcepl commented Dec 7, 2021

Describe the issue

While packaging update of weblate 4.9.1 for openSUSE (git 2.34, git-review 1.28) I got this errors in the test suite:

[ 7594s] ======================================================================
[ 7594s] ERROR: test_push_branch (weblate.vcs.tests.test_vcs.VCSGerritTest)
[ 7594s] ----------------------------------------------------------------------
[ 7594s] Traceback (most recent call last):
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/tests/test_vcs.py", line 212, in test_push_branch
[ 7594s]     self.test_push("push-branch")
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/tests/test_vcs.py", line 204, in test_push
[ 7594s]     self.repo.push(branch)
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/git.py", line 514, in push
[ 7594s]     self.execute(["review", "--yes", self.branch])
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/base.py", line 232, in execute
[ 7594s]     self.last_output = self._popen(
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/base.py", line 211, in _popen
[ 7594s]     raise RepositoryException(
[ 7594s] weblate.vcs.base.RepositoryException: Errors running git rebase -p -i remotes/origin/main
[ 7594s] fatal: --preserve-merges was replaced by --rebase-merges
[ 7594s] It is likely that your change has a merge conflict. You may resolve it
[ 7594s] in the working tree now as described above and then run 'git review'
[ 7594s] again, or if you do not want to resolve it yet (note that the change
[ 7594s] can not merge until the conflict is resolved) you may run 'git rebase
[ 7594s] --abort' then 'git review -R' to upload the change without rebasing.
[ 7594s]  (1)
[ 7594s] 
[ 7594s] ======================================================================
[ 7594s] ERROR: test_push_commit (weblate.vcs.tests.test_vcs.VCSGerritTest)
[ 7594s] ----------------------------------------------------------------------
[ 7594s] Traceback (most recent call last):
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/tests/test_vcs.py", line 208, in test_push_commit
[ 7594s]     self.test_push()
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/tests/test_vcs.py", line 204, in test_push
[ 7594s]     self.repo.push(branch)
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/git.py", line 514, in push
[ 7594s]     self.execute(["review", "--yes", self.branch])
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/base.py", line 232, in execute
[ 7594s]     self.last_output = self._popen(
[ 7594s]   File "/home/abuild/rpmbuild/BUILD/Weblate-4.9.1/weblate/vcs/base.py", line 211, in _popen
[ 7594s]     raise RepositoryException(
[ 7594s] weblate.vcs.base.RepositoryException: Errors running git rebase -p -i remotes/origin/main
[ 7594s] fatal: --preserve-merges was replaced by --rebase-merges
[ 7594s] It is likely that your change has a merge conflict. You may resolve it
[ 7594s] in the working tree now as described above and then run 'git review'
[ 7594s] again, or if you do not want to resolve it yet (note that the change
[ 7594s] can not merge until the conflict is resolved) you may run 'git rebase
[ 7594s] --abort' then 'git review -R' to upload the change without rebasing.
[ 7594s]  (1)
[ 7594s] 
[ 7594s] ----------------------------------------------------------------------
[ 7594s] Ran 4306 tests in 7473.665s
[ 7594s] 
[ 7594s] FAILED (errors=2, skipped=92)

Complete build log with all details of packages used and steps taken to achieve this.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

  1. Run the test suite

Expected behavior

Test suite passes

Screenshots

No response

Exception traceback

See above

How do you run Weblate?

Other

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

@mcepl
Copy link
Author

mcepl commented Dec 7, 2021

Actually, there should be probably git-review >= 2.2.0 in requirements-optional.txt.

@nijel
Copy link
Member

nijel commented Dec 12, 2021

Indeed git-review >= 2.2.0 seems needed with Git 2.34.0 or newer. I'm not sure it's a good idea to enforce this as most users will be on older Git....

@github-actions
Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants