-
Notifications
You must be signed in to change notification settings - Fork 3
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
Creating virtual environment for each test #247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change itself is looking good! Glad you got it working
@jpa198 Thoughts about compiling emod3d-tools as part of environment setup. Just because the binaries may change and hence break the tests?
Jenkinsfile
Outdated
pwd | ||
env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're using these as debug output for the logs, it would be nice to wrap it with "Current working directory:" etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean as a separate "stage"? Sure - can do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in the latest patch
I think pulling EMOD3D and compiling every time we do a test is too much. I think the responsibility for updating the binaries should be on the EMOD3D repo. |
Sweet. Agreed with all your thoughts. |
I only managed to build a couple of tools on ec2 - had to temporarily install openmpi and FFTW3, and it crashed at Fractal3D. At the point, I had all the binaries needed for the test, so I didn't go further to fix the build issues. |
If we do want to take that path, I can make a build target for just tools we need for testing |
No need for now - I will move on to other repos and convert to virtual envs and will see if I need more binaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Looks good.
Creates virtual environment at /tmp/qcore/#hash#, installs requirements.
Runs test, then removes after.
Docker images all removed from the server to release space.
Binaries are kept under /nesi/project/nesi00213/tools
Note: For virtual environments, pytest and pytest-black should be included in requirements.txt for the auto-tests to run