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
Make test failing locally #13901
Comments
Outside of the container, I ran:
This completed without any errors. However, if I shell into the container with the server running and run:
I get 167 test failures (it does not continue on to the CLI or migration checks). Those tests include this one about:
This is surprising, because the two should be running the same thing. |
This is because the awx/awx/settings/development.py Line 116 in 2ce9440
The conf.d folders were used in the docker-compose environments since #9289, and this should have existed ever since. I believe this will be addressed by #13895, and I will test that and try to move ahead with that as the preferred solution. |
Confirmed that #13895 gets |
To @john-westcott-iv's question here - why does I still don't know, but it is quickly obvious that the implementations for both are in a totally separate place, and basically rewrites of each other. vs. These do not even overwrite the same method, which for squlite3 is |
Believe to be addressed by linked PR which is merged now. |
Please confirm the following
Bug Summary
When running
make test
on an AWX container locally we are seeing failing tests with stacks like:However, the same tests do not fail when run through the github actions.
This was initially thought to be part of the django migration but its been confirmed that this is also the case pre-upgrade.
The error appears to be related to how sqlite/py.test is being used in conjunction with the
UnifiedJobDeprecatedStdout
class. In the migrations, you can see the result_stdout_text field being created in migration 0001 and then "removed" from the DB state against the UnifiedJob model and added to the UnifiedJobDeprecatedStdout model in migration 0017.@AlanCoding also noted that the following patch allows the tests to run locally but causes a significant increase in time:
We should try to determine:
AWX version
latest
Select the relevant components
Installation method
docker development environment
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
make docker-compose-build
make test
Expected results
Tests should pass.
Actual results
Stack trances around the unified jobs.
Additional information
No response
The text was updated successfully, but these errors were encountered: