push-based / nx-verdaccio

Enterprise E2E setup for Nx and Verdaccio
8 stars 0 forks source link

Increase guarantee that Verdaccio server is closed on error #46

Open getlarge opened 1 week ago

getlarge commented 1 week ago
Screenshot 2024-09-30 at 10 49 12

While improving the whole e2e experience, we might as well avoid leaving hundreds of undesired processes on the user's machine.

getlarge commented 1 week ago

After considering it, this could more easily work if e2e tasks are run inside your own executor, where you can control the complete execution flow (e2e + env setup). This way, you can ensure that the server will be closed whenever the task is completed or failed.

This idea of an e2e task wrapper could also help with task distribution...

BioPhoton commented 1 week ago

ATM the cleanup is not fully there. The idea would be to handle those errors in the setup executor directly inc the cleanup on error. Verdaccio is started in there too.