Skip to content

Remove stale static suts/tests - #1733

Merged
bkorycki merged 11 commits into
mainfrom
remove-stale-tests
Nov 25, 2026
Merged

bkorycki merged 11 commits into
mainfrom
remove-stale-tests

Conversation

@bkorycki

Copy link
Copy Markdown
Contributor

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.

@bkorycki
bkorycki requested a review from a team as a code owner November 19, 2026 23:07
@bkorycki
bkorycki deployed to Scheduled Testing November 19, 2026 23:07 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@junjaytan junjaytan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up deleting that test as well because I don't think it really adds anything of value!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@bkorycki
bkorycki deployed to Scheduled Testing November 20, 2026 18:50 — with GitHub Actions Active
@bkorycki
bkorycki requested a review from junjaytan November 20, 2026 18:54
@wpietri

wpietri commented Nov 20, 2026 via email •

Copy link
Copy Markdown
Contributor

@mlcommons-cla-bot

Copy link
Copy Markdown

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>
@bkorycki
bkorycki deployed to Scheduled Testing November 23, 2026 21:42 — with GitHub Actions Active
@bkorycki

Copy link
Copy Markdown
Contributor Author

@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.

@wpietri

wpietri commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Looks good! The fast tests pass in ~15 seconds, and the full run takes under a minute, so it seems healthy to me.

@bkorycki
bkorycki merged commit 3a47e25 into main Nov 25, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Scheduled Testing — a6b0db5c Deployed Nov 23, 2026 by bkorycki via build #2678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants