-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove pip
fallback option for python and ansible
#5186
Merged
+78
−449
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BREAKING CHANGE: pip was deprecated since 1.425.0 (2024-11-15)
pip
fallback option for python and ansiblepip
fallback option for python and ansible
Deploying windmill with
|
Latest commit: |
d4d0d19
|
Status: | ✅ Deploy successful! |
Preview URL: | https://3837f364.windmill.pages.dev |
Branch Preview URL: | https://py-remove-pip.windmill.pages.dev |
pip
fallback option for python and ansiblepip
fallback option for python and ansible
2af98cd
to
90ba65a
Compare
30f0807
to
9c57565
Compare
3a05600
to
3b6585a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to d4d0d19 in 1 minute and 28 seconds
More details
- Looked at
912
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. backend/windmill-worker/src/worker_lockfiles.rs:159
- Draft comment:
In 'try_normalize', calling to_str() later (e.g. in parse_bun_relative_imports) may panic on non-UTF8 paths. Consider handling non-UTF8 filenames more gracefully. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. backend/windmill-worker/src/worker_lockfiles.rs:186
- Draft comment:
In 'parse_bun_relative_imports', if 'try_normalize' returns None, an error is logged but no fallback is provided. Consider returning an informative error or handling the None case. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. backend/windmill-worker/src/worker_lockfiles.rs:113
- Draft comment:
Review the SQL in 'clear_dependency_map_for_item'; using '($4::text IS NULL OR importer_node_id = $4::text)' may benefit from clearer parameter handling or comments explaining the logic. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
4. backend/windmill-worker/src/worker_lockfiles.rs:1155
- Draft comment:
The 'lock_modules' function is heavily recursive and complex. Consider refactoring or adding more inline documentation to improve maintainability and reduce cognitive load. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. backend/windmill-worker/src/worker_lockfiles.rs:1205
- Draft comment:
In 'reduce_flow', the pattern matching on FlowModuleValue uses an 'unreachable!' branch. Consider adding explicit error messages to handle unexpected cases gracefully. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. backend/windmill-worker/src/worker_lockfiles.rs:295
- Draft comment:
After updating the 'script' table in 'handle_dependency_job', cache invalidation is done using 'cache::script::invalidate'. Consider checking and logging errors from cache invalidation to ensure consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. backend/windmill-worker/src/python_executor.rs:428
- Draft comment:
In the 'uv_pip_compile' function the pip fallback branch is now removed so that dependency resolution always uses the 'uv' tool. Make sure tests & documentation are updated to reflect that pip (deprecated since 1.425.0) is no longer used. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
8. backend/windmill-worker/src/ansible_executor.rs:77
- Draft comment:
The Ansible dependencies handling now calls 'uv_pip_compile' directly, removing the pip fallback option. Verify that the change aligns with expected behavior for resolving Python dependencies in Ansible jobs. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_DPj9g5ul1j7prM19
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pip was deprecated since 1.425.0 (2024-11-15)
Important
Remove deprecated
pip
fallback options for Python and Ansible, cleaning up related code and configurations.pip
fallback logic inuv_pip_compile()
andspawn_uv_install()
inpython_executor.rs
.pip
related constants inworker.rs
andworker_lockfiles.rs
.download.py.pip.config.proto
anddownload_deps.py.pip.sh
.LOCK_CACHE_DIR
andPIP_CACHE_DIR
frommain.rs
andworker.rs
.no_uv
related flags fromPythonAnnotations
inworker.rs
.handle_ansible_python_deps()
inansible_executor.rs
to removepip
fallback.USE_PIP_COMPILE
andUSE_PIP_INSTALL
frompython_executor.rs
andworker_lockfiles.rs
.This description was created by
for d4d0d19. It will automatically update as commits are pushed.