Skip to content

Conversation

zmc
Copy link
Member

@zmc zmc commented Sep 9, 2025

No description provided.

@zmc zmc requested a review from a team as a code owner September 9, 2025 17:34
@zmc zmc requested review from kamoltat and amathuria and removed request for a team September 9, 2025 17:34
"xmltodict",
]
openstack = [
"openstacksdk",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the teuthology-openstack revived merged the openstacksdk became required default dependency.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm that when using pip install from this branch I've got this:

$ teuthology --version
Traceback (most recent call last):
  File "/***/v/teuthology-uv/bin/teuthology", line 3, in <module>
    from scripts.run import main
  File "/****/teuthology/scripts/run.py", line 33, in <module>
    import teuthology.run
  File "/****/teuthology/teuthology/run.py", line 8, in <module>
    from teuthology import report
  File "/****/teuthology/teuthology/report.py", line 12, in <module>
    import teuthology.exporter
  File "/****/teuthology/teuthology/exporter.py", line 11, in <module>
    import teuthology.dispatcher
  File "/****/teuthology/teuthology/dispatcher/__init__.py", line 22, in <module>
    from teuthology.dispatcher import supervisor
  File "/****/teuthology/teuthology/dispatcher/supervisor.py", line 11, in <module>
    from teuthology import exporter, dispatcher, kill, report, safepath
  File "/****/teuthology/teuthology/kill.py", line 17, in <module>
    from teuthology.lock import ops as lock_ops
  File "/****/teuthology/teuthology/lock/ops.py", line 11, in <module>
    import teuthology.orchestra.remote
  File "/****/teuthology/teuthology/orchestra/remote.py", line 6, in <module>
    import teuthology.lock.util
  File "/****/teuthology/teuthology/lock/util.py", line 6, in <module>
    import teuthology.provision.downburst
  File "/****/teuthology/teuthology/provision/__init__.py", line 11, in <module>
    from teuthology.provision import openstack
  File "/****/teuthology/teuthology/provision/openstack.py", line 14, in <module>
    from teuthology.openstack import OpenStack, OpenStackInstance
  File "/****/teuthology/teuthology/openstack/__init__.py", line 48, in <module>
    from openstack import connection as openstack_connection
ModuleNotFoundError: No module named 'openstack'

@kshtsk
Copy link
Contributor

kshtsk commented Sep 9, 2025

Instead of the commit "scripts: Delay imports for performance" within this PR or as follow up PR, I would suggest to drop scripts by moving the argument parsing code to corresponding module and adjusting [project.scripts] section.

Copy link
Contributor

@kshtsk kshtsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks tasty, but several comments needs to be addressed, like openstacksdk dependency and some bootstrap bugs fixes.

zmc and others added 15 commits September 9, 2025 16:09
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
To a version that support python 3.13

Signed-off-by: Zack Cerza <[email protected]>
Much of this is simply removing things we don't have to be doing now that we're
using uv. It also consolidates the different sections for RPM-based distros.

Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
For now, use a very narrow ruleset. We should expand to use more later.

Signed-off-by: Zack Cerza <[email protected]>
Because the teuthology code is building in container after
copying source code from local directory, but no corresponding
git repo copied, the setuptools-scm cannot determine teuthology
version. So in order to produce the package we just provide dummy
version 0.0.0 using environment variable:

  SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY

Signed-off-by: Kyr Shatskyy <[email protected]>
And also drop an unnecessary tr invocation.

Signed-off-by: Zack Cerza <[email protected]>
@zmc
Copy link
Member Author

zmc commented Sep 16, 2025

Instead of the commit "scripts: Delay imports for performance" within this PR or as follow up PR, I would suggest to drop scripts by moving the argument parsing code to corresponding module and adjusting [project.scripts] section.

Interesting idea - let's save that for a follow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants