Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.96k stars 169 forks source link

migrate away from trac and svn #2967

Closed totaam closed 3 years ago

totaam commented 3 years ago

They have served us well for over 10 years, but without any meaningful progress, especially with trac still not supporting python3 properly.. It's time to move on.

Options (in no particular order):

There are pros and cons for each option:

totaam commented 3 years ago

As an aside, if going for the hosted solution, it might be worth hosting the mailing list too. (there are many mailman hosting services out there, all relatively cheap)

See also: move to new signing keys (#2968)

It would be nice if some of the release script could preserve the incremental revision number feature of svn:

totaam commented 3 years ago

2020-12-08 17:08:31: stdedos commented

I would much more prefer Github than Gitlab, but that may come down purely on personal preference.

There are tidbits here and there that make everything feel more palpable (e.g. the URLs are very clearly read and manipulated to move from here to there in Github), and there are no "weird behaviors (e.g. the annoying @-reference automatically assigning the issue to the referencee as to-do that exists in Gitlab)

For git-specific stuff, I guess you have already seen https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git (and might be a good idea to update it if/after you have improved something).

totaam commented 3 years ago

2021-01-01 23:14:13: brief commented

If considered that this step will be necessary again in the future, data should be available for migration.

Self hosted solutions (e.g. gitlab) guarantee to be able to access this data.

totaam commented 3 years ago

Still in progress:

totaam commented 3 years ago

2021-01-20 16:34:19: antoine uploaded file TracWiki2MediaWiki.pl (36.6 KiB)

perl script found here: https://www.mediawiki.org/w/index.php?oldid=2103135#Code

totaam commented 3 years ago

2021-01-21 15:00:17: antoine uploaded file extract-trac-attachments.sh (1.4 KiB)

needed to keep links to the attachments working

totaam commented 3 years ago

2021-01-22 13:32:45: antoine uploaded file trac-hub.patch (3.0 KiB)

remove email addresses from tickets, remove dependency on unused mysql backend, increase delay to prevent hitting the github API rate limits, don't post empty comments, fix wiki links

stdedos commented 3 years ago

The repositories and tickets are now available here: ​https://github.com/Xpra-org

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

Welcome to the other side 😀 You could've added tags labels for these ones too!

component: external | priority: major

totaam commented 3 years ago

Adding a redirect in each ticket - this will take time to run:

for i in `seq 4 3008`; do
  python2 -c "from trac.env import Environment;from trac.ticket import Ticket;\
  env = Environment('/var/lib/trac/Xpra/', create=0);\
  tkt = Ticket(env, $i);tkt.save_changes('migration script', comment='this ticket has been moved to: [https://github.com/Xpra-org/xpra/issues/%s]' % \"$i\")";
done

github seems to do the right thing for tickets that have been moved to https://github.com/Xpra-org/xpra-html5

stdedos commented 3 years ago

I don't know why you splitted the html repo; but yeah - if it works, you should do that.

At least https://xpra.org/trac/ticket/2967 -> https://github.com/Xpra-org/xpra/issues/2967 works

totaam commented 3 years ago

LGTM.

Public announcement on the mailing list: migration to github

stdedos commented 5 months ago

After so many years (and more than 2 years of experience in Gitlab) ... I sort-of regret my decision :sweat_smile:

Github has "less features" than Gitlab - which work better in Github ... but Github CI is so far behind with comparison to Gitlab's.

After learning to ignore a lot of Gitlab's stuff that you don't use, then the CI is many times over worth it

I know it's "a little bit too late", but I did want to just leave this here for posterity