Import failure when Debian and Ubuntu publish different contents for the same package version string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
Medium
|
Robie Basak |
Bug Description
03/06/2018 17:09:47 - INFO:Importing patches-unapplied 3.1~rc1+r3.0.13-12 to ubuntu/
03/06/2018 17:10:08 - ERROR:Found import tag importer/
03/06/2018 17:10:11 - INFO:Importing patches-unapplied 3.1~rc1+r3.0.13-12 to ubuntu/trusty
03/06/2018 17:10:14 - ERROR:Found import tag importer/
03/06/2018 17:10:15 - ERROR:Command exited 128: git tag -a -m "git-ubuntu import v0.7.4" importer/
03/06/2018 17:10:15 - ERROR:stdout:
03/06/2018 17:10:15 - ERROR:stderr: fatal: tag 'importer/
Traceback (most recent call last):
File "/snap/
parent_
File "/snap/
upload_
File "/snap/
None,
File "/snap/
tag, commit_hash
File "/snap/
**kwargs,
File "/snap/
return run(['git'] + list(args), env=env, **kwargs)
File "/snap/
raise e
File "/snap/
stdout=
File "/snap/
output=
subprocess.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
sys.
File "/snap/
retry_
File "/snap/
parent_
File "/snap/
raise GitUbuntuImport
gitubuntu.
Failed to import libffi (attempt 3/3)
I believe this is another orphan tag corner case, which is about orphaning when the previously imported same version doesn't tree-match.
cf. git_repository.py LL1253 or so.
In that case, we *also* need to see if it's already been imported as an orphan commit, which happens to match.
I think we should chagne the if/else/elif to a for tag in (import_tag, orphan_tag, upload_tag) and if any of them treeish match, use it, else orphan.
List of known affected packages:
aodh
ecj
golang-
libcdio
libffi
lxml
python3.4
python3.5
shim-signed
Related branches
- Bryce Harrington: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 764 lines (+467/-182)6 files modifiedgitubuntu/git_repository.py (+44/-0)
gitubuntu/git_repository_test.py (+62/-0)
gitubuntu/importer.py (+218/-171)
gitubuntu/importer_tag_test.py (+0/-10)
gitubuntu/importer_test.py (+140/-0)
setup.py (+3/-1)
- Robie Basak: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 15 lines (+3/-1)1 file modifiedgitubuntu/importer.py (+3/-1)
- Robie Basak: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 295 lines (+148/-28)6 files modifiedgitubuntu/git_repository.py (+24/-19)
gitubuntu/importer.py (+29/-5)
gitubuntu/importlocal.py (+0/-1)
gitubuntu/importppa.py (+0/-1)
gitubuntu/source_builder.py (+10/-1)
gitubuntu/test_importer.py (+85/-1)
tags: | added: import import-edge-case |
tags: | added: spec |
description: | updated |
description: | updated |
Changed in usd-importer: | |
status: | Triaged → In Progress |
assignee: | nobody → Robie Basak (racb) |
Changed in usd-importer: | |
status: | In Progress → Fix Committed |
In this edge case, Debian libffi 3.1~rc1+r3.0.13-12 differs from Ubuntu libffi 3.1~rc1+r3.0.13-12 as follows:
diff -Nru libffi- 3.1~rc1+ r3.0.13/ debian/ changelog libffi- 3.1~rc1+ r3.0.13/ debian/ changelog 3.1~rc1+ r3.0.13/ debian/ changelog 2014-03-29 15:21:03.000000000 +0000 3.1~rc1+ r3.0.13/ debian/ changelog 2014-03-28 08:57:07.000000000 +0000 r3.0.13- 12) unstable; urgency=high r3.0.13- 12) trusty; urgency=medium
--- libffi-
+++ libffi-
@@ -1,9 +1,9 @@
-libffi (3.1~rc1+
+libffi (3.1~rc1+
- * Revert 3.1~rc1-2 upload, ABI did change on x86, FFI_TRAMPOLINE_SIZE
- did change from 10 to 52. Closes: #742897. LP: #1298824.
+ * Revert 3.1~rc1-2 upload, it causes an unannounced ABI break on at least
+ i386, causing lots of segfaults. (LP: #1298824)
- -- Matthias Klose <email address hidden> Sat, 29 Mar 2014 16:20:56 +0100
+ -- Martin Pitt <email address hidden> Fri, 28 Mar 2014 09:55:09 +0100
libffi (3.0.13-12) unstable; urgency=medium