-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Write flaky tests to rockset #70136
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
Write flaky tests to rockset #70136
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 882e912 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
559a678
to
d49ebb1
Compare
tools/stats/print_test_stats.py
Outdated
# write to S3 to go to Rockset as well | ||
import uuid | ||
for flaky_test in flaky_tests: | ||
flaky_test["workflow_job_id"] = workflow_job_id |
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 is ambiguous, there is no concept of a "workflow job" in either GHA or circle. Probably workflow_id
is preferred
tools/stats/print_test_stats.py
Outdated
flaky_test["workflow_job_id"] = workflow_job_id | ||
key = f'flaky_tests/{workflow_job_id}/{uuid.uuid4()}.json' | ||
obj = get_S3_object_from_bucket('ossci-raw-job-status', key) | ||
obj.put(Body=json.dumps(flaky_test).encode()) |
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.
nit: should set ContentType="application/json"
so that if you view the s3 file directly, you browser knows what to do with it.
tools/stats/print_test_stats.py
Outdated
flaky_test["workflow_job_id"] = workflow_job_id | ||
key = f'flaky_tests/{workflow_job_id}/{uuid.uuid4()}.json' | ||
obj = get_S3_object_from_bucket('ossci-raw-job-status', key) | ||
obj.put(Body=json.dumps(flaky_test).encode()) |
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.
I don't think you need encode()
here, the s3 library will do it for you.
@janeyx99 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Try using Rockset as backend for data instead of RDS