Skip to content

Bitbucket: Import LFS objects

Madelein van Niekerk requested to merge 412614-import-lfs-objects into master

What does this MR do and why?

Imports LFS objects from Bitbucket Cloud.

How to set up and validate locally

  1. Follow https://docs.gitlab.com/ee/integration/bitbucket.html to setup OAuth for BitBucket Cloud. You will need an account on https://bitbucket.org/. Make sure you add the bitbucket configuration in the development section of your config/gitlab.yml and do a gdk restart
development:
  <<: *base
  omniauth:
    providers:
    - { name: 'bitbucket',
        app_id: '...',
        app_secret: '...' }
  1. Create a project and repo on BitBucket.

  2. Follow the instructions to setup LFS for the bitbucket repo and add a large file.

  3. Enable the feature flag: Feature.enable(:bitbucket_parallel_importer)

  4. On your gdk server, create a new project > click on Import project > Bitbucket Cloud > follow instructions to connect to https://bitbucket.org/.

  5. Import the project created in step 2.

  6. Verify that the large file was imported and it indicates LFS type.

    Screenshot_2023-10-12_at_09.19.08

  7. You can also view the importer logs to see when each step was executed or if there are errors: tail -f log/importer.log

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #412614 (closed)

Edited by Madelein van Niekerk

Merge request reports