Wednesday, 2026-02-18

chandankumarsean-k-mooney, amoralej Hello, Please have a look at https://review.opendev.org/c/openstack/watcher-dashboard/+/958209: Add skip action feature with microversion support, I have added the integration test for skip workflow here https://review.opendev.org/c/openstack/watcher-dashboard/+/976594 and here is the job result: https://zuul.opendev.org/t/openstack/build/caf3bc578b1947e3a25e67101d8969ab and generated 08:40
chandankumarscreenshot from the test: https://4e653b44258ae0ef8e8c-431c4675dbf321a8fbd861f82b52f6e9.ssl.cf2.rackcdn.com/openstack/caf3bc578b1947e3a25e67101d8969ab/controller/logs/playwright/screenshots/watcher_dashboard.test.integration.test_playwright_skip_action_workflow.SkipActionWorkflowTests.test_skip_action_workflow/index.html08:40
chandankumarI want to get this one merged in this release itself. thank you!08:40
opendevreviewJoan Gilabert proposed openstack/watcher master: Prepare to use openstacksdk instead of novaclient  https://review.opendev.org/c/openstack/watcher/+/97471008:48
opendevreviewJoan Gilabert proposed openstack/watcher master: Complete migration from novaclient to openstacksdk  https://review.opendev.org/c/openstack/watcher/+/97492408:48
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove usage of novaclient from Watcher  https://review.opendev.org/c/openstack/watcher/+/97492508:48
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove nova_helper retries for openstacksdk params  https://review.opendev.org/c/openstack/watcher/+/97549808:48
amoralejsorry chandankumar, I will test that08:56
opendevreviewJoan Gilabert proposed openstack/watcher master: Prepare to use openstacksdk instead of novaclient  https://review.opendev.org/c/openstack/watcher/+/97471011:43
opendevreviewJoan Gilabert proposed openstack/watcher master: Complete migration from novaclient to openstacksdk  https://review.opendev.org/c/openstack/watcher/+/97492411:43
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove usage of novaclient from Watcher  https://review.opendev.org/c/openstack/watcher/+/97492511:43
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove nova_helper retries for openstacksdk params  https://review.opendev.org/c/openstack/watcher/+/97549811:43
opendevreviewJoan Gilabert proposed openstack/watcher master: Prepare to use openstacksdk instead of novaclient  https://review.opendev.org/c/openstack/watcher/+/97471014:11
opendevreviewJoan Gilabert proposed openstack/watcher master: Complete migration from novaclient to openstacksdk  https://review.opendev.org/c/openstack/watcher/+/97492414:11
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove usage of novaclient from Watcher  https://review.opendev.org/c/openstack/watcher/+/97492514:11
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove nova_helper retries for openstacksdk params  https://review.opendev.org/c/openstack/watcher/+/97549814:11
opendevreviewJoan Gilabert proposed openstack/watcher master: Prepare to use openstacksdk instead of novaclient  https://review.opendev.org/c/openstack/watcher/+/97471016:35
opendevreviewJoan Gilabert proposed openstack/watcher master: Complete migration from novaclient to openstacksdk  https://review.opendev.org/c/openstack/watcher/+/97492416:36
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove usage of novaclient from Watcher  https://review.opendev.org/c/openstack/watcher/+/97492516:36
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove nova_helper retries for openstacksdk params  https://review.opendev.org/c/openstack/watcher/+/97549816:36
amoralejHi, as part of the instrumentalization of watcher, i'm trying to create a way to measure the size of the DataModel. I've being testing https://paste.centos.org/view/8dfe6dbd (with the help of claude) to get the size by using sys.getsizeof transversing the networkx graph and objects inside. I'm comparing that with the reported size by https://pympler.readthedocs.io/en/stable/library/asizeof.html 16:55
amoralejand I'm getting very different values16:55
amoralejfor a small model get_memory_size reports 1557 bytes, while asizeof reports 742416:57
amoralejyou have any idea about what may be a good way of getting the size of complex objects ?16:58
opendevreviewsean mooney proposed openstack/watcher master: Add retry_on_deadlock decorators to missing database methods  https://review.opendev.org/c/openstack/watcher/+/97629317:09
opendevreviewsean mooney proposed openstack/watcher master: Add regression test for retry_on_deadlock decorator  https://review.opendev.org/c/openstack/watcher/+/97724817:09
sean-k-mooneyamoralej: i woudl preer not to add any depencies for doing that if we can avoid it17:10
amoralejyes, that's why i didn't want to use pympler or any lib like that and testing the method in https://paste.centos.org/view/8dfe6dbd17:11
sean-k-mooneyamoralej: its not really somethign i have looked into17:11
sean-k-mooneymaybe via the inspect module?17:12
amoralejand was using pympler to compare the result17:12
sean-k-mooneyi kind of wantto remvoe the xml serialistion eventualy17:12
sean-k-mooneybut perhaps we could jsut count the bytes of that as a proxy17:12
amoralejyes, i was also thinking on that, but my guess is that the size of the serialized to string content can be very different ..17:13
amoraleji can check and compare17:13
amoralejsize_with_get_memory_size: 155717:16
amoralejpympler.asizeof: 742417:16
amoralejtext_size: 39617:16
amoralejall those are bytes17:17
sean-k-mooneyyes it can but its a proxy17:31
sean-k-mooneyi think if you use inspect you might eb able to just get teh size of the stack fram and or local variables17:31
sean-k-mooneyyou could try https://docs.python.org/3/library/tracemalloc.html17:34
amoralejyes, I've also been playing with that17:34
amoralejI'll keep working on it17:36
opendevreviewJoan Gilabert proposed openstack/watcher master: Prepare to use openstacksdk instead of novaclient  https://review.opendev.org/c/openstack/watcher/+/97471017:37
opendevreviewJoan Gilabert proposed openstack/watcher master: Complete migration from novaclient to openstacksdk  https://review.opendev.org/c/openstack/watcher/+/97492417:37
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove usage of novaclient from Watcher  https://review.opendev.org/c/openstack/watcher/+/97492517:37
opendevreviewJoan Gilabert proposed openstack/watcher master: Remove nova_helper retries for openstacksdk params  https://review.opendev.org/c/openstack/watcher/+/97549817:37
sean-k-mooneyamoralej: you could just look at the overall process usage before and after building or copying the model17:39
sean-k-mooneyhttps://docs.python.org/3/library/resource.html#resource.getrusage17:39
sean-k-mooneythat is almost freee as it just reading form proc i think17:40
sean-k-mooneyas in for /proc/self/...17:40
sean-k-mooneythat ownt tell you wnat is using it however17:41
amoralejyes, i checked with process.memory_info().rss17:43
sean-k-mooneyamoralej: claude says this shoudl work https://paste.opendev.org/show/b13If3Y2f7DPX8tP4VW1/17:43
amoralejbut that's even more misleading in many cases17:43
sean-k-mooneyit identifed an issue with hwo you were recusing17:43
amoralejlemme try that17:44
sean-k-mooneyhttps://paste.opendev.org/show/bFQ4wQjaJTwH4fh4rKdX/ uses a stack to make it iteritive isntead ot avoid the recurssion limit17:45
sean-k-mooneythose two examples will not count interened string that are storead at teh process level and shared ro c memory allcotin but of pure python object it shoudl count the size correctly17:48
sean-k-mooneyi think that is more then good enough however assumign it works17:49
amoralejsize_with_get_memory_size: 155717:53
amoralejpympler.asizeof: 742417:53
amoralejtext_size: 39617:53
amoralejmodel.deep_sizeof_report: 427217:53
sean-k-mooneyare you consucting the model the same way in ech case17:54
amoralejyes, it's exactly the same model actually, just executing different methods on it17:54
amoralejneed to leave now, i'll keep working on it, thanks for your help!17:54
sean-k-mooneyi ugess as long as we choose oen way of doign hte messurement17:54
sean-k-mooneyadn we are consitent that likely good enough17:55
sean-k-mooneychat to you tomorrow o/17:55
amoralejyeah, i agree17:56
opendevreviewDouglas Viroel proposed openstack/watcher master: Enable Applier parallel engine in native thread mode  https://review.opendev.org/c/openstack/watcher/+/97552218:08
opendevreviewMerged openstack/watcher master: Use wrapper classes for novaclient objects  https://review.opendev.org/c/openstack/watcher/+/97291320:41

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