tox -e py39 hangs on stable/yoga

Bug #1973116 reported by Hemanth Nakkina
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Fix Committed
Undecided
Unassigned

Bug Description

See the logs here https://review.opendev.org/c/openstack/aodh/+/839170

2022-05-10 01:53:03.094948 | ubuntu-focal | py39 run-test: commands[0] | /home/zuul/src/opendev.org/openstack/aodh/run-tests.sh
2022-05-10 01:53:03.095146 | ubuntu-focal | setting PATH=/home/zuul/src/opendev.org/openstack/aodh/.tox/py39/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2022-05-10 01:53:03.097178 | ubuntu-focal | [4805] /home/zuul/src/opendev.org/openstack/aodh$ /home/zuul/src/opendev.org/openstack/aodh/run-tests.sh
2022-05-10 01:53:03.098515 | ubuntu-focal | + set -e
2022-05-10 01:53:03.098533 | ubuntu-focal | + export OS_TEST_PATH=aodh/tests/unit
2022-05-10 01:53:03.098543 | ubuntu-focal | + OS_TEST_PATH=aodh/tests/unit
2022-05-10 01:53:03.098548 | ubuntu-focal | + ./tools/pretty_tox.sh
2022-05-10 01:53:04.010687 | ubuntu-focal | /home/zuul/src/opendev.org/openstack/aodh/.tox/py39/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
2022-05-10 01:53:04.010755 | ubuntu-focal | warnings.warn(
2022-05-10 01:53:04.010867 | ubuntu-focal | /home/zuul/src/opendev.org/openstack/aodh/.tox/py39/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
2022-05-10 01:53:04.010888 | ubuntu-focal | warnings.warn(

Hangs there and timedout in CI jobs

Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :

Seems to be in this loop forever [1] for testr

[1] https://github.com/jaraco/nspektr/blob/main/nspektr/__init__.py#L75-L81

Revision history for this message
Hua Zhang (zhhuabj) wrote :

I reproduced the problem successfully on focal with the following steps as well.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9 python3.9-dev -y
alias python=python3.9
sudo apt install build-essential -y
sudo apt install python3-pip python3-dev python3-nose python3-mock -y
sudo apt install python3-setuptools libpython3-dev libssl-dev \
  libxml2-dev libxslt-dev libxslt1-dev libpq-dev git git-review \
  libffi-dev gettext graphviz libjpeg-dev zlib1g-dev -y
sudo apt install postgresql-server-dev-all libmysqlclient-dev -y
sudo apt purge python3-psycopg2 && sudo pip install psycopg2-binary
git clone https://opendev.org/openstack/aodh.git -b stable/yoga
cd aodh
./.tox/py39/bin/python -m pip install --upgrade pip
tox -e py39

Revision history for this message
Hua Zhang (zhhuabj) wrote :

The same test for master branch on focal and for yoga on jammy have no problem

Revision history for this message
Hua Zhang (zhhuabj) wrote :

hemanth and I debugged the problem and found out why.

upper-constraints.txt [0] is missing setuptools for python_version=='3.9', so:

1, master branch on focal works, that's because master is using testr [1] so setuptools=62.1.0 works with testr.

2, but for yoga on focal, setuptools=62.1.0 doesn't work with non-testr so the problem happened.

[0] https://opendev.org/openstack/requirements/raw/branch/stable/yoga/upper-constraints.txt
[1] https://opendev.org/openstack/aodh/commit/63c3466f291996c3d5f99e307f8784abeeb1ef78

Revision history for this message
Hua Zhang (zhhuabj) wrote :
Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :

Patch is now merged in stable/yoga branch, changing status to Fix committed

Changed in aodh:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/aodh 14.1.0

This issue was fixed in the openstack/aodh 14.1.0 release.

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.