importer is not idempotent on import tags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
High
|
Unassigned |
Bug Description
For reasons I have yet to debug, when I run the importer it sometimes hangs after finishing the first push (Executing: git push pkg "refs/heads/
What I usually do in this case is re-run the git push in a different terminal window. When it says its done, I kill the importer.
This currently means that tags currently do not get pushed in this scenario.
AFAICT, if I were to then throw away my importer directory, the import tags would never get re-created, and they'd forever be missing.
I noticed and recovered this time by pushing the import tag manually.
Incidentally, running the importer again (and it completing fully this time) didn't seem to recover the situation. I expected that it would because the import tag was still local (under importer/
To fix this bug, I think we need to use "git push --atomic" and push both the heads and the tags in the same command (with two refspecs).
Related branches
- Nish Aravamudan: Approve
-
Diff: 20 lines (+5/-4)1 file modifiedgitubuntu/importer.py (+5/-4)
Changed in usd-importer: | |
status: | Triaged → Fix Released |