Make unit tests run in parallel again #814
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Following #810 there is now a coherent way to set up and teardown unit tests. However, I have had to disable parallel testing (
-p 1):We need to generate a unique
$ABRA_DIRper unit test to ensure that the parallel running tests do not destroy each others test data while running. My best guess for how to make this work is:test.Setupgenerates a unique path/home/.abra_<uuid>and returns that path (uniqueAbraDir)uniqueAbraDiris passed and injected into all further invocations in the test itself$ABRA_DIRprobably needs to be converted into a function which injectsuniqueAbraDirOther options and proposals are welcome 🙏
Also, @p4u1
TestCancelGitCloneseems to be flaky still but only on the CI.I suspect it has something to do with the
os.FindProcess(os.Getpid())which seems to work fine locally but it varies in the CI environment. Any ideas how to stabilise that one? We could also just scrap the test if it's too awkward to maintain.