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

uwsgi_schema.yml overwritten when running local unit test #13482

Closed
jdavcs opened this issue Mar 3, 2022 · 1 comment
Closed

uwsgi_schema.yml overwritten when running local unit test #13482

jdavcs opened this issue Mar 3, 2022 · 1 comment
Labels
area/configuration Galaxy's configuration system kind/bug

Comments

@jdavcs
Copy link
Member

jdavcs commented Mar 3, 2022

After running this: pytest test/unit/webapps/config_manage/test_config_manage.py::test_build_uwsgi_yaml, the uwsgi_schema.yml file is overwritten.

Probable cause: overwriting the path for testing is broken.

In lib/galaxy/config/config_manage.py (at the end of _build_uwsgi_schema()), variable path contains the path to the local working directory:
PosixPath('/home/sergey/0dev/galaxy/_galaxy/dev/lib/galaxy/config/schemas/uwsgi_schema.yml')

For comparison, in 21.09 path points to the /tmp directory:
/tmp/tmpxj2eh451/lib/galaxy/webapps/uwsgi_schema.yml (which is correct).

To Reproduce
Run the test, then git status, see the modified file.

Expected behavior
Should not be modified.

@jdavcs jdavcs added kind/bug area/configuration Galaxy's configuration system labels Mar 3, 2022
@jdavcs
Copy link
Member Author

jdavcs commented Jan 15, 2025

Closing as outdated.

@jdavcs jdavcs closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration Galaxy's configuration system kind/bug
Projects
None yet
Development

No branches or pull requests

1 participant