-
Notifications
You must be signed in to change notification settings - Fork 185
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
[Python] Tests failing when running builder
tests with all others.
#2347
Comments
I believe the problem is related to the python3 -m pytest -v python/tests/ \
--ignore python/tests/backends
pytest_status=$?
if [ ! $pytest_status -eq 0 ]; then
echo "::error file=test_in_devenv.yml::Python tests failed with status $pytest_status."
exit 1
fi
for backendTest in python/tests/backends/*.py; do
python3 -m pytest -v $backendTest
pytest_status=$?
# Exit code 5 indicates that no tests were collected,
# i.e. all tests in this file were skipped.
if [ ! $pytest_status -eq 0 ] && [ ! $pytest_status -eq 5 ]; then
echo "::error file=test_in_devenv.yml::Python $backendTest tests failed with status $pytest_status."
exit 1
fi
done |
Thanks for the pointer. However, running the others, including
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required prerequisites
Describe the bug
The builder test seems to be breaking something when run together with all other tests. The issue does not happen when builder tests are run in isolation.
When run in isolation:
Steps to reproduce the bug
Run:
pytest python/tests/backends/ python/tests/custom/ python/tests/domains/ python/tests/handlers/ python/tests/interop/ python/tests/kernel/ python/tests/mlir/ python/tests/mlir/ python/tests/parallel/ python/tests/utils/ python/tests/visualization/ python/tests/builder/
Expected behavior
Tests to pass.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: