-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Issue on make test #399
Comments
I think I've seen that before, but I also thought we fixed it... What commit was this a problem on? I don't have a problem on f971973 which is the HEAD of the repo as of 22 minutes ago |
@aaron-suarez i did find the error on 34e7f70 just pulled the latest changes from main |
@aaron-suarez While we fixed it on the CircleCI pipeline by changing ownership of the current directory to the docker user, this issue I am afraid shall still pop up when run locally using docker-compose ( if the host you are cloning too has strict permissions about the current directory ) - possible temporary solution is to run Though in order for us to solve this permanently is to either remove the volume connection from the docker-compose configuration which will make it so that any changes in the source files will need rebuilding of the docker image ( I think we already do that anyway with our make config so it might not be much of a negative hassle ) or the other solution is to have different docker-compose files for production and development, where the development config will run as root user and still have the volume connected for ease of usage. What do you guys think? If there are other solutions I am not aware of that you think would be better then I'd love to know! |
I think I'd prefer the solution of running as root for development but I hope that problems don't pop up in staging that we couldn't catch in dev because of this difference. But I think it would probably be fairly easy to identify because it would certainly be permissions errors. |
We could still run the CI pipeline using the production config since we can solve the permission problems easily there and it should hopefully catch any errors I think |
Yeah, I think that will work. I trust our unit tests for the most part. Only once have I been caught up where I would have expected us to have a unit test for something and we didn't find out that the test was missing until production. And once in a 4 year project isn't too bad I think... Ok so anyone that wants to handle this issue. Acceptance criteria:
Did I cover everything @Kandeel4411 ? |
Yup I think thats about everything - also what kind of config would our Makefile use? I think we need to include an env variable in there or something which is by default dev config but changed to prod on CI |
The main "run" command in the Makefile is So like, we have |
yeah that makes sense, that should do it I think |
So I ran tests on my system using make test but it failed on this test file
tests/unit/test_routes/test_resource_update.py
although it passed on circle cithe error is as follows
The text was updated successfully, but these errors were encountered: