Recipe Modularization, DAG Integration, and BigQuery Integration#2715
Recipe Modularization, DAG Integration, and BigQuery Integration#2715copybara-service[bot] merged 1 commit intomainfrom
Conversation
a961644 to
f2a46a6
Compare
f2a46a6 to
3840670
Compare
8adde2d to
b08ea95
Compare
|
|
||
|
|
||
| def handle_cmd_args(cluster_config: XpkClusterConfig, *actions: str, **kwargs) -> bool: | ||
| def handle_cmd_args(cluster_config: XpkClusterConfig, is_delete: bool, user: str, **kwargs) -> bool: |
There was a problem hiding this comment.
Since the original recipe could only accept the --delete flag, this section had to be modified to allow it to accept multiple flags.
| parser_utils.add_arguments(parser) | ||
| args = parser.parse_args() | ||
|
|
||
| if len(sys.argv) > 2: |
There was a problem hiding this comment.
This logic is implemented to determine whether multiple flags are being used.
0303bcf to
78b8073
Compare
ce0fc18 to
c37edc0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
c37edc0 to
57a9040
Compare
aireenmei
left a comment
There was a problem hiding this comment.
Thanks for the work! I run the PR through AI and got these comments: https://paste.googleplex.com/6085130735190016. I looked at some points and they make sense to me, so I left inline comments. But there are more points, could you take a look?
|
🤖 Hi @aireenmei, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
There was a problem hiding this comment.
This pull request introduces significant refactoring to the benchmarking recipes, modularizing argument parsing and improving configuration management. The changes make the recipes more flexible and easier to use from the command line, especially for DAG integration.
🔍 General Feedback
- The introduction of
parser_utils.pyis a good step towards centralizing command-line argument handling. - The use of a
UserConfigclass helps in managing configurations cleanly. - The addition of
check_and_create_bucketis a useful utility, though its error handling could be improved in the calling code.
|
🤖 I'm sorry @aireenmei, but I was unable to process your request. Please see the logs for more details. |
9bb39cd to
a57612a
Compare
|
Hi @aireenmei I noticed a lot of these errors in Pylint. |
|
@aireenmei Also, these failures don't seem to be related to my code at all. |
a57612a to
2e66a21
Compare
2e66a21 to
cd65cbd
Compare
Resolved |
Resolved |
|
Hi @aireenmei Could you please take another look? If everything looks good, could you help approve it? |
aireenmei
left a comment
There was a problem hiding this comment.
The PR makes change in multiple recipes, but in the description only benchmarks.recipes.pw_mcjax_benchmark_recipe is tested. Could you make sure other recipes are also tested?
Hi @aireenmei Exactly. We are focusing on |
cd65cbd to
e5f5846
Compare
|
Another reason is that integrating every recipe following the |
b7a31a8 to
8464c0b
Compare
8464c0b to
962b696
Compare
aireenmei
left a comment
There was a problem hiding this comment.
Thanks for revising and the clarification!
Description
When integrating Recipe Modularization, DAG Integration, and BigQuery, the DAG will pass in a command that includes multiple command-line flags.
Tests
Users can use commands similar to the following to run tests
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.