Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for bypassing xfails and runs from configs. #123

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Mar 21, 2024

These let you use options from config files but ignore xfail and skip run settings to easily get logs with all test failures, like these:

Both of those are using IREE compiler version 20240321.838 @ 5f2743baaa79160a3883854e60e5188822dceeb1

(This was previously possible by editing the config .json file, but now it's easier)

So minimal repro instructions for latest nightly IREE ONNX test suite failures:

git clone https://github.com/nod-ai/SHARK-TestSuite.git
cd SHARK-TestSuite
python -m venv .venv
source .venv/bin/activate
python -m pip install -r iree_tests/requirements.txt
python -m pip install --find-links https://iree.dev/pip-release-links.html iree-compiler iree-runtime --upgrade
pytest iree_tests/onnx -n auto --ignore-xfails --config-files ./iree_tests/configs/config_cpu_llvm_sync.json

See the README for other common scenarios (like using a source build of IREE)

@ScottTodd ScottTodd merged commit 73dcb42 into nod-ai:main Mar 21, 2024
1 check passed
@ScottTodd ScottTodd deleted the iree-config-options branch March 21, 2024 16:12
renxida pushed a commit that referenced this pull request Jul 18, 2024
These let you use options from config files but ignore xfail and skip
run settings to easily get logs with all test failures, like these:

*
[pytest_compile_only_2024_03_21.txt](https://gist.github.com/ScottTodd/ecc9c57c01bfc5e996a15cdd38df6a9c)
*
[pytest_all_failures_2024_03_21.txt](https://gist.github.com/ScottTodd/1a02531cc76a3b8566428207e39d1870)

Both of those are using `IREE compiler version 20240321.838 @
5f2743baaa79160a3883854e60e5188822dceeb1`

(This was previously possible by editing the config .json file, but now
it's easier)

So minimal repro instructions for latest nightly IREE ONNX test suite
failures:

```
git clone https://github.com/nod-ai/SHARK-TestSuite.git
cd SHARK-TestSuite
python -m venv .venv
source .venv/bin/activate
python -m pip install -r iree_tests/requirements.txt
python -m pip install --find-links https://iree.dev/pip-release-links.html iree-compiler iree-runtime --upgrade
pytest iree_tests/onnx -n auto --ignore-xfails --config-files ./iree_tests/configs/config_cpu_llvm_sync.json
```

See the README for other common scenarios (like using a source build of
IREE)
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.

1 participant