Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GitHubUniverseRecap2023

pnsk
December 05, 2023
94

 GitHubUniverseRecap2023

pnsk

December 05, 2023
Tweet

Transcript

  1. Migration paths To GitHub Enterprise Cloud (including EMU) Self-serve Services

    required Azure DevOps Services (aka. Cloud) GitLab Bitbucket Data Center Bitbucket Server GitHub Enterprise Server To GitHub Enterprise Server Self-serve Services required GitHub Enterprise Cloud Bitbucket Data Center GitHub Enterprise Server Bitbucket Server GitLab
  2. To GitHub Enterprise Cloud (including EMU) Self-serve Services required Azure

    DevOps Services (aka. Cloud) GitLab Bitbucket Data Center Bitbucket Server GitHub Enterprise Server GitHub Enterprise Importer ghe-migrator To GitHub Enterprise Server Self-serve Services required GitHub Enterprise Cloud Bitbucket Data Center GitHub Enterprise Server Bitbucket Server GitLab
  3. ghe-migrator GitHub Enterprise Importer • ghe-migrator command is contained in

    GitHub Enterprise Server • Launched on August 15th, 2015 (GHES 2.3.0 or newer) • GEI CLI is an extension of GitHub CLI and open sourced • (GraphQL API) • Launched on June 12st, 2023 To GitHub Enterprise Cloud (including EMU) To GitHub Enterprise Server https://github.com/github/gh-gei
  4. What data you can migrate • Repositories • Metadata (e.g.

    issues, pull requests) What metadata you can migrate depends on your source/target environment. To GHEC; https://docs.github.com/en/enterprise-cloud@latest/migrations/using-github-enterprise-importer/underst anding-github-enterprise-importer/migration-support-for-github-enterprise-importer To GHES; https://docs.github.com/en/enterprise-server@latest/migrations/using-ghe-migrator/about-ghe-migrator #migrated-data
  5. GitHub Enterprise Server GitHub Enterprise Cloud • Disk usage •

    Network • Workload • Customized Size limit for a file (100MB by default) • Network • 2GB per a commit • 100MB size limit for a file → It’s possible to increase the limitation temporarily for migrations.
  6. Commit/File size limits don’t just apply to your repo as

    it is today - they also apply to its history: • 100MB per file: Run git-sizer --verbose on each repo and take a look at Biggest objects -> Blobs -> Maximum size. • 2GB per commit: Run git-sizer --verbose on each repo and take a look at Biggest objects -> Commits -> Maximum size. How much data do you have? https://github.com/github/git-sizer
  7. Larger files than 100MB should be removed from a repository

    or moved to Git LFS: • Removing larger file: git filter-repo --invert-paths --strip-blobs-bigger-than 100M • Moving to Git LFS: git lfs migrate import –include=”*.png” –everything (Git LFS 2.2.0 or newer) Tutorial: https://github.com/git-lfs/git-lfs/wiki/Tutorial#migrating-existing-repository-data-to-lfs
  8. Checking in advance how much data your repository has should

    be helpful to plan your migrations: • GitHub Enterprise Cloud or Enterprise Server: gh repo-stats -o <org> • Azure DevOps: gh ado2gh inventory-report • Bitbucket Server/Data Center: gh bbs2gh inventory-report https://github.com/mona-actions/gh-repo-stats/ How much data do you have?
  9. ✅ Azure Pipelines ✅ Bamboo ✅ Bitbucket Pipelines ✅ CircleCI

    ✅ GitLab ✅ Jenkins ✅ Travis CI GitHub Actions Importer
  10. GitHub Actions Importer Open source repositories: • GitHub CLI extension

    https://github.com/github/gh-actions-importer • Issue-ops templates https://github.com/actions/importer-issue-ops • Self-guided exercises https://github.com/actions/importer-labs