Am 11.07.22 um 17:50 schrieb Vladimir Sitnikov:
I've made progress on Bugzilla -> GitHub migration.

Frankly speaking, I'm not comfortable refactoring/maintaining Python code
(which is what many projects use to migrate off Bugzilla),
so I created Kotlin-based project so the data and fields are typed:
https://github.com/vlsi/bugzilla2github

For now, it can download bugs and it can parse XML.
It stores the summary in a local database (
https://github.com/JetBrains/xodus), so it can skip bugs based on change
date.
It is tempting to spawn a web UI that would serve the received bugs from
the same database :)

The next steps I plan to follow are:
* Implement batched downloader (ASF imposes 45 requests per 180 seconds
limit), so it downloads 100 or 500 bugs in a single HTTP request
I'm going to use multi-bug requests like
https://bz.apache.org/bugzilla/show_bug.cgi?id=59681&id=48542&ctype=xml
* Add authorization (Bugzilla returns truncated results for unauthorized
requests)
* Add regexp processing so JMeter bugs look better in GitHub formatting.
* Do something with attachments. We could either link files via
bz.apache.org/... URLs (I don't know if it would work),
or we could create a separate jmeter-bug-attachments repository, we could
migrate Bugzilla attachments there,
and then we reference the images and files from that repository via
raw.githubusercontent.com.
Creating jmeter-bug-attachments repo would require slightly more work,
however, then we lose nothing if Bugzilla dies.

Let me know if you want to get your hands dirty on that.

* Maybe we could dump the data from the MySQL database, import in into a clone and work from that instance instead through the UI?

* What kind of processing do you want to do on the text with regexps?

* What type of attachements can be used on Github directly (I am really lazy, haven't used it before and haven't tried)?

Felix


Vladimir

Attachment: OpenPGP_0xEA6C3728EA91C4AF.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to