[llvm-dev] [Openmp-dev] Bugzilla migration is stopped again

David Chisnall via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 6 01:31:08 PST 2021


On 04/12/2021 09:58, Anton Korobeynikov via llvm-dev wrote:
>> Is it really impossible to just completely remove all the current
>> issues and PR's in a repository and reset the counter, so that none of
>> this remapping is necessary in the first place?
> I asked this question many times at different levels. As far as I was
> told – yes. The bulk import could only happen to the empty repo. If
> you know how it could be done in another way – please let us know.
> 

If I understand the GitHub process correctly, PR / issue numbers are 
monotonic integers that cannot be rolled back or modified because they 
are used in cross-referencing and are externally visible.  The mapping 
from repository to name; however, is mutable (with big warnings when you 
press the button because it breaks the aforementioned cross-referencing 
and external links).

It should be possible to:

  1. Create a new empty private GitHub project.
  2. Import all bugs, with the same bug numbers.
  3. Make the project public.
  4. Pull the entire contents of the current repo to the new project.
  5. Delete the llvm-project project (or rename it to llvm-project.old 
or something).
  6. Rename the new project to llvm-project

Steps 5 and 6 can't be atomic, so this will break everything that tries 
to access the repo between steps 5 and 6, but that should be about 30 
seconds of downtime.  The end result should be a llvm/llvm-project 
GitHub project containing the current git repo and the issues from 
Bugzilla but not any of the existing issues / PRs on that repo.

David




More information about the llvm-dev mailing list