Skip to content
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

Fix some bugs in upload benchmark scripts #6429

Merged
merged 3 commits into from
Mar 17, 2025

Conversation

huydhn
Copy link
Contributor

@huydhn huydhn commented Mar 17, 2025

While working on #6425, I discover several bugs in the upload scripts:

Testing

https://github.com/pytorch/test-infra/actions/runs/13909203687/job/38919334944#step:5:125 looks correct now

@huydhn huydhn requested a review from yangw-dev March 17, 2025 20:25
Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
torchci ⬜️ Ignored (Inspect) Visit Preview Mar 17, 2025 8:36pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 17, 2025
@@ -172,7 +172,8 @@ def upload_to_dynamodb(
"""
Copied from upload stats script
"""
info(f"Writing {len(docs)} documents to DynamoDB {dynamodb_table}")
msg = f"Writing {len(docs)} documents to DynamoDB {dynamodb_table}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from https://google.github.io/styleguide/pyguide.html#3101-logging, I'm lazy and just move the message to a variable to silent the warning.

Copy link
Contributor

@yangw-dev yangw-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thx for fixing it!

@huydhn huydhn merged commit d48dc52 into main Mar 17, 2025
7 checks passed
@huydhn huydhn deleted the fix-bugs-upload-benchmark-script branch March 17, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants