[openstack-dev] [keystone][glance][ironic][octavia][nova]oslo.config 4.0 will break projects' unit test
ChangBo Guo
glongwave at gmail.com
Tue Apr 18 02:08:32 UTC 2017
Thanks Michael Johnson for your fix !
We plan to release oslo.config 4.0 when each project has a fix at least
in review , Latest updates:
Nova: https://review.openstack.org/457188 need review
Keystone: https://review.openstack.org/455391 wait for oslo.config 4.0
Glance: https://review.openstack.org/#/c/455522/ need review
Octavia: https://review.openstack.org/457356 need review
Ironic: talked with ironic liason curshil in oslo weekly meeting, will
dig into it.
2017-04-18 4:51 GMT+08:00 Michael Johnson <johnsomor at gmail.com>:
> Thank you ChangBo, I have resolved the issues in octavia in this patch:
> https://review.openstack.org/457356 up for review.
>
>
>
> Michael
>
>
>
> *From:* ChangBo Guo [mailto:glongwave at gmail.com]
> *Sent:* Sunday, April 16, 2017 12:32 AM
> *To:* OpenStack Development Mailing List (not for usage questions) <
> openstack-dev at lists.openstack.org>
> *Subject:* Re: [openstack-dev] [glance][ironic][octavia] oslo.config 4.0
> will break projects' unit test
>
>
>
> As I expect, there are some failures in periodic tasks recently [1] if we
> set enforce_type with True by default, we'd better fix them before we
> release oslo.config 4.0. Some guys had been working on this :
> Nova: https://review.openstack.org/455534 should fix failures
>
> tempest: https://review.openstack.org/456445 fixed
>
> Keystone: https://review.openstack.org/455391 wait for oslo.config 4.0
>
>
>
> We still need help from Glance/Ironic/Octavia
>
> Glance: https://review.openstack.org/#/c/455522/ need review
>
> Ironic: Need fix failure in http://logs.openstack.org/
> periodic/periodic-ironic-py27-with-oslo-master/680abfe/
> testr_results.html.gz
> Octavia: Need fix failure in http://logs.openstack.org/
> periodic/periodic-octavia-py35-with-oslo-master/80fee03/
> testr_results.html.gz
>
>
> [1] http://status.openstack.org/openstack-health/#/?groupKey=
> build_name&resolutionKey=hour&searchProject=-with-oslo
>
>
>
> 2017-04-04 0:01 GMT+08:00 ChangBo Guo <glongwave at gmail.com>:
>
> Hi ALL,
>
>
> oslo_config provides method CONF.set_override[1] , developers usually use
> it to change config option's value in tests. That's convenient . By
> default parameter enforce_type=False, it doesn't check any type or value
> of override. If set enforce_type=True , will check parameter override's
> type and value. In production code(running time code), oslo_config
> always checks config option's value. In short, we test and run code in
> different ways. so there's gap: config option with wrong type or
> invalid value can pass tests when
>
> parameter enforce_type = False in consuming projects. that means some
> invalid or wrong tests are in our code base.
>
>
> We began to warn user about the change since Sep, 2016 in [2]. This change
> will notify consuming project to write correct test cases with config
> options.
>
> We would make enforce_type = true by default in [3], that may break some
> projects' tests, that's also raise wrong unit tests. The failure is easy to
> fix, which
>
> is recommended.
>
>
>
> [1] https://github.com/openstack/oslo.config/blob/
> efb287a94645b15b634e8c344352696ff85c219f/oslo_config/cfg.py#L2613
> [2] https://review.openstack.org/#/c/365476/
> [3] https://review.openstack.org/328692
>
>
> --
>
> ChangBo Guo(gcb)
>
>
>
>
> --
>
> ChangBo Guo(gcb)
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
--
ChangBo Guo(gcb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170418/5b69c96f/attachment.html>
More information about the OpenStack-dev
mailing list