Project 'infra/sysadm-environment' was moved to 'swh/infra/sysadm-environment'. Please update any links and bookmarks that may still have the old path.
docker container rm forgerie; docker run \ -v $PWD/../forgerie:/opt/forgerie/ -v $PWD/docker/ssh:/srv/forgerie/.ssh \ -v /srv/phabricator:/srv/phabricator \ -v ~/.kube:/srv/forgerie/.kube \ -v /var/tmp/migrate-gitlab/forgerie:/tmp/forgerie \ --ulimit nofile=1024 --name forgerie --net=host -it forgerieWARNING: Support for the legacy ~/.dockercfg configuration file and file-format is deprecated and will be removed in an upcoming releaseforgerieWARNING: Support for the legacy ~/.dockercfg configuration file and file-format is deprecated and will be removed in an upcoming release## Running migration logs in /tmp/forgerie/run-20220622-1420.log ##To load "forgerie": Load 1 ASDF system: forgerie; Loading "forgerie"..........Failed to handle revision 3880, due to error Got error running git command cat-file with args ("-t" "14b15b2f4f63efbb4deb7b06cea6cd598b22f8ef") in dir /srv/phabricator/repos/SPSITE/, skipping.Shutting down....real 5m18.740suser 2m8.426ssys 0m3.874s
New test. tl; dr There is a way to update a repository migrated (drop it and import it
back, see 2nd run.)
Modus operandi
Main migration routine is done (nothing more to do [1]).
Drop the targetted repository [2] (same modus operandi as [3]).
First run: KO
steps
same general m.o
Trigger migration [1]
Status
The repository is not detected as missing and is not imported.
Second run: OK
steps
Same general m.o
Backing up the mapping (kind of cache) file used by the migration.
Edit the mapping [6] file to drop the repository properties mentioned [4].
Trigger migration (same output [1]).
status
The repository is migrated! So providing the right amount of tampering with the
migration state, we can import back a repository.
Conclusion
Experiment 2nd run is the proper way to "update" a repository. Importing it from
scratch requires to drop it from gitlab (and the mapping file) then trigger back the
migration.
[1]
docker container rm forgerie; docker run \ -v $PWD/../forgerie:/opt/forgerie/ -v $PWD/docker/ssh:/srv/forgerie/.ssh \ -v /srv/phabricator:/srv/phabricator \ -v ~/.kube:/srv/forgerie/.kube \ -v /var/tmp/migrate-gitlab/forgerie:/tmp/forgerie \ --ulimit nofile=1024 --name forgerie --net=host -it forgerieWARNING: Support for the legacy ~/.dockercfg configuration file and file-format is deprecated and will be removed in an upcoming releaseforgerieWARNING: Support for the legacy ~/.dockercfg configuration file and file-format is deprecated and will be removed in an upcoming release## Running migration logs in /tmp/forgerie/run-20220624-1237.log ##To load "forgerie": Load 1 ASDF system: forgerie; Loading "forgerie"..........Shutting down....real 0m35.650suser 0m5.750ssys 0m0.343s
Reopened as the need got clarified and the previous check used a repository which did not have any issues/merge-requests associated to it.
So let's check with a repo which does have those ^.
E.g. puppet-swh-site, puppet-environment, swh-sysadmin-provisioning (this one qualifies and is probably smaller in terms of diffs/merge-requests).