You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
The method testReloadData on ASTableView contains a number of random variables. What's worse, it runs a loop of 100 iterations on the same table view, each with a new set of random data.
I get the appeal, but this is awful!! If this method fails on CI we have no idea why it failed and no way to reproduce the failure.
Our thrash testers save and print each configuration to avoid this issue.
What's worse, the failures are all unexpected (i.e. unhanded exceptions). So our options are:
Easy: Ditch the method and remember never to add random elements willy-nilly in the future.
Hard: Keep track of all random variables in e.g. an array of dictionaries. Add a mechanism to read this data structure from a JSON file to "replay" the test that failed. Add @try/@catch around the test body. If an exception is caught, print the JSON representation of the test config and then rethrow it.
The text was updated successfully, but these errors were encountered:
Our Pinterest CI is running our unit tests like 20 times in a row now, and so the failure conditions in here are popping up reliably now, and causing all the tests to fail.
If we go the easy route here, we should have someone enable the exception breakpoint, log all the random variables, and just run the test locally like 20 times and see if we hit the failure condition.
The method
testReloadData
on ASTableView contains a number of random variables. What's worse, it runs a loop of 100 iterations on the same table view, each with a new set of random data.I get the appeal, but this is awful!! If this method fails on CI we have no idea why it failed and no way to reproduce the failure.
Our thrash testers save and print each configuration to avoid this issue.
What's worse, the failures are all unexpected (i.e. unhanded exceptions). So our options are:
The text was updated successfully, but these errors were encountered: