Skip to content

Modernize check tests in tests/e2e/ to support xfail and better filtering #17868

Open

Description

@ScottTodd

See some discussion here on Discord:

Probably need to keep refactoring those Bazel/CMake test suites to support xfail and let us more easily mark status across all those configs. I want something like pytest marks, but the check tests have the advantage of just being simple binary tests with a return code, no python test wrapper.
I could write a conftest.py for check tests similar to what I have for the ONNX test suite, just wrapping the existing .mlir files 🤔 . That could even sit alongside Bazel/CMake. If Android or something wants to use ctest it can keep doing that... hmm... might prototype that.

Yeah, I was going to suggest something like that. I would treat the test automation as something that works well for the wide middle... Pytest is good for that. Then treat the exotics as something you write a new test harness for. If Android, iOS, etc, you'll want to write something that takes all the tests and generated something they can run. There's no real lowest common denominator across that many axes. Personally, I would treat that current test tree as a lost cause: open a new one with a new harness. Migrate a directory out of it so you know you can. Then migrate the rest and delete anything that is left (there is some real old crap in there that should just be deleted)
Then just add a cmake utility rule to run the test suite for the clicky among us (or I'm sure there is a vs code extension that makes pytest clicky)

See also #11354

Implementation ideas / brainstorming

Activity

  1. added
    infrastructure
    on Jul 11, 2024
  2. self-assigned this
    on Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

infrastructure

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions