-
Notifications
You must be signed in to change notification settings - Fork 589
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(python): make S3 cache arch specific #5196
Merged
Merged
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
Current schema: S3-Bucket ├── python_311 │ ├── wheel==1.0 │ └── wheel2==1.0 └── python_312 ├── wheel==1.0 └── wheel2==1.0 New schema: S3-Bucket ├── linux_aarch64 │ └── ... └── linux_x86_64 ├── python_311 │ ├── wheel==1.0 │ └── wheel2==1.0 └── python_312 ├── wheel==1.0 └── wheel2==1.0
Deploying windmill with Cloudflare Pages
|
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 dfc7f12 in 1 minute and 50 seconds
More details
- Looked at
45
lines of code in2
files - Skipped
1
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. backend/windmill-worker/src/global_cache.rs:62
- Draft comment:
Consider using named parameters for clarity in the S3 path. The format string "/tar/{TARGET}/{}/{folder_name}.tar" relies on auto-captured identifiers (TARGET and folder_name) along with a positional placeholder. Explicitly naming all parameters (e.g. using "{target}", "{python}", "{folder_name}") can improve readability and reduce potential bugs. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
While named parameters can improve readability, this case is fairly straightforward. The format string is short and the meaning is clear from context. The positional parameter comes from an inline if expression, making it natural to use a positional parameter. The code is consistent in both places it appears. No real risk of bugs since the format is simple.
The comment does identify a real coding practice issue. Named parameters can make code more maintainable in the long run.
However, this is a minor stylistic suggestion that doesn't materially improve the code quality or reduce bug risk in this specific case. The current format is clear and consistent.
Delete this comment as it suggests a minor stylistic change that doesn't meaningfully improve the code quality or reduce bugs in this specific case.
2. backend/windmill-worker/src/python_executor.rs:635
- Draft comment:
Changing log level from 'error' to 'debug' for uv args is a good improvement to reduce noise in production logs. - Reason this comment was not posted:
Confidence changes required:0%
None
3. backend/windmill-worker/src/global_cache.rs:62
- Draft comment:
Using{TARGET}
in the S3 key path now makes caching arch-specific. Ensure that TARGET is computed correctly across all platforms (consider including OS if needed). - Reason this comment was not posted:
Comment did not seem useful.
4. backend/windmill-worker/src/python_executor.rs:635
- Draft comment:
Changed uv args logging from error to debug to reduce noise. This is appropriate if the log is not indicating an error. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_FFCIZzVPtmEzkybM
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.
Current schema:
New schema:
Important
Make S3 cache paths architecture-specific and adjust logging level in
uv_pip_compile
.TARGET
constant inglobal_cache.rs
to make S3 cache paths architecture-specific.build_tar_and_push
andpull_from_tar
to includeTARGET
.uv_pip_compile
inpython_executor.rs
.This description was created by for dfc7f12. It will automatically update as commits are pushed.