Wednesday, 2024-12-04

*** mhen_ is now known as mhen02:11
hberaud[m]damani, tkajinam : o/ please do you mind having a look at https://review.opendev.org/c/openstack/oslo.db/+/922976? I think this patch is ready to go09:05
damani[m]ok11:31
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Migrate Eventlet components to the new backend system  https://review.opendev.org/c/openstack/oslo.service/+/93701013:02
opendevreviewStephen Finucane proposed openstack/oslo.utils master: imageutils: Add __main__ helper  https://review.opendev.org/c/openstack/oslo.utils/+/93703715:28
opendevreviewStephen Finucane proposed openstack/oslo.utils master: imageutils: Add __main__ helper  https://review.opendev.org/c/openstack/oslo.utils/+/93703715:30
stephenfinsean-k-mooney: Care to take a look at that ^^ at some point and tell me if I'm holding it right?15:37
*** tosky_ is now known as tosky15:40
sean-k-mooneyhum i talked ot dansmith about being able to use it as a cli in the past i guess that one way to do it15:52
sean-k-mooneystephenfin: so there are 2 ways to do this have you considered creating an __main__.py instead15:54
sean-k-mooneythat woudl allow you to avoid puttign the imports in the __main__ function15:55
sean-k-mooneyyou just put __main__.py beside __init__.py15:55
sean-k-mooneythe other feedback is you have no test coverage of this15:55
sean-k-mooneyso im suggesting you do https://docs.python.org/3/library/__main__.html#module-__main__ option 215:56
sean-k-mooneyso https://docs.python.org/3/library/__main__.html#main-py-in-python-packages15:57
sean-k-mooneyto me the __main__.py is slightly cleaner as you seperate the lib code form the cli code into diffent files15:58
sean-k-mooneystephenfin: i can leave a comment to that effect if you like15:59
sean-k-mooneyok, done i do support the idea its just not how i woudl do it16:04
hberaud[m]damani: there is no meeting today?16:05
hberaud[m]sorry, I'm early16:08
hberaud[m]meeting is at 5pm UTC16:08
hberaud[m]Sorry I cannot attends today16:09
stephenfinsean-k-mooney: the main issue with using a '__main__.py' file is I have to call it as 'oslo_utils.imageutils' instead of 'oslo_utils.imageutils.format_inspector'. At least unless I convert format_inspector to a module and place the file in there16:37
sean-k-mooneyright but is that a problem16:42
sean-k-mooneyim not suggesting you refactor it into a module16:42
sean-k-mooneywell a freestandign one16:42
sean-k-mooneyi can see why you want to have oslo_utils.imageutils.format_inspector16:43
sean-k-mooneyas it is a little clearer what it doing16:43
sean-k-mooneybut are we going to have more hten one cli for this module and even if we did wahy woudl you not register sub parsers16:44
sean-k-mooneyyou dont have to take the __main__.py suggestion16:44
sean-k-mooneybut you proably should derfer the typing change16:45
stephenfinyeah, I don't think it makes sense in this instance. The only other thing in that file is a wrapper around 'qemu-img' that I obviously don't want a CLI for, so I think that a subparser wouldn't be helpful16:45
damani[m]gmann, meeting time are you around?17:05
damani[m]or other 17:06
damani[m]#startmeeting oslo17:07
opendevmeetMeeting started Wed Dec  4 17:07:53 2024 UTC and is due to finish in 60 minutes.  The chair is damani[m]. Information about MeetBot at http://wiki.debian.org/MeetBot.17:07
opendevmeetUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.17:07
opendevmeetThe meeting name has been set to 'oslo'17:07
gmanno/17:09
gmanndamani[m]: hi17:09
damani[m]gmann, hi17:10
damani[m]something you would like to discuss today about oslo?17:10
gmanndamani[m]: nothing from me. for today17:11
damani[m]ok 17:11
damani[m]it seems nobody else will join 17:11
damani[m]so i think we can skip the meeting for today 17:12
gmannyeah17:12
damani[m]gmann, thanks a lot for your time 17:12
damani[m]and joining 17:12
damani[m]by the way i continue to work on oslo.service and the backend system 17:12
damani[m]i move the current implementation to an eventlet backend 17:13
damani[m]nothing more on my side 17:13
damani[m]#endmeeting17:14
opendevmeetMeeting ended Wed Dec  4 17:14:11 2024 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)17:14
opendevmeetMinutes:        https://meetings.opendev.org/meetings/oslo/2024/oslo.2024-12-04-17.07.html17:14
opendevmeetMinutes (text): https://meetings.opendev.org/meetings/oslo/2024/oslo.2024-12-04-17.07.txt17:14
opendevmeetLog:            https://meetings.opendev.org/meetings/oslo/2024/oslo.2024-12-04-17.07.log.html17:14
opendevreviewDaniel Bengtsson proposed openstack/oslo.service master: Migrate Eventlet components to the new backend system  https://review.opendev.org/c/openstack/oslo.service/+/93701017:37
sean-k-mooneystephenfin: if you move the typeh ihintign to another commit or just drop them i think you conviced me that your current approch is fine18:05
opendevreviewStephen Finucane proposed openstack/oslo.utils master: imageutils: Add __main__ helper  https://review.opendev.org/c/openstack/oslo.utils/+/93703718:06
opendevreviewGhanshyam proposed openstack/oslo.policy master: DNM: testing gate  https://review.opendev.org/c/openstack/oslo.policy/+/93706219:35
*** elodilles is now known as elodilles_pto19:54

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!