[Sugar-devel] Build breakage in sugar-web

Manuel Quiñones manuq at laptop.org
Thu Aug 29 12:29:40 EDT 2013


2013/8/29 Daniel Narvaez <dwnarvaez at gmail.com>:
> Hello,
>
> as discussed in irc, the karma tests are failing
>
> http://buildbot.sugarlabs.org/builders/quick/builds/80/steps/shell_2/logs/modules
>
> The following fixes it for me
>
> diff --git a/test/karma.conf.js b/test/karma.conf.js
> index f8fb3cc..7d48693 100644
> --- a/test/karma.conf.js
> +++ b/test/karma.conf.js
> @@ -19,6 +19,9 @@ files = [
>          pattern: 'lib/**/*.js',
>          included: false
>      }, {
> +        pattern: 'graphics/*.html',
> +        included: false
> +    }, {
>          pattern: '**/*js',
>          exclude: 'test/**/*js',
>          included: false
> diff --git a/test/loader.js b/test/loader.js
> index a6019bf..7c83cc9 100644
> --- a/test/loader.js
> +++ b/test/loader.js
> @@ -8,7 +8,8 @@ requirejs.config({
>
>      paths: {
>          "sugar-web": ".",
> -        "mustache": "lib/mustache"
> +        "mustache": "lib/mustache",
> +        "text": "lib/text"
>      },
>
>      // ask Require.js to load these files (all our tests)

Thanks a lot Daniel.  My mistake was not running check.  Even if it
takes a while, it must be done always before sending a pull request.

> After that we run into another issue, js-beautify doesn't like
> menupalette.html. I tend to think the templates should not be run through
> js-beautify, they are not pure html... What about just renaming to
> .mustache? I was actually uncertain if I should suggest that during the
> review, maybe this is a good reason to do it.

So js-beautify does this with the html:

http://fpaste.org/35806/77925831/

It feels wrong to me, being it a template or not.  I think js-beautify
does a great job in js files, but for html and css it is doing more
harm than good for us.  I can open a bug, but should't we consider
disabling the check for html and css?.

I dislike the idea of renaming the html suffix to mustache.  We'll
lose syntax highlightning in editors and in github.

-- 
.. manuq ..


More information about the Sugar-devel mailing list