tripleo-ci/scripts/move_bugs
Hervé Beraud c4dabd6f3c Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Idf2da7dbf2d1c9f45cb92168f209d589f5919cc3
2020-06-02 21:03:18 +02:00
..
move_bugs.py Stop to use the __future__ module. 2020-06-02 21:03:18 +02:00
README.txt add move_bugs to scripts 2020-02-17 22:21:59 +00:00

# https://help.launchpad.net/API/launchpadlib
# https://help.launchpad.net/API/ThirdPartyIntegration

# setup a python virtenv, WITH site-packages
virtualenv --python /usr/bin/python2.7 /home/whayutin/virtualenv/python2 --system-site-packages


python
keyring.set_password("app_name", "oauthkey", "oauthpass")
from launchpadlib.launchpad import Launchpad
launchpad = Launchpad.login_with('app_name', 'production')

# follow the promps, auth for a short time.
python move_bugs.py tripleo ussuri-2 ussuri-3
# move all the bugs w/o criteria for milestone
python --no-dry-run tripleo ussuri-2 ussuri-3

# due to paging etc, you'll have to run
# the command a few times


Other Notes:
<EmilienM> git clone https://github.com/openstack/release-tools
[13:39:20] <EmilienM> cd release-tools
[13:39:22] <EmilienM> git checkout 8a69cd398af69768221109a7e12c1755e5a2c4eb
[13:39:26] <EmilienM> ./process_bugs.py tripleo --milestone ussuri-1 --settarget ussuri-2
[13:39:43] <EmilienM> repeat a lot of times until there is no more bugs to process (launchpad would limit you)
[13:39:47] <EmilienM> and once it's done, that's it
[13:39:55] <EmilienM> don't forget to close the milestone in LP
[13:39:57] <EmilienM> weshay: ^
[13:40:34] <mwhahaha> weshay: for milestones i just move them all
[13:40:42] <weshay> k.. thanks
[13:40:53] <mwhahaha> weshay: i only use priority when RC time to move all but like the high/critical
[13:40:57] <weshay> aye