github / github/gh-gei

Issue with Migrating Repository with Skip Release Flag

Open
#1,320 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
478
Forks
146
Avg merge
7d 21h
Merged PRs (30d)
2

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

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

# Reproduction Steps

1. Create a Repository in Organization A
5. Create like 3000+ branches
6. Create 3000+ releases and tags
7. Create 300+ Pull Requests with Lorem Ipsum Dummy Data and an Attachment
8. Create an Organization B
9. Migrate Repository from Organization A to Organization B
10. 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 to
[2024-12-17T15:29:15Z] INFO -- Migration 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 .
[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 -- -----------------------------
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.