Open sandrotaje opened 2 years ago
@sandrotaje thanks for reporting this issue! We'll take a look and try to reproduce this problem.
Additional info:
It seems the bug happens after devspace dev
returns `Context deadline exceeded. Unfortunately, I'm not able to print the log.
It seems this doesn't happen with devspace 6
What happened? Sometimes it happens devspace syncs folders outside of the folder where devspace is defined. Specifically it happens when the
vcluster connect
returns a "Broken pipe" error.We have a monorepository with a "root" devspace where there are defined just dependencies and every dependency is inside a subfolder of the same repo.
Inside the devspace of a dependency we have something like this:
Because we need to sync also other folders that contain some common modules. We are using
vcluster connect
to connect to the virtual cluster through the port-forward.This works almost every time but sometimes ( it seems when the vcluster connect returns a broken pipe error) devspace dev starts to sync
../../
not relative to the devspace file but from the root of the repository ending up in syncing files not related causing a slow down of the computer and of the cluster.What did you expect to happen instead? Just continue to sync the correct folder
How can we reproduce the bug? (as minimally and precisely as possible) I'm not sure on how to have the broken pipe error, I tried shutting down the internet connection but it doesn't seem to happen.
My root devspace.yaml:
One of the dependency devspace:
Local Environment:
Anything else we need to know? It happens in different PCs and in different networks not just in my mac or just with my network connection
/kind bug