iree-org / iree-test-suites

Test suites for IREE and related projects
Apache License 2.0
2 stars 7 forks source link

Set up a regression test suite #48

Open ScottTodd opened 4 days ago

ScottTodd commented 4 days ago

We can think of "regression tests" as a middle layer between unit tests and integration tests:

When an issue is detected and fixed, we should have a process to:

  1. Minimize and reproduce the issue (using the tools below, or some other process)
  2. Add the [minimal] reproducer to the regression suite
  3. Run the regression suite regularly (every commit, nightly, etc.)

Tools like fuzzers can also be used to generate regression test cases.

Tools to help

Implementation ideas

ScottTodd commented 4 days ago

Textual MLIR using most of our dialects (e.g. linalg) is not generally stable, so this sort of test suite does run the risk of breaking regularly. If we add enough test cases within each window when the op semantics / serialized representations do not change then this could still be useful enough.