Skip to content

fix(ci): replace Poetry runtime setup with uv#8830

Open
aviralgarg05 wants to merge 1 commit intoapache:mainfrom
aviralgarg05:fix-8776-replace-poetry-with-uv
Open

fix(ci): replace Poetry runtime setup with uv#8830
aviralgarg05 wants to merge 1 commit intoapache:mainfrom
aviralgarg05:fix-8776-replace-poetry-with-uv

Conversation

@aviralgarg05
Copy link
Copy Markdown

Summary

This PR removes the runtime dependency on Poetry from the Python build path and switches the backend, test, and container workflows to uv.

The change is intentionally narrow:

  • added a small shared helper to bootstrap uv, create or reuse project-local virtual environments, and run Python or pytest commands consistently
  • updated the Azure DevOps and fake plugin build and run scripts to use that helper instead of Poetry
  • updated the backend Python test runner to use the same flow and to avoid collecting tests from .venv directories
  • updated the backend image and the lake-builder image to install uv instead of Poetry
  • fixed the backend image copy step so the non-root devlake user can create project-local virtual environments during image builds

This addresses the CI and Docker breakage caused by the Poetry-based Python 3.9 setup, especially in cross-platform and emulated build paths.

Does this close any open issues?

Closes #8776

Screenshots

No UI changes.

Other Information

Validation completed against the updated flow:

  • make build-python passed in the CI-style mericodev/lake-builder:latest container
  • make unit-test-python passed in the same container
  • docker buildx build --platform linux/amd64 --target base ... backend passed
  • docker build --target base ... backend passed on the native platform

Relevant test results:

  • Azure DevOps Python tests: 8 passed, 1 skipped
  • PyDevLake Python tests: 10 passed

Suggested labels:

  • pr-type/bug-fix

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. component/pydevlake Relates to the Python framework and/or plugin. component/testing devops Something about CI/CD (devops) pr-type/bug-fix This PR fixes a bug labels Apr 10, 2026
@klesh klesh requested a review from narrowizard April 18, 2026 02:49
@narrowizard
Copy link
Copy Markdown
Collaborator

Sorry, I'm not familiar with Python package management or DevLake's Python plugins. I only opened the issue because I encountered a timeout problem at that time, and I don't have the capability to review this modification. @klesh @aviralgarg05

@klesh klesh requested a review from keon94 April 18, 2026 11:03
@klesh
Copy link
Copy Markdown
Contributor

klesh commented Apr 18, 2026

@keon94 Would you like to take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/pydevlake Relates to the Python framework and/or plugin. component/testing devops Something about CI/CD (devops) pr-type/bug-fix This PR fixes a bug size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor][CI/Docker] Replace poetry with uv for Python package management

3 participants