I am adding a language module for Sardinian, in its two macro-varieties, to LanguageTool. I have created a fork and branched out of “main” and I am following the development guidelines.
However, I am finding many (more or less) sporadic build and test issues. This is slowing down my development considerably. Also, everytime I want to build and test my module and I run ./build.sh sc package test, Maven has to rebuild the whole thing again.
I might be doing something wrong. Do you have any suggestions? Should I have branched from somewhere else?
Hi Andria, the build should be stable, what kind of issues do you see?
/build.sh sv package test (sv = Swedish is a language with few tests) takes 10-15 seconds on my computer. How long does it take for you with sc and with sv?
It takes at least 15m on my setup. It seems it finds a reason to rebuild languagetool-core everytime.
The failures are often about not finding XML or TXT files, especially in tests. Whenever I run mvn clean package or similar, the issues randomly appear somewhere else.
I am using WSL2, my MAVEN_OPTS is set to -Xmx1550m.
The fact that languagetool-core is always triggered even if I don’t touch anything is fishy. Maybe it’s something about filesystems? I’ll check and report in case it helps anybody else having similar issues.
Alright, as I suspected the problem was with the filesystem. Moving the project under the home fixed the sporadic failures and made the build much faster. The whole lot takes about 10 minutes now.
I guess this is a cautionary tale for anybody developing on WSL. Thank you Daniel.