-
Notifications
You must be signed in to change notification settings - Fork 136
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
Leaks networks on every run #1407
Comments
Hi @firecow , This is the output of my "docker network ls" currently (minus some redacted stuff for my company);
I do see the network clean up after in theory, but in practice, something is probably going wrong. My guess is that I should be seeing some message somewhere based on https://github.com/firecow/gitlab-ci-local/blob/master/src/job.ts#L593 or maybe the |
likely these are leaked from the test suites, you can replicate it by |
I never ran the test suite of gitlab-ci-local. I run gitlab-ci-local from the brew installation. These are probably leaked from my job that run a docker in docker and failed to complete. The failure probably triggered some other failures (containers not being removed and skipping the rest of the cleanup ?) |
hmm, ic, not sure then.. i dont really run docker-in-docker pipeline hopefully, it's something that is replicable |
I just had the problem with a job that just runs out of a container... no issue that I know of... For those having the same issue, here is what I ran ;
|
I've got it again this morning :) I'm pretty sure it accumulate on a job failure... I'm currently trying to debug a job we have defined that starts a service container of mockserver, start our webcomponent and start testing against the webcomponent. I got a failure in my tests, which fails the job, but nothing special about it... I've ran that job over 50 times at least yesterday... |
Got it again yesterday, and I had it today as well. I will try to notice which "job" leave some network behind... the problem I have is that my workflow is dependant on gitlab-ci-local to run anything 😅 (we're bought on the concept of everything needs to be runnable in the CI and locally). However, the jobs I've been running were just starting a service for mockserver and the other was a shell job (no relation to docker)... At this point, I'm pretty sure it's when the job fails and has a service that the network isn't cleaned... I don't know how I could dig out more information for this ticket. If you have an idea, please let me know. |
Ok, I can now say for sure that the leak is happening on successful run as well... The job that leaks is using a service with an alias... I have yet to be able to determine what causes the leak... is it the service container not closing fast enough ? |
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
After running, clear the network that was needed for the service and the job container to talk together.
Host information
MacOS
gitlab-ci-local 4.55.0
Containerd binary
docker
Additional context
https://github.com/firecow/gitlab-ci-local/blob/master/src/job.ts#L543 < not tracked for cleanup
The text was updated successfully, but these errors were encountered: