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

Unable to run server unit tests in local environment #8677

Open
2 tasks done
PMazarovich opened this issue Nov 11, 2024 · 0 comments
Open
2 tasks done

Unable to run server unit tests in local environment #8677

PMazarovich opened this issue Nov 11, 2024 · 0 comments
Labels
documentation Documentation should be updated

Comments

@PMazarovich
Copy link
Contributor

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

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

CVAT 2.19.1 local env
@PMazarovich PMazarovich added the bug Something isn't working label Nov 11, 2024
@azhavoro azhavoro added documentation Documentation should be updated and removed bug Something isn't working labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation should be updated
Projects
None yet
Development

No branches or pull requests

2 participants