Skip to content

Conversation

jiridanek
Copy link
Member

@jiridanek jiridanek commented Aug 28, 2025

…ackage management across all relevant Dockerfiles

This propagates to rhds the changes done in
* opendatahub-io#2145
Copy link

openshift-ci bot commented Aug 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign andyatmiami for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jiridanek jiridanek changed the title [rhds] RHAIENG-304: switch from Pipfile.lock to pylock.toml for package management across all relevant Dockerfiles [rhds] RHAIENG-304, RHAIENG-784: switch from Pipfile.lock to pylock.toml for package management across all relevant Dockerfiles Aug 28, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

📋 Review Summary

This pull request consistently updates 16 Dockerfiles to use uv and pylock.toml for Python package management, replacing the previous micropipenv and Pipfile.lock setup. The changes are straightforward and align with the goal of modernizing the dependency management process.

🔍 General Feedback

  • The transition to uv is well-implemented across all relevant files.
  • I've noticed that in several files, comments still refer to requirements.txt or Pipfile.lock even though the code now uses pylock.toml. I've left a couple of inline comments as examples. Please apply the same fix to all other occurrences for consistency.

Overall, this is a good improvement, and with the minor comment fixes, it will be ready for merging.

# Install useful packages from Pipfile.lock
COPY ${CODESERVER_SOURCE_CODE}/Pipfile.lock ./
# Install useful packages from requirements.txt
COPY ${CODESERVER_SOURCE_CODE}/pylock.toml ./

Choose a reason for hiding this comment

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

🟢 For consistency, the comment should refer to pylock.toml instead of requirements.txt, as that is the file being used for installation.

Suggested change
# Install useful packages from pylock.toml

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines 165 to 166
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.

Choose a reason for hiding this comment

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

🟢 This comment refers to requirements.txt, but the file has been changed to pylock.toml. Please update the comment for consistency.

Suggested change
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
# Not using --build-constraints=./pylock.toml because error: Unnamed requirements are not allowed as constraints (found: `https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4/

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

openshift-ci bot commented Aug 28, 2025

@jiridanek: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images 8b0fc81 link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@atheo89
Copy link
Member

atheo89 commented Aug 28, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 28, 2025
@jiridanek jiridanek merged commit af1c490 into red-hat-data-services:main Aug 28, 2025
17 of 42 checks passed
@jiridanek jiridanek deleted the uv_rhds_pylocktoml branch August 29, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants