Bug #17619

update_weblate_components.py broken due to unclean local Git state

Added by intrigeri 2020-04-15 07:10:23 . Updated 2020-05-06 04:29:00 .

Status:
Confirmed
Priority:
Elevated
Assignee:
hefee
Category:
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Translation Platform
Deliverable for:

Description

cron.sh has been failing loudly every 5 minutes since at least 24h.

This looks related to PO files having been renamed in our Git repo.


Subtasks


History

#1 Updated by intrigeri 2020-04-15 08:04:00

  • blocks Bug #17005: Upgrade to po4a 0.55 in Tails itself, in the Vagrant build box, on {translate,www}.lizard, and on RM's systems added

#2 Updated by intrigeri 2020-04-29 13:31:53

  • blocked by deleted (Bug #17005: Upgrade to po4a 0.55 in Tails itself, in the Vagrant build box, on {translate,www}.lizard, and on RM's systems)

#3 Updated by zen 2020-04-29 17:24:43

In order to reproduce the problem, when this happens again, let’s make sure to save:

  • /var/log/weblate/update.log*
  • A tarball of the weblate and integration repos:
    • /var/lib/weblate/repositories/vcs/tails
    • /var/lib/weblate/repositories/integration

#4 Updated by hefee 2020-04-29 17:25:25

2020-04-14 22:00:06,699 - UWC - root(ERROR): Couldn't update master with fast-forward strategy. Reset remote to eceb4a8a35279930175b07e2dd8a0f212c218835 again
2020-04-14 22:00:06,700 - UWC - root(ERROR): -- Something unexpected happened. Giving up. --
Traceback (most recent call last):
  File "/var/lib/weblate/scripts/update_weblate_components.py", line 230, in <module>
    main()
  File "/var/lib/weblate/scripts/tailsWeblate.py", line 39, in func
    f()
  File "/var/lib/weblate/scripts/update_weblate_components.py", line 195, in main
    _r.pull(local,ff_only=True)
  File "/usr/lib/python3/dist-packages/git/remote.py", line 771, in pull
    res = self._get_fetch_info_from_stderr(proc, progress)
  File "/usr/lib/python3/dist-packages/git/remote.py", line 638, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "/usr/lib/python3/dist-packages/git/cmd.py", line 291, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git pull --ff-only -v cron master
  stderr: 'error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.'
Traceback (most recent call last):
  File "/var/lib/weblate/scripts/update_weblate_components.py", line 230, in <module>
    main()
  File "/var/lib/weblate/scripts/tailsWeblate.py", line 39, in func
    f()
  File "/var/lib/weblate/scripts/update_weblate_components.py", line 195, in main
    _r.pull(local,ff_only=True)
  File "/usr/lib/python3/dist-packages/git/remote.py", line 771, in pull
    res = self._get_fetch_info_from_stderr(proc, progress)
  File "/usr/lib/python3/dist-packages/git/remote.py", line 638, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "/usr/lib/python3/dist-packages/git/cmd.py", line 291, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git pull --ff-only -v cron master
  stderr: 'error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.'

#5 Updated by CyrilBrulebois 2020-05-06 04:29:00

  • Target version changed from Tails_4.6 to Tails_4.7