Skip to content

Integer overflow issue - integer 2465553132 too big to convert to `int' #1370

Open
@Nordle

Description

@Nordle

Description

When running an organisation migration (or individual repo migration) from one github org to another, one of the repositories fails due to an integer overflow issue, it seems that the tool is limited to using 32-bit signed integers.

Log output:

[2025-06-25T08:54:00Z] INFO -- Migration started by Nordle from https://github.com/ORG/REPO to NEW_ORG/REPO
[2025-06-25T08:54:00Z] INFO -- Migration ID: b99c0616-052c-4360-a680-897132bba59b
[2025-06-25T08:54:00Z] INFO -- -----------------------------
[2025-06-25T08:54:01Z] INFO -- Git source migration started
[2025-06-25T08:56:43Z] INFO -- Git source migration completed
[2025-06-25T08:56:43Z] INFO -- -----------------------------
[2025-06-25T08:56:43Z] INFO -- Extraction started
[2025-06-25T09:16:34Z] ERROR -- ExtractRepoMetadataArchiveResumableJob: Metadata archive could not be extracted for migration with url https://github.com/ORG/REPO and metadata id 12345678.
[2025-06-25T09:16:36Z] ERROR -- integer 2465553132 too big to convert to `int'
[2025-06-25T09:16:36Z] INFO -- Extraction failed
[2025-06-25T09:16:36Z] INFO -- -----------------------------
[2025-06-25T09:16:36Z] INFO -- Migration failed
[2025-06-25T09:16:36Z] INFO -- -----------------------------

Stack trace:

[2025-06-25 11:16:45] [ERROR] Migration Failed. Migration ID: RM_kgDaACRiOTljMDYxNi0wNTJjLTQzNjAtYTY4MC04OTcxMzJiYmE1OWI
Error during migration: integer 2465553132 too big to convert to int'
[2025-06-25 11:16:45] [ERROR] OctoshiftCLI.OctoshiftCliException: integer 2465553132 too big to convert to int'
   at OctoshiftCLI.GithubEnterpriseImporter.Commands.MigrateRepo.MigrateRepoCommandHandler.Handle(MigrateRepoCommandArgs args)
   at OctoshiftCLI.Extensions.CommandExtensions.RunHandler[TArgs,THandler](TArgs args, ServiceProvider sp, CommandBase2 command)
   at OctoshiftCLI.Extensions.CommandExtensions.<>c__DisplayClass1_03.<<ConfigureCommand>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext)
   at System.CommandLine.Invocation.InvocationPipeline.<>cDisplayClass4_0.<<BuildInvocationChain>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass17_0.<<UseParseErrorReporting>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass12_0.<<UseHelp>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass22_0.<<UseVersionOption>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass19_0.<<UseTypoCorrections>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass16_0.<<UseParseDirective>b0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Reproduction Steps

Command run:

gh gei migrate-repo --github-source-org SOURCE_ORG --source-repo SOURCE_REPO--github-target-org TARGET_ORG --target-repo TARGET_REPO --verbose

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions