Issue with Migrating Repository with Skip Release Flag #1320
Open
Description
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
- Install gh
- install the plugin
- have two github organizations
Reproduction Steps
- Create a Repository in Organization A
- Create like 3000+ branches
- Create 3000+ releases and tags
- Create 300+ Pull Requests with Lorem Ipsum Dummy Data and an Attachment
- Create an Organization B
- Migrate Repository from Organization A to Organization B
- 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 -- -----------------------------