openstack-tox-pep8 failing on stable/wallaby tripleo-heat-templates gate blocker

Bug #1968065 reported by Marios Andreou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Critical
Marios Andreou

Bug Description

At [1][2][3] the openstack-tox-pep8 job is failing on stable/wallaby tripleo-heat-templates with trace that looks like:

 2022-04-06 13:17:12.404750 | ubuntu-focal | Traceback (most recent call last):
 2022-04-06 13:17:12.404784 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/bin/ansible-lint", line 5, in <module>
 2022-04-06 13:17:12.404797 | ubuntu-focal | from ansiblelint.__main__ import _run_cli_entrypoint
 2022-04-06 13:17:12.404808 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/ansiblelint/__main__.py", line 35, in <module>
 2022-04-06 13:17:12.404819 | ubuntu-focal | from enrich.console import should_do_markup
 2022-04-06 13:17:12.404829 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/enrich/console.py", line 6, in <module>
 2022-04-06 13:17:12.404840 | ubuntu-focal | import rich.console as rich_console
 2022-04-06 13:17:12.404850 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/console.py", line 46, in <module>
 2022-04-06 13:17:12.404881 | ubuntu-focal | from ._log_render import FormatTimeCallable, LogRender
 2022-04-06 13:17:12.404893 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/_log_render.py", line 5, in <module>
 2022-04-06 13:17:12.404904 | ubuntu-focal | from .text import Text, TextType
 2022-04-06 13:17:12.404914 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/text.py", line 5, in <module>
 2022-04-06 13:17:12.404925 | ubuntu-focal | from rich.emoji import EmojiVariant
 2022-04-06 13:17:12.404935 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/emoji.py", line 4, in <module>
 2022-04-06 13:17:12.404945 | ubuntu-focal | from .jupyter import JupyterMixin
 2022-04-06 13:17:12.404955 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/jupyter.py", line 4, in <module>
 2022-04-06 13:17:12.404966 | ubuntu-focal | from .segment import Segment
 2022-04-06 13:17:12.404976 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/segment.py", line 19, in <module>
 2022-04-06 13:17:12.404986 | ubuntu-focal | from .cells import (
 2022-04-06 13:17:12.404996 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/cells.py", line 6, in <module>
 2022-04-06 13:17:12.405006 | ubuntu-focal | from ._lru_cache import LRUCache
 2022-04-06 13:17:12.405016 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/rich/_lru_cache.py", line 8, in <module>
 2022-04-06 13:17:12.405027 | ubuntu-focal | from typing_extensions import OrderedDict
 2022-04-06 13:17:12.405037 | ubuntu-focal | ImportError: cannot import name 'OrderedDict' from 'typing_extensions' (/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/pep8/lib/python3.8/site-packages/typing_extensions.py)

This blocks the stable/wallaby gate for tripleo-heat-templates repo (this job only runs there [4]).

Seems related to https://github.com/Textualize/rich/issues/2164 - so we can either try pin to <12.1.0 or >=12.2.0

[1] https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_0f8/835805/2/check/openstack-tox-pep8/0f8e925/
[2] https://c035c35c896cb8568133-0677f910aec9b59957afc606ff2e533f.ssl.cf1.rackcdn.com/834938/1/check/openstack-tox-pep8/532e7e2/
[3] https://18a08b94552e184519b5-dc3412ebe871a5088cd34eb2a1129190.ssl.cf1.rackcdn.com/836819/1/check/openstack-tox-pep8/750dd55/
[4] https://zuul.opendev.org/t/openstack/builds?job_name=openstack-tox-pep8&project=openstack%2Ftripleo-heat-templates&branch=stable%2Fwallaby&skip=0

Revision history for this message
Marios Andreou (marios-b) wrote (last edit ):

the pin to <12.1.0 works... test there https://review.opendev.org/c/openstack/tripleo-heat-templates/+/836853/1/test-requirements.txt results are good https://zuul.opendev.org/t/openstack/build/f22346c18d0649ffba5081bdb758dea4

the pin to >=12.2.0 does not work ... test there https://review.opendev.org/c/openstack/tripleo-heat-templates/+/836853/2/test-requirements.txt and results there https://zuul.opendev.org/t/openstack/build/71ec2b731a754992974b9b2271ccc27f "The conflict is caused by: rich 12.2.0 depends on typing-extensions<5.0 and >=4.0.0; python_version < "3.9" "

Revision history for this message
Marios Andreou (marios-b) wrote :

damn... looks like there is a problem but will have to dig tomorrow @ https://zuul.opendev.org/t/openstack/build/b9de025925294c768e0ef5ad6f0cae2a requirements-check failure

Revision history for this message
Rabi Mishra (rabi) wrote :

This has already been reported and worked on[1] with https://bugs.launchpad.net/tripleo/+bug/1967788.

There does not seem to be any simple fix as mentioned in the patch.

[1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/836453

Revision history for this message
Rabi Mishra (rabi) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/wallaby)

Change abandoned by "Marios Andreou <email address hidden>" on branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/836853
Reason: That instead https://review.opendev.org/c/openstack/tripleo-heat-templates/+/836453

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.