-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix(test): widen iter-time steady-state window for short tests #5023
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,9 +208,8 @@ def pipeline( | |
| ] | ||
|
|
||
| if metric_name == "iteration-time": | ||
| # Restrict iter-time aggregation to the steady-state window | ||
| # (steps 30-45) so the warmup step does not dominate the median. | ||
| steady_window = range(30, 46) | ||
| max_golden_step = max(golden_value.values.keys()) if golden_value.values else 0 | ||
| steady_window = range(5, 21) if max_golden_step <= 25 else range(30, 46) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds a bit arbitrary. Conceptually, if warmup is still ongoing after iteration 5, steady_windows isn't steady. If not, we should just set the range to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is a stop gap to another issue, so I’ll need to merge it. But open to discuss another follow-up. Usually our tests run for 50 steps, so we take 30:46 for averaging. Not sure how to de-select noise steps better for those tests..
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sure.
In that case, the warmup threshold should probably be set by individual tests rather than being speculated by the test infra here. |
||
| actual_value_list = [ | ||
| value | ||
| for value_step, value in actual_values[metric_name].values.items() | ||
|
|
||
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.