You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this tutorial: https://docs.cvat.ai/docs/contributing/running-tests/#unit-tests
After running opa container, I see in logs this "error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: server misbehaving","name":"cvat","plugin":"bundle","time":"2024-11-11T12:32:49Z"}
This happens as CVAT is not up itself and opa can not fetch rules => all tests will fail.
Ok, I've set up the whole CVAT in docker-compose. docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
and I'm running this command: python manage.py test --settings cvat.settings.testing cvat/apps -v 2
Most of the tests are ok, but failures=25, skipped=36
I am providing the file with the terminal output: output.txt
Expected Behavior
When following the guide from the docs, use have to be able to be sure all vanilla CVAT tests will successfully pass. Also, I think there is an error in documentation regarding OPA container as it will not simply start. Or I'm doing something wrong🙀
Possible Solution
Adjust the documentation so users can run unit tests on the local machine.
Context
No response
Environment
CVAT 2.19.1 local env
The text was updated successfully, but these errors were encountered:
Actions before raising this issue
Steps to Reproduce
I used this tutorial:
https://docs.cvat.ai/docs/contributing/running-tests/#unit-tests
After running opa container, I see in logs this
"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: server misbehaving","name":"cvat","plugin":"bundle","time":"2024-11-11T12:32:49Z"}
This happens as CVAT is not up itself and opa can not fetch rules => all tests will fail.
Ok, I've set up the whole CVAT in docker-compose.
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
and I'm running this command:
python manage.py test --settings cvat.settings.testing cvat/apps -v 2
Most of the tests are ok, but failures=25, skipped=36
I am providing the file with the terminal output:
output.txt
Expected Behavior
When following the guide from the docs, use have to be able to be sure all vanilla CVAT tests will successfully pass. Also, I think there is an error in documentation regarding OPA container as it will not simply start. Or I'm doing something wrong🙀
Possible Solution
Adjust the documentation so users can run unit tests on the local machine.
Context
No response
Environment
The text was updated successfully, but these errors were encountered: