d6259d6a54
When tests are run in parallel, they will all compete to update and set up the systemplate directory, which has a handful of files that need to be up-to-date. This is a source of errors. Normally, these files are linked (hard- or soft- link, whichever succeeds). With linking, we only need to worry about the initial setup, as the files will never be out-of-date from then on. However, when linking fails, we need to copy the files, and update them (by copying over fresh versions of the files, if necessary) every time a new kit is forked. Copying over is tricky, as it's not atomic. To make it atomic, we copy the files to the destination directory under a temporary (random) name, and then rename to the final name (which is atomic, including replacing the target file, if it exists). No such race exists in production, where there is (or should be) but one instance of loolwsd (which does the initial setup) and forkit (which updates systemplate before forking new kit instances). This is an issue with parallel tests only. Change-Id: I6ba1514d00a84da7397d28efeb6378619711d52f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97785 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> |
||
---|---|---|
.. | ||
Authorization.cpp | ||
Authorization.hpp | ||
Clipboard.hpp | ||
Common.hpp | ||
Crypto.cpp | ||
Crypto.hpp | ||
FileUtil.cpp | ||
FileUtil.hpp | ||
JailUtil.cpp | ||
JailUtil.hpp | ||
JsonUtil.hpp | ||
Log.cpp | ||
Log.hpp | ||
LOOLWebSocket.hpp | ||
Message.hpp | ||
MessageQueue.cpp | ||
MessageQueue.hpp | ||
MobileApp.cpp | ||
MobileApp.hpp | ||
Png.hpp | ||
Protocol.cpp | ||
Protocol.hpp | ||
Rectangle.hpp | ||
Seccomp.cpp | ||
Seccomp.hpp | ||
security.h | ||
Session.cpp | ||
Session.hpp | ||
SigUtil.cpp | ||
SigUtil.hpp | ||
SpookyV2.cpp | ||
SpookyV2.h | ||
StringVector.cpp | ||
StringVector.hpp | ||
Unit.cpp | ||
Unit.hpp | ||
UnitHTTP.hpp | ||
Util.cpp | ||
Util.hpp |