Skip to content

test/run-cli-tests: install wheel before cram to fix build failure#66733

Merged
tchaikov merged 1 commit intoceph:mainfrom
tchaikov:wip-cram
Jan 5, 2026
Merged

test/run-cli-tests: install wheel before cram to fix build failure#66733
tchaikov merged 1 commit intoceph:mainfrom
tchaikov:wip-cram

Conversation

@tchaikov
Copy link
Contributor

Fix the run-cli-tests failure that occurs when installing cram from git. The error happens because the fresh venv lacks build dependencies, causing pip to fall back to legacy setup.py install which fails:

  Using legacy 'setup.py install' for cram, since package 'wheel' is not installed.
  Installing collected packages: cram
    Running setup.py install for cram: started
    error: subprocess-exited-with-error

    × Running setup.py install for cram did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    Running setup.py install for cram: finished with status 'error'
  error: legacy-install-failure

  × Encountered error while trying to install package.
  ╰─> cram

The issue became visible after commit 7088072 updated the pip URL format to the new PEP 440 style, which exposed the missing build tools.

Solution: Upgrade pip, setuptools, and wheel before installing cram to ensure proper wheel-based installation works correctly with Python 3.13 and modern pip versions.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Fix the run-cli-tests failure that occurs when installing cram from git.
The error happens because the fresh venv lacks build dependencies, causing
pip to fall back to legacy setup.py install which fails:

  Using legacy 'setup.py install' for cram, since package 'wheel' is not installed.
  Installing collected packages: cram
    Running setup.py install for cram: started
    error: subprocess-exited-with-error

    × Running setup.py install for cram did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    Running setup.py install for cram: finished with status 'error'
  error: legacy-install-failure

  × Encountered error while trying to install package.
  ╰─> cram

The issue became visible after commit 7088072 updated the pip URL
format to the new PEP 440 style, which exposed the missing build tools.

Solution: Upgrade pip, setuptools, and wheel before installing cram to
ensure proper wheel-based installation works correctly with Python 3.13
and modern pip versions.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
@tchaikov
Copy link
Contributor Author

jenkins test make check arm64

Copy link
Contributor

@ronen-fr ronen-fr left a comment

Choose a reason for hiding this comment

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

We should probably merge now, as this blocks the CI

@tchaikov tchaikov merged commit 5d8e228 into ceph:main Jan 5, 2026
13 of 14 checks passed
@tchaikov tchaikov deleted the wip-cram branch January 5, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants