Thursday, 2022-09-08

*** brinzhang0 is now known as brinzhang01:36
*** brinzhang0 is now known as brinzhang02:51
*** brinzhang_ is now known as brinzhang09:12
opendevreviewStephen Finucane proposed openstack/oslo.db master: types: Set 'cache_ok' (redux)  https://review.opendev.org/c/openstack/oslo.db/+/85645309:48
stephenfinzzzeek: When you're about, could you give me a hint about how I can test that? ^09:50
stephenfinWhat I've tried clearly isn't useful09:51
stephenfin>>> types.JsonEncodedDict()._static_cache_key09:51
stephenfinsymbol('no_cache')09:51
stephenfinI tried binding also, but I don't think that's doing what I think it's doing 😇09:55
stephenfin>>> type_ = types.JsonEncodedDict()09:56
stephenfin>>> bind_processor = type_.bind_processor(dialect=default.DefaultDialect())09:56
stephenfin>>> bind_processor({'a': 42, 'b': [1, 2, 3]})09:56
stephenfin'{"a": 42, "b": [1, 2, 3]}'09:56
dtantsurhuh, autocommit does not help ironic-inspector, broken now11:34
dtantsurmigrations tests are a horrible mess11:35
dtantsurshort of reverting the oslo.db bump, do we have any ideas?11:42
dtantsurhttps://review.opendev.org/c/openstack/ironic-inspector/+/856488 should show-case the problem once it's through the CI11:43
stephenfindtantsur: I'll look before EOD. Looks like there's another (alembic-based?) context that's messed up13:35
stephenfin(IMO)13:36
stephenfindtantsur: https://github.com/openstack/ironic-inspector/blob/master/ironic_inspector/test/unit/test_migrations.py#L6013:39
stephenfinyou need to pass 'autocommit=True' to that13:39
stephenfindtantsur: https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/orm.py#L6013:39
dtantsurstephenfin: great find, thanks a lot!15:15
*** gibi is now known as gibi_off16:16

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