-
Notifications
You must be signed in to change notification settings - Fork 4
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
gitlab-runner tests run through fine locally but hang on gitlab.com #92
Comments
This can happen if an async test wasn't properly structured/awaited for. You should have a look around. |
yeah it's most likely either worker-threads not exiting or a polykey agent not winding down so we will have to deal with tear down properly. |
This has been solve, the issue was that there was UDP sockets continuously broadcasting their peers presence on the multicast address and was not stopping upon the termination of the agent process. Simple fix was to use |
Should indicate in the PR that fixes this. |
Do you know about RAII? It's important way of managing resources like sockets for OOP languages. Also we might find a bracket pattern. Problem is that JS objects don't have a destructor. But I worked around this in js-virtualfs using things like ref links in resource counter and having managing classes that would explicitly close/destroy things on some counter. |
yeah I know about RAII, it didn't help much in this situation, the agent process was killed and it's corresponding JS object even set to undefined after the tests but it didn't work. |
Yea in that case, the explicit stop command should be executed on OS signals. So you need https://nodejs.org/api/process.html#process_signal_events for this. At least on the CLI that is. The relevant signals are:
They all mean slightly different things. Generally For SIGHUP:
So for now you just have to handle The GUI will have similar situations too, but only for desktop. Not sure for Android/iOS. |
This is the last output on the pipeline:
There re no open handles detected when running locally so I am not sure what is happening here.
The text was updated successfully, but these errors were encountered: