Recipe Modularization, DAG Integration, and BigQuery Integration#2715
Recipe Modularization, DAG Integration, and BigQuery Integration#2715DannyLiCom wants to merge 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
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. Thank you for your contributions. |
|
This PR was closed because it has been inactive for a while. Please reopen it if you are still working on it. |
57a9040 to
991aaf6
Compare
|
LGTM, but I would just verify that the imports work properly at the top of the files. Since the MaxText modularization refactor, we may need to check that since a lot of these changes were from before that. |
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 |
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.