Importer races on date_created between Debian and Ubuntu

Bug #1851361 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

We currently process the Debian distribution first, and then Ubuntu later.

Whether a package is synced within Launchpad or fakesynced, it's therefore possible for us to see the future SPPH first, and end up using that date_created timestamp for the imported commit. This is a race condition that would mutate our commit hashes.

The solution is to process them in parallel, sorting by date_created together as they are processed.

Related branches

Robie Basak (racb)
tags: added: spec
Revision history for this message
Nish Aravamudan (nacc) wrote :

This tickled something in my memory of a brain dump I had passed to you suggesting the same thing for purely a code reorganization reason. I think I had even created a branch, let me look. Ah yes: https://code.launchpad.net/~nacc/usd-importer/+git/usd-importer/+ref/lp1731554-importer-rework-v2 Maybe you can start by breaking up that large change, if it still seems useful. Especially if you land the tests branch(es) first to help assert correctness.

Revision history for this message
Nish Aravamudan (nacc) wrote :
Robie Basak (racb)
tags: added: import
Robie Basak (racb)
Changed in usd-importer:
status: Triaged → In Progress
assignee: nobody → Robie Basak (racb)
Robie Basak (racb)
Changed in usd-importer:
status: In Progress → Fix Committed
Revision history for this message
Robie Basak (racb) wrote : Fix released in git-ubuntu

Fix released in git-ubuntu version 1.0

Changed in usd-importer:
status: Fix Committed → 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.