Tox linter on queens has a dependency issue.

Bug #1989005 reported by Sofer Athlan-Guyot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Hi,

the openstack-tox-linters jobs on stable/queens fails on a dependency error:

2022-09-07 12:03:08.011157 | ubuntu-xenial | An unexpected error has occurred: CalledProcessError: Command: ('/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/bin/python3.5', '/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/bin/pip', 'install', '.')
2022-09-07 12:03:08.011218 | ubuntu-xenial | Return code: 1
2022-09-07 12:03:08.011229 | ubuntu-xenial | Expected return code: 0
2022-09-07 12:03:08.011236 | ubuntu-xenial | Output:
2022-09-07 12:03:08.011244 | ubuntu-xenial | Processing /home/zuul/.cache/pre-commit/repow5j1a4gb
2022-09-07 12:03:08.011251 | ubuntu-xenial | Complete output from command python setup.py egg_info:
2022-09-07 12:03:08.011258 | ubuntu-xenial | Couldn't find index page for 'setuptools_scm_git_archive' (maybe misspelled?)
2022-09-07 12:03:08.011266 | ubuntu-xenial | No local packages or working download links found for setuptools_scm_git_archive>=1.0
2022-09-07 12:03:08.011274 | ubuntu-xenial | Traceback (most recent call last):
2022-09-07 12:03:08.011282 | ubuntu-xenial | File "<string>", line 1, in <module>
2022-09-07 12:03:08.011289 | ubuntu-xenial | File "/tmp/pip-fgc3ikwq-build/setup.py", line 150, in <module>
2022-09-07 12:03:08.011297 | ubuntu-xenial | __name__ == '__main__' and setuptools.setup(**setup_params)
2022-09-07 12:03:08.011304 | ubuntu-xenial | File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
2022-09-07 12:03:08.011311 | ubuntu-xenial | _setup_distribution = dist = klass(attrs)
2022-09-07 12:03:08.011318 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/setuptools/dist.py", line 315, in __init__
2022-09-07 12:03:08.011329 | ubuntu-xenial | self.fetch_build_eggs(attrs['setup_requires'])
2022-09-07 12:03:08.011336 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
2022-09-07 12:03:08.011344 | ubuntu-xenial | replace_conflicting=True,
2022-09-07 12:03:08.011352 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 850, in resolve
2022-09-07 12:03:08.011359 | ubuntu-xenial | dist = best[req.key] = env.best_match(req, ws, installer)
2022-09-07 12:03:08.011366 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1122, in best_match
2022-09-07 12:03:08.011373 | ubuntu-xenial | return self.obtain(req, installer)
2022-09-07 12:03:08.011380 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1134, in obtain
2022-09-07 12:03:08.011388 | ubuntu-xenial | return installer(requirement)
2022-09-07 12:03:08.011395 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
2022-09-07 12:03:08.011402 | ubuntu-xenial | return cmd.easy_install(req)
2022-09-07 12:03:08.011409 | ubuntu-xenial | File "/home/zuul/.cache/pre-commit/repow5j1a4gb/py_env-python3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 659, in easy_install
2022-09-07 12:03:08.011419 | ubuntu-xenial | raise DistutilsError(msg)
2022-09-07 12:03:08.011432 | ubuntu-xenial | distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm_git_archive>=1.0')
2022-09-07 12:03:08.011442 | ubuntu-xenial |
2022-09-07 12:03:08.011450 | ubuntu-xenial | ----------------------------------------
2022-09-07 12:03:08.011457 | ubuntu-xenial |
2022-09-07 12:03:08.011464 | ubuntu-xenial | Errors:
2022-09-07 12:03:08.011471 | ubuntu-xenial | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-fgc3ikwq-build/
2022-09-07 12:03:08.011478 | ubuntu-xenial | You are using pip version 9.0.1, however version 22.2.2 is available.
2022-09-07 12:03:08.011485 | ubuntu-xenial | You should consider upgrading via the 'pip install --upgrade pip' command.

from: https://ca644f9c1d6115669df9-d527ccbde8227159a08a8d34e1ed01e7.ssl.cf2.rackcdn.com/856126/2/check/openstack-tox-linters/47a5001/job-output.txt from the bulid triggered there https://zuul.opendev.org/t/openstack/build/47a50011cad948d9b913b5b4f30ce266/logs

This block merge on queens.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-upgrade (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/c/openstack/tripleo-upgrade/+/856723

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-upgrade (stable/queens)

Reviewed: https://review.opendev.org/c/openstack/tripleo-upgrade/+/856723
Committed: https://opendev.org/openstack/tripleo-upgrade/commit/2183195b77b005f8b9c7b9448f3234813eca1146
Submitter: "Zuul (22348)"
Branch: stable/queens

commit 2183195b77b005f8b9c7b9448f3234813eca1146
Author: Sofer Athlan-Guyot <email address hidden>
Date: Fri Sep 9 13:06:02 2022 +0200

    Remove linter testing as pip dependencies won't install anymore.

    We also remove the duplicate zuul definition and keep
    zuul.d/layout.yaml as it's the default on the tripleo project.

    Change-Id: I17affa26617f62444f1b768a9bc41e2ff4dafac9
    Closes-Bug: #1989005

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/tripleo-upgrade/+/860533
Committed: https://opendev.org/openstack/tripleo-upgrade/commit/4ec119fa95f630c1d9d7af24bce6df5351cb1ad2
Submitter: "Zuul (22348)"
Branch: stable/queens

commit 4ec119fa95f630c1d9d7af24bce6df5351cb1ad2
Author: Sofer Athlan-Guyot <email address hidden>
Date: Thu Oct 6 10:38:29 2022 +0200

    Zuul doesn't trigger at all if we remove gate/check definition.

    In https://review.opendev.org/c/openstack/tripleo-upgrade/+/856723 we
    removed the linter check as it wouldn't install correctly anymore.

    It doesn't work as nothing get triggered and zuul won't merge the
    change. So we use the noop action.

    Closes-Bug: #1989005

    Change-Id: I5438116b1c16454c76062306dc81615cd6959187

Rabi Mishra (rabi)
Changed in tripleo:
status: New → Fix Released
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.