-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[release test] rename build_dir to context_dir in fill_build_context_dir #59941
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
[release test] rename build_dir to context_dir in fill_build_context_dir #59941
Conversation
Rename build_dir parameter to context_dir and move it to the last argument position for better API consistency. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
a34eba8 to
00671a9
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.
Code Review
This pull request refactors the fill_build_context_dir function by renaming the build_dir parameter to context_dir and adjusting the parameter order for better clarity. The changes are correctly propagated to the function's call sites in the application code and tests. My review found one minor issue: the function's docstring summary was not updated to reflect the parameter rename. Overall, this is a good change that improves code consistency.
| def fill_build_context_dir( | ||
| ctx: BuildContext, | ||
| build_dir: str, | ||
| source_dir: str, | ||
| context_dir: str, | ||
| ) -> None: |
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.
|
|
||
| with tempfile.TemporaryDirectory() as build_dir: | ||
| fill_build_context_dir(build_context, build_dir, release_byod_dir) | ||
| fill_build_context_dir(build_context, release_byod_dir, build_dir) |
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.
this change is putting output at the end, at least not in the order of "input,output,input".
Rename build_dir parameter to context_dir and move it to the last argument position for better API consistency.
🤖 Generated with Claude Code