Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Migrating Repository with Skip Release Flag #1320

Open
Richard-Barrett opened this issue Dec 19, 2024 · 0 comments
Open

Issue with Migrating Repository with Skip Release Flag #1320

Richard-Barrett opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Richard-Barrett
Copy link

Richard-Barrett commented Dec 19, 2024

Description

Repositories with large metadata linked to pull requests, pull request branches, and a lot of releases and tags are not properly skipped when adding in the --skip-releases flag for migrating a repository.

Example Command:

gh gei migrate-repo --github-source-org OrganizationA --source-repo target-repo--github-target-org OrganizationB --target-repo. --skip-releases

Requriements

  1. Install gh
  2. install the plugin
  3. have two github organizations

Reproduction Steps

  1. Create a Repository in Organization A
  2. Create like 3000+ branches
  3. Create 3000+ releases and tags
  4. Create 300+ Pull Requests with Lorem Ipsum Dummy Data and an Attachment
  5. Create an Organization B
  6. Migrate Repository from Organization A to Organization B
  7. Watch it Fail

When you run it you will get an error related to the following:

[2024-12-17T15:29:15Z] INFO -- Migration started by MigratorsName from <source_repo> to <target_repo>
[2024-12-17T15:29:15Z] INFO -- Migration ID: <some_id>
[2024-12-17T15:29:15Z] INFO -- -----------------------------
[2024-12-17T15:29:16Z] INFO -- Git source migration started
[2024-12-17T15:49:28Z] INFO -- Git source migration completed
[2024-12-17T15:49:28Z] INFO -- -----------------------------
[2024-12-17T15:49:28Z] INFO -- Extraction started
[2024-12-17T20:29:21Z] ERROR -- ExtractRepoArchive: Repository metadata took too long to generate
[2024-12-17T20:29:47Z] ERROR -- ExtractRepoArchive: Repository metadata took too long to generate
[2024-12-17T20:29:51Z] ERROR -- ExtractAndLoadAttachmentsResumableJob: Metadata archive attachments could not be extracted for migration with url https://github.com/OrganizationA/target-repo and metadata id <metadata_id>.
[2024-12-17T20:29:51Z] ERROR -- ArchiveTimeoutError
[2024-12-17T20:29:51Z] INFO -- Extraction failed
[2024-12-17T20:29:52Z] INFO -- -----------------------------
[2024-12-17T20:29:52Z] INFO -- Migration failed
[2024-12-17T20:29:52Z] INFO -- -----------------------------
@Richard-Barrett Richard-Barrett added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant