You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by jun aoki <ja...@apache.org> on 2015/11/24 20:43:56 UTC

trunk job keeps failing

Hi Ambari community,

I found that trunk-commit job keeps either failing or timing out.
I've observed 3 issues.
1. job execution timeout at 2hr and 30mins. This is something I can take up
and increase the timeout limit.

2. ambari-web test failing due to SyntaxError: Use of const in strict mode [1].
relatively new keyword "const" in ECMAScript is used in brunch lib, which I
am guessing our nodejs version is not compatible with.
You find the failure here
https://builds.apache.org/view/A-D/view/Ambari/job/Ambari-trunk-Commit/3885/consoleFull

3. ambari-web is failing due to brunch and node version incompatibility.
You find this here
https://builds.apache.org/view/A-D/view/Ambari/job/Ambari-trunk-Commit/3886/consoleFull


Can someone insightful help 2 and 3?




[1] error due to const in strict mode

/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/contrib/views/node.js/target/lib/node_modules/brunch/lib/cli.js:3
const program = require('commander');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous>
(/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/contrib/views/node.js/target/lib/node_modules/brunch/bin/brunch:11:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)




[2] brunch 2+ requires node v4.0

Error: Brunch 2+ requires node v4.0+. Upgrade node or use older brunch
for old node.js: npm i -g brunch@1
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (set-ambari-version) @ ambari-web ---
Setting Ambari version to 2.0.0.0
/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-web/set-ambari-version.sh:
24: /home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-web/set-ambari-version.sh:
cannot create public/javascripts/tmp.js: Directory nonexistent
mv: cannot stat 'public/javascripts/tmp.js': No such file or directory


-- 
-jun