Skip to content

GitLab Migration - Migrate Snippets Repositories

This needs to be worked on after we close this: #339406 (closed)

The strategy to migrate Snippets and repositories is described here: #339406 (comment 707741948)

For an initial solution we want to:

  • Have 2 pipelines:
    • 1st pipeline imports snippest via ndjson
    • 2nd pipeline imports repos via graphql (queries all the imported snippets from db, then query all their url from graphql).
  • we will do the 2nd pipeline this sinchronously for now, but paginating the snippets by 100 batch.
  • NOT hardfail the migration if a snippet pipeline fails.

...

It is possible to use either, import_repository or fetch_as_mirror. For fetch_as_mirror we need to create the repository first with snippet.create_repository.

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖