• [gentoo-dev] New tool for updating Bug summaries after package moves: b

    From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to All on Wed Dec 11 15:10:01 2024
    Hi,

    I've made a quick tool that can perform search-and-replacement
    on Bugzilla bugs, so if you move a package, you can quickly update
    hundreds of bugs filed against it.

    https://github.com/projg2/bugsed

    Note that it just does dumb text replacement with substring match, so it
    can be greedy. By default, it just does a dry-run, `-u` to update.

    You may also want to try pkgmove from mgorny-dev-scripts, which is also
    dumb as hell, greedy on seding stuff and requires you to rename ebuilds
    inside the package directory first.

    --
    Best regards,
    Michał Górny


    -----BEGIN PGP SIGNATURE-----

    iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmdZnNkSHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQOIhIIALYICT6rX9C3FvozijAeZ4bUEumN2h03 cFo9fHw4/7JpOWFHjiG2GxgoEt0YiN2SANSUk69UqLks5HHyqXnyiUDy3o8jIyJR hfa/9Us/2CUimKtBHVjAQfGpUjp6x0wA2j1MkreMHAYt+tyV10FfEupH4HGmjr30 EO3llqitc0px1ExlrYCZKsvaGVBVHBxPeoTC4oHD0ZnS/WDxKyGEMVJahNacF90M inOfUNbn2XhUlQHuK5I8QX79YCCCSjF1cd119I8evEPL3t/OIyVX/bxwwwfneBna 01pn16n+Z/ymQQMJVDToLHTfLil8fOLT25Q3q2LQjC1O/Mw51xVkLEE=
    =BgXy
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to mgorny@gentoo.org on Thu Dec 12 06:00:01 2024
    Michał Górny <mgorny@gentoo.org> writes:

    Hi,

    I've made a quick tool that can perform search-and-replacement
    on Bugzilla bugs, so if you move a package, you can quickly update
    hundreds of bugs filed against it.

    Nice!


    https://github.com/projg2/bugsed

    Note that it just does dumb text replacement with substring match, so it
    can be greedy. By default, it just does a dry-run, `-u` to update.

    You may also want to try pkgmove from mgorny-dev-scripts, which is also
    dumb as hell, greedy on seding stuff and requires you to rename ebuilds inside the package directory first.

    Could you run it over historical updates (at least from the last year)?
    I can do it if you give me whatever recipe you used as well (or if not,
    can get to it later again when bored).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexander Neuwirth@21:1/5 to All on Thu Dec 12 10:30:01 2024
    On 12/11/24 15:08, Michał Górny wrote:
    you can quickly update
    hundreds of bugs filed against it

    Does it need to be added to the list of exceptions [1] or is it
    considered as a manual, i.e. non-automated, script?

    Cheers,
    APN

    [1] https://bugs.gentoo.org/bots.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to Sam James on Thu Dec 12 13:20:01 2024
    On Thu, 2024-12-12 at 04:55 +0000, Sam James wrote:
    Could you run it over historical updates (at least from the last year)?
    I can do it if you give me whatever recipe you used as well (or if not,
    can get to it later again when bored).

    It's literally:

    ./bugsed old/pkg new/pkg old/pkg2 new/pkg2...

    Check the output, then the same with `-u`.

    I've listed all replacement pairs for LLVM packages there, to avoid
    multiple updates on bugs listing multiple LLVM packages. For other
    moves, where it is unlikely for different packages to be listed
    together, this shouldn't be necessary.

    --
    Best regards,
    Michał Górny


    -----BEGIN PGP SIGNATURE-----

    iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmda1HASHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQOOecH/0HM4WgqR8BWXVq9OWLR0CS+7E9TWdPq eTpYi/j6651djbrFtJBqK8wWibCvkU1GG747hD+3OCciLtEGaJLX7xNqNi06rpys iFqilACfvn0RLtmgkWfW3Dzfm1nGsJbk8GKYiapbQZEybhFxp9e7Qyq69QrLYyYi wxk2OfgxpQSqMbwCWhCLR6SbEjqz55n8HN+vWSdIVn5tcaboVQkHUb4xk3O45kkB By+N5atNUAl1hB8JdY3QYo6yRU75mc/h12b/vZRTBJW2vwoIlb88c/UARf+M6VQ2 zbTBvaI4GbiEkjItLRWBb3nJ2fc2Eq8SYUImTzv9Tk28kNhLp4IJ5BU=
    =BTRE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to Alexander Neuwirth on Thu Dec 12 13:20:01 2024
    On Thu, 2024-12-12 at 10:28 +0100, Alexander Neuwirth wrote:
    On 12/11/24 15:08, Michał Górny wrote:
    you can quickly update
    hundreds of bugs filed against it

    Does it need to be added to the list of exceptions [1] or is it
    considered as a manual, i.e. non-automated, script?

    Well, I don't think it should really be considered a "bot", since it's
    just a frontend script that does operations on your request. It's not
    that different from "change multiple bugs" function in Bugzilla.

    --
    Best regards,
    Michał Górny


    -----BEGIN PGP SIGNATURE-----

    iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmda1KESHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQOR9wIAIqdtWCfDgXk8uMhAKjJtU40dk/YJPut NZQDkwXNU6OAae/1HaVgSgPkx1uuXSOvdWnQ4xVqZP70zqDmyhFQB7XMv81gxu+N PipFBNtysmyq92sAkwOFVvWcildbFiy9urx0MqHybfYpNhmS93xx1tbB+GYVHJM/ zDV6HGoPxMhOgjMddmtOxqf9jCRy3/BF5TKo3oFJoLrTL2iyDSk+mFTY+E/JwETc f0/R5uqqqpaZbRsVSGld7eWav83yQK9IRxhdU6AuyvF5DqWmIJlz8jM9PIncQdM1 J+2zvMpO/ii3hO4WeOQ1EWBOQLGvSDbvcLiGwttP4JxWzhg0tOWHiwU=
    =c/cB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)