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

Add tests against dockerd on the host system (k8s cordining/uncording not tested) #98

Merged
merged 14 commits into from
Jun 2, 2023

Conversation

minrk
Copy link
Member

@minrk minrk commented Jan 2, 2023

started working on these, but it immediately became difficult to run tests locally because I haven't been able to get docker-in-docker to work with a mounted docker directory (presumably a docker-on-mac issue). Shouldn't be a problem on true linux, though.

closes #16

@minrk minrk force-pushed the tests branch 2 times, most recently from 813dfab to 285219b Compare January 2, 2023 13:37
@consideRatio consideRatio reopened this Jun 1, 2023
@consideRatio
Copy link
Member

(Min I'm working this actively atm)

@consideRatio
Copy link
Member

consideRatio commented Jun 1, 2023

Pweh @minrk, I got stuck in 0171339 that includes a brief comment about the state of things.

For some reason, we never get cleaner.main() to realize it should do cleaning in the test setup.


I'm dropping this for now and it may take a while before I can allocate time to this =/

It seems that the image builds doesn't add to the space detected by the
image cleaner in our test setup.

If we don't run pytest as sudo, we get 0.0GB of space reported, and if
we use sudo, I get 0.1GB of space reported - never more. I've tried
using docker:20-dind and docker:24-dind without difference.

I think the key question is to figure out where in the dind container
the built images get saved.
@consideRatio consideRatio changed the title wip: tests Add tests against dockerd on the host system (k8s cordining/uncording not tested) Jun 1, 2023
@consideRatio consideRatio marked this pull request as ready for review June 1, 2023 17:13
@consideRatio
Copy link
Member

consideRatio commented Jun 1, 2023

@minrk I couldn't stay away from the mystery, it was solved by replacing /dev/zero with /dev/urandom, use of nocache=True passed to the build also didn't do the trick.

I opened the following as part of working on this:

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pweh tests as passing and makes sense to me, feel free to go for a merge or push changes and then merge @minrk!

@minrk
Copy link
Member Author

minrk commented Jun 2, 2023

Wonderful!

@minrk minrk merged commit e81e88e into jupyterhub:main Jun 2, 2023
@minrk minrk deleted the tests branch June 2, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests
2 participants