Page MenuHomeSoftware Heritage

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

Authored by anlambert on Nov 8 2022, 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
Branch
stage-cypress-prevent-race-conditions
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 32752
Build 51314: arc lint + arc unit