Page MenuHomeSoftware Heritage

templates/stage-cypress-tests: Prevent race conditions between runners
ClosedPublic

Authored by anlambert on Tue, Nov 8, 2:38 PM.

Details

Summary

As the parallel cypress runners use the same repository filesystem to execute
tests from, some race conditions related to file system operations might happen
which make the tests fail.

As a workaround make each cypress runner execute tests from a copy of the swh-web
repository filesystem (without root hidden folders).

Such copy takes a dozen of seconds but it makes tests execution much more stable
on Jenkins by avoiding the race conditions mentionned above.

Diff Detail

Repository
rCJSWH Jenkins jobs
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.