Importer fails when rich history remote ref does not exist

Bug #1992499 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
Undecided
Robie Basak

Bug Description

Currently failing on openssh 1:8.2p1-4ubuntu0.6:

Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 15:30:33 - ERROR:Command exited 128: git fetch https://git.launchpad.net/ubuntu/+source/openssh refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 15:30:33 - ERROR:stdout:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 15:30:33 - ERROR:stderr: fatal: couldn't find remote ref refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 16:30:35 - ERROR:Command exited 128: git fetch https://git.launchpad.net/ubuntu/+source/openssh refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 16:30:35 - ERROR:stdout:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 16:30:35 - ERROR:stderr: fatal: couldn't find remote ref refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 17:30:37 - ERROR:Command exited 128: git fetch https://git.launchpad.net/ubuntu/+source/openssh refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 17:30:37 - ERROR:stdout:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: 10/11/2022 17:30:37 - ERROR:stderr: fatal: couldn't find remote ref refs/heads/fix-outdated-ssh
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: Traceback (most recent call last):
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 1924, in fetch_rich_history_from_changes_file
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: repo.git_run(['fetch', rich_url, rich_ref])
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/git_repository.py", line 1821, in git_run
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: return git_run(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/git_repository.py", line 267, in git_run
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: return run(['git'] + list(args), env=env, **kwargs)
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/run.py", line 87, in run
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: raise e
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/run.py", line 64, in run
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: cp = subprocess.run(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3.8/subprocess.py", line 516, in run
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: raise CalledProcessError(retcode, process.args,
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: subprocess.CalledProcessError: Command '['git', 'fetch', 'https://git.launchpad.net/ubuntu/+source/openssh', 'refs/heads/fix-outdated-ssh']'>
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: The above exception was the direct cause of the following exception:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: Traceback (most recent call last):
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 1918, in fetch_rich_history_from_changes_file
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: for attempt in tenacity.Retrying(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/tenacity/__init__.py", line 372, in __iter__
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: do = self.iter(retry_state=retry_state)
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/tenacity/__init__.py", line 351, in iter
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: six.raise_from(retry_exc, fut.exception())
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "<string>", line 3, in raise_from
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: tenacity.RetryError: RetryError[<Future at 0x7fb828afa6a0 state=finished raised CalledProcessError>]
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: The above exception was the direct cause of the following exception:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: Traceback (most recent call last):
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2585, in import_publishes
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: import_func(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2253, in import_unapplied_spi
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: import_unapplied_dsc(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2175, in import_unapplied_dsc
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: commit, tag = find_or_create_unapplied_commit(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2044, in find_or_create_unapplied_commit
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: rich_history_commit = fetch_rich_history_from_changes_file(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 1926, in fetch_rich_history_from_changes_file
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: raise RichHistoryFetchFailure() from e
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: gitubuntu.importer.RichHistoryFetchFailure
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: The above exception was the direct cause of the following exception:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: Traceback (most recent call last):
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/bin/git-ubuntu", line 11, in <module>
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: load_entry_point('gitubuntu==1.0', 'console_scripts', 'git-ubuntu')()
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/__main__.py", line 270, in main
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: sys.exit(args.func(args))
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2680, in cli_main
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: return main(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 515, in main
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: _main_with_repo(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 323, in _main_with_repo
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: history_found = import_publishes(
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: File "/snap/git-ubuntu/1004/usr/lib/python3/dist-packages/gitubuntu/importer.py", line 2598, in import_publishes
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: raise GitUbuntuImportError(msg) from e
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: gitubuntu.importer.GitUbuntuImportError: Unable to import patches-unapplied 1:8.2p1-4ubuntu0.6
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]:
Oct 11 17:30:38 juju-ad5025-prod-git-ubuntu-10 git-ubuntu[2013496]: Failed to import openssh (attempt 2/3)

Related branches

Robie Basak (racb)
Changed in git-ubuntu:
status: Triaged → In Progress
assignee: nobody → Robie Basak (racb)
Revision history for this message
Robie Basak (racb) wrote :

This was fixed and the fix is live.

Changed in git-ubuntu:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.