-
Notifications
You must be signed in to change notification settings - Fork 0
support exporting and ordering by test duration #46
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
Conversation
# Convert test_time_hash to simple format: {"TestClass#method": avg_duration_ms} | ||
timing_data = test_time_hash.transform_values do |durations| | ||
durations.sum.to_f / durations.size # Average duration | ||
end |
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.
Most cases there should just be one duration value, but there are cases where the test is run by multiple workers successfully, so we just take the average in those cases
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 interesting...why would a successful test case get run multiple times in a single build?
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.
If a test goes past the timeout for whatever reason (let's say it hits a really long GC pause), another worker can pick it up, and then both of them end up reporting the success
https://github.com/figma/ci-queue/blob/master/ruby/lib/ci/queue/redis/worker.rb#L208-L231
acf1006
to
9a1776f
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
1f8a4a7
to
d50711a
Compare
9a1776f
to
2818672
Compare
# Convert test_time_hash to simple format: {"TestClass#method": avg_duration_ms} | ||
timing_data = test_time_hash.transform_values do |durations| | ||
durations.sum.to_f / durations.size # Average duration | ||
end |
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 interesting...why would a successful test case get run multiple times in a single build?
Uh oh!
There was an error while loading. Please reload this page.