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

Use Exceptions in onnx importer to avoid importing broken test cases. #9

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

ScottTodd
Copy link
Member

A few of these cases were allowing errors to slip through as broken test cases. Rather than rely on checking for None or watching the logs, this uses Exceptions as error handling.

As a result of fixing these oversights, some broken test cases are deleted. I'm not sure how update_config_xfails.py will handle the list of tests changing.

Logs from running the import script: https://gist.github.com/ScottTodd/bd327bc7e95485b12a9f9ebdcddf0bc2

@ScottTodd ScottTodd force-pushed the onnx-ops-import-exceptions branch from 4db52b9 to 2abbaee Compare August 14, 2024 20:21
@ScottTodd ScottTodd marked this pull request as ready for review August 14, 2024 20:22
@ScottTodd ScottTodd requested a review from rsuderman August 14, 2024 20:22
@ScottTodd ScottTodd merged commit 62eab0f into iree-org:main Aug 14, 2024
2 checks passed
@ScottTodd ScottTodd deleted the onnx-ops-import-exceptions branch August 14, 2024 21:21
ScottTodd added a commit that referenced this pull request Nov 20, 2024
Generated by running `import_onnx_tests.py`.

I think the newly failing to import test cases were broken imports
(missing data type conversions) that were silently slipping through. Not
sure why #9 missed
them.

Description | Logs link | Tests passing | Tests failing | Total tests
-- | -- | -- | -- | --
Baseline | [logs
here](https://github.com/iree-org/iree-test-suites/actions/runs/11916224703/job/33208376944)
| 786 (65%) | 431 | 1217
This PR | [logs
here](https://github.com/iree-org/iree-test-suites/actions/runs/11921958180/job/33227205119?pr=41)
| 788 (68%) | 375 | 1163

So all of the broken test cases were failing anyways. Better to mark
them as import (or test suite) failures instead of IREE compilation or
runtime failures.
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.

2 participants