HomePhabricator

Add workflow to create repository identities

Description

Add workflow to create repository identities

Summary:
Depends on D19443. Creates a workflow for populating the new identity table by iterating over commits, either one repo at a time or all at once. Locally caches identities to avoid fetching them inf times. An actual migration that invokes this workflow will come in another revision that won't land until at least next week.

Performance is ~2k commits in 4.9s on my local machine.

Test Plan: Ran locally a few times with a few different states of the repository_identity table.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: jcox, Korvin, PHID-OPKG-gm6ozazyms6q6i22gyam

Differential Revision: https://secure.phabricator.com/D19446

Details

Provenance
amckinleyAuthored on May 11 2018, 1:41 AM
amckinleyPushed on May 31 2018, 2:29 PM
Reviewer
epriestley
Differential Revision
D19446: Add workflow to create repository identities
Parents
rPfe5fde591026: Assign RepositoryIdentity objects to commits
Branches
Unknown
Tags
Unknown
Build Status
Buildable 20351
Build 27637: Run Core Tests