[skip ci] export_slow_tests.py - Add option to ignore small differences (#59759)
Summary:
This would lower the number of unnecessary commits to pytorch/test-infra by only exporting a different stats file when the stats are varying enough. This way, if the slow test cases we gather from S3 are the same and their times are trivially different, then we do not bother exporting a different stats file when the --ignore-small-diffs option is enabled.
We instead export the stats already in test-infra, so that when it tries to commit, it realizes it would be an empty commit and not add to the git history.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59759
Test Plan: Run `python tools/export_slow_tests.py --ignore-small-diffs <threshold>`.
Reviewed By: walterddr
Differential Revision: D29032712
Pulled By: janeyx99
fbshipit-source-id: 41d522a4c5f710e776acd1512d41be9791d0cf63