libreosteo / LibreOsteo

Open Source software for osteopathes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Functional tests do not run anymore : momentjs has circular symbolic link

jbgury opened this issue · comments

Description

Functional tests do not run anymore on develop branch or master branch.
Travis CI performs the install operation. During the static resources collect from django, a circular reference of symbolic link is detected and causes exception.
The circular reference is on the momentjs dependency.

Expected behavior

Functional tests have to run correctly on the CI

Actual behavior

From one execution on the CI without change on the code, the dependency has circular symbolic link.

Analysis

Something changed on the process :

  • either the momentjs dependency is used with a buggy version
  • either the CI does not manage correctly this dependency

Analysis

Travis CI uses yarn v1.22.4 by default (the last published version). Great, but it causes some troubles.
When the step : python ./manage.py collectstatic --no-input is executed, the error
OSError: [Errno 40] Too many levels of symbolic links: '/home/travis/build/libreosteo/Libreosteo/libreosteoweb/static/components/moment/meteor/moment.js'

After analysis, the problem occurs from the v1.22.0.
This problem is known by yarnpkg/yarn#7890
The workaround of this issue is to switch and stay on the v1.21.1.

Readme has to be updated, on Debian unstable stream,the provided version for yarn is v1.22.1
An alternate solution has to be provided into Readme