Closed fortysixandtwo closed 3 years ago
thanks! i never ran this in parallel, which is probably why i never had this problem. never really thought about it, but mv
does actually error if there is nothing to move, interesting. and exec
ing via find
doesn't?
(i think the core problem is that everything gets run in the main dir, so it could also be solved by compiling the tests to and running them from the test dir so nothing needs to be moved after. what do you think about that? i'll merge this anyway since it was very hacky in the first place :grimacing: )
find
exits with 0
/doesn't error out if it it doesn't find anything.
Your suggestion seems like a good idea. I just went the low resistance path, mainly because I didn't fully understand and didn't want to break the coverage reports :)
I just noticed an issue with this PR. While building it did move my .git/
and .gitignore
into the tests directory
which confused me lots ;)
Updated the MR
When running the build in parallel moving '.g' may fail because files got moved by another build job
At least that's what I suspect happens. I came across this because CI pipelines were randomly (about 1 in 4 tmes in CI) failing at the
mv *.g* $(TDIR)
command. So I added a couple ofls
to figure the issue out. See f.e. https://salsa.debian.org/DebianOnMobile-team/libomemo/-/jobs/1343392#L1204 The problem in a nutshell can be seen here:Having rerun the CI pipeline (because I haven't had the problem on my machine) a few times with the patch applied I never got a failed build.