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
[MRG] Make the memory limit test simpler #912
Conversation
Instead of checking that a build which allocates too much memory does fail, we now only check that we pass the correct arguments to the Docker API client. It seems reasonable to rely on the docker client working and doing the right thing. This solves a problem where our CI is flakey because the kernel of the VM the tests run on doesn't support this.
Look like the new release of pytest-cov which requires |
I think we got |
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.
My name is Yuvi Panda and I approve this PR
The mystery continues, the pytest-cov so why doesn't Seems like pypa/pip#6969 might be the answer to explain why this is happening. |
Pushed a new commit that bumps up our minimum pytest version to what pytest-cov needs. Maybe we could also solve this by listing pytest-cov before pytest in our Side comment: what do I do with the |
pytest-cov requires pytest>=4.6 so we explicitly list that as a dev dependency.
6b935a7
to
d135e3f
Compare
The robots are happy 🎉! The codecov test fails but I think that is expected. Looking at https://codecov.io/gh/jupyter/repo2docker/compare/8d85a51cd2b8d7dee712d3c1b283de1af734396d...d135e3fbd1675912f105151be00334c368d693af/changes I think we'd need to add a test that fails the build :-/ New issue? |
There is one approval and the bots are happy so merging this. |
Instead of checking that a build which allocates too much memory does
fail, we now only check that we pass the correct arguments to the Docker
API client. It seems reasonable to rely on the docker client working and
doing the right thing. This solves a problem where our CI is flakey
because the kernel of the VM the tests run on doesn't support this.
Hopefully this will make our CI faster and less flakey.