Repository navigation
Remove stale static suts/tests - #1733
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
junjaytan
left a comment
There was a problem hiding this comment.
Thanks for cleaning this up, Barbara! I had a question about removing one of the tests that was left in, but otherwise LGTM.
| @pytest.mark.timeout(30) | ||
| @flaky | ||
| @pytest.mark.parametrize("test_name", [key for key, _ in TESTS.items() if key not in TOO_SLOW]) | ||
| def test_all_tests_make_test_items(test_name, shared_run_dir): |
There was a problem hiding this comment.
This parameterized test is responsible for the vast majority of the SUT skipped tests, about 300 (if you remove it, you should see that the skipped test total goes to single digits). I'm not sure if you meant to keep it in for verifying something in the future?
Otherwise besides the skipped test total being noisy, the test runner still runs test registry collection despite this being marked as an expensive test since it's a module import.
There was a problem hiding this comment.
I ended up deleting that test as well because I don't think it really adds anything of value!
There was a problem hiding this comment.
Could you say more about why it wasn't valuable? Making sure the prompts load seemed like a good test to me, but maybe it's covered elsewhere?
There was a problem hiding this comment.
Well, we weren't testing it before and everything was fine. And it significantly slows down CI. But I can add it back in if you think its worth it!
|
Was everything fine because other tests covered it? Or were things fine
because people were being extra-careful with this and/or bumping into bugs
and fixing them?
I agree the tests are slow, which is why I'm fine if only CI runs them
normally. But could they give us useful signal on whether things are
implemented properly? If so, I'd rather keep them.
Especially since we're drifting toward using generated code, I think a
high-quality test suite is important.
|
|
MLCommons CLA bot: All contributors are covered by the MLCommons CLA ✍️ ✅ |
This reverts commit b4cdb4f. Co-authored-by: bkorycki <bkorycki@gmail.com>
Co-authored-by: bkorycki <bkorycki@gmail.com>
|
@wpietri Yeah, things were fine because we had to manually test that the tests were working as intended. I added that test suite back in. |
|
Looks good! The fast tests pass in ~15 seconds, and the full run takes under a minute, so it seems healthy to me. |
We are slowly moving away from static SUTs as well as the assumption that SUTs are reliable.
This PR deletes SUT connection tests as well as static SUTs which can be created dynamically. I did not delete static SUTs for classes that do not currently have an associated SUT factory. I also kept the demo suts and
gpt-4o, which I personally like using as a test sut. I also kept a couple of static SUTs that are used by an evaluator.