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

Avoid overwriting the default test times if the new default is empty #6288

Closed

Conversation

huydhn
Copy link
Contributor

@huydhn huydhn commented Feb 13, 2025

Due to the recent issue with octokit/request-action#315, the workflow to upload test stats was broken for a few days. The issue has been mitigated by pytorch/pytorch#146940, but we still have a gap in test times until new stats come in.

The test times from the last 3 viable/strict commits were used to compute test times https://github.com/pytorch/test-infra/blob/main/torchci/clickhouse_queries/test_time_per_file/query.sql#L11-L12

The tools/torchci/update_test_times.py script had a bug in which it overwrote the default test times even when there was no stats from the above query. The effect of this was that run_test had no default values to use in some cases, forcing these jobs to run sequentially, for example:

(Notice that they all had just 1/1 shard)

The proposed fix here is to keep the old default values when there is no new stats. We could also, maybe, create a metric for this so that we can monitor the age of the default test times.

@huydhn huydhn requested review from ZainRizvi and clee2000 February 13, 2025 02:52
Copy link

vercel bot commented Feb 13, 2025

@huydhn is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@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 Feb 13, 2025
@huydhn
Copy link
Contributor Author

huydhn commented Feb 13, 2025

Close in favor of #6289

@huydhn huydhn closed this Feb 13, 2025
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.

2 participants