Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708912 - New 'establereq' tool to generate STABLEREQ URLs
Summary: New 'establereq' tool to generate STABLEREQ URLs
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-09 22:23 UTC by Sergei Trofimovich
Modified: 2020-02-09 22:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
file_stablereq.py (file_stablereq.py,2.48 KB, text/x-python)
2020-02-09 22:27 UTC, Sergei Trofimovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich gentoo-dev 2020-02-09 22:23:44 UTC
I have a few packages to maintain and I'm very lazy filing STABLEREQs and KEYWORDREQs manually because it's tedious. Looks like everyone rolls their own variant of periodic stabilization request script.

Zac suggested having a gentoolkit tool that just does it. The tool should accept a package list and generate stablereq URL with prepopulated fields. Non-trivial list of fields are:
- assignee/cc: maintainers (special care for maintainer-needed might be needed)
- cc: arches that already have stable keywords for older versions, resolve keywords to arches
- generate actual URL


Reproducible: Always
Comment 1 Sergei Trofimovich gentoo-dev 2020-02-09 22:27:25 UTC
Created attachment 613156 [details]
file_stablereq.py

file_stablereq.py is a crude hack I use right now. Example session:

1. Run
    $ portageq --no-regex --no-version --maintainer-email=slyfox@gentoo.org --repo=gentoo | xargs --no-run-if-empty pkgcheck scan --keywords=StableRequest --repo=gentoo

2. Paste output like below into the script:

  dev-util/re2c
    StableRequest: version 1.3: slot(0) no change in 57 days for unstable keywords: [ ~amd64, ~arm, ~arm64, ~hppa, ~ia64, ~m68k, ~ppc, ~ppc64, ~s390, ~sh, ~sparc, ~x86 ]

3. Generate an URL:

    $ ./file_stablereq.py
    ...
    https://bugs.gentoo.org/enter_bug.cgi?form_name=enter_bug&product=Gentoo+Linux&component=Stabilization&bug_status=CONFIRMED&bug_severity=normal&short_desc=%3Ddev-vcs%2Fcvsps-3.13-r2+stabilization&comment=In+tree+for+91+days.+Let%27s+stabilize+%3Ddev-vcs%2Fcvsps-3.13-r2+for%3A%0A++++amd64+arm+arm64+hppa+ia64+ppc+ppc64+s390+sparc+x86&keywords=STABLEREQ&assigned_to=slyfox%40gentoo.org&cc=amd64%40gentoo.org%2Carm%40gentoo.org%2Carm64%40gentoo.org%2Chppa%40gentoo.org%2Cia64%40gentoo.org%2Cppc%40gentoo.org%2Cppc64%40gentoo.org%2Cs390%40gentoo.org%2Csparc%40gentoo.org%2Cx86%40gentoo.org&cf_stabilisation_atoms=dev-vcs%2Fcvsps-3.13-r2&cf_runtime_testing_required=No

The URL is a nice template to tweak the request slightly.