mercredi 2 mai 2018

Ember test fails in VSO user agent machine but passes in dev box

Ember test passes in my dev box but it fails when I pushed the solution to VSO.
Local box version uses Node V8.10.0 NPM 5.7.1 
User agent machines uses node/v6.9.2 npm/4.4.1
I am not sure if this is related to node version difference but the test used to pass all the time. I have not changed the package.json or the tests.

I noticed a warning ember-cli-babel has been deprecated. Please upgrade to at least ember-cli-bable 6.6 version. Not sure I need to upgrade this.

Here is my package.json

{     
  "devDependencies": {
    "active-model-adapter": "2.1.1",
    "broccoli-asset-rev": "2.7.0",
    "ember-ajax": "0.7.1",
    "ember-cli": "2.4.2",
    "ember-cli-app-version": "1.0.1",
    "ember-cli-babel": "5.2.8",
    "ember-cli-blanket": "0.9.10",
    "ember-cli-content-security-policy": "0.4.0",
    "ember-cli-dependency-checker": "1.4.0",
    "ember-cli-htmlbars": "1.3.4",
    "ember-cli-htmlbars-inline-precompile": "0.3.13",
    "ember-cli-ic-ajax": "0.2.1",
    "ember-cli-inject-live-reload": "1.7.0",
    "ember-cli-qunit": "1.4.2",
    "ember-cli-release": "0.2.8",
    "ember-cli-sass": "5.5.1",
    "ember-cli-spinjs": "1.3.0",
    "ember-cli-sri": "2.1.1",
    "ember-cli-uglify": "1.2.0",
    "ember-data": "2.14.10",
    "ember-disable-proxy-controllers": "1.0.1",
    "ember-export-application-global": "1.1.1",
    "ember-getowner-polyfill": "1.2.5",
    "ember-ic-you": "0.1.5",
    "ember-in-viewport": "2.1.1",
    "ember-lazy-image": "0.0.15",
    "ember-load-initializers": "0.5.1",
    "ember-modal-dialog": "0.8.8",
    "ember-resolver": "2.1.1",
    "ember-simple-auth": "1.1.0-beta.3",
    "ember-truth-helpers": "1.2.0",
    "loader.js": "4.6.0",
    "modernizr": "3.0.0-alpha.4"
  }
}


Below is the error that I am getting in VSO

2018-05-01T02:08:18.0622840Z         actual: >
2018-05-01T02:08:18.0622935Z             null
2018-05-01T02:08:18.0623053Z         stack: >
2018-05-01T02:08:18.0623162Z             http://localhost:7357/assets/test-support.js:12742:21
2018-05-01T02:08:18.0623287Z             _setupContainer@http://localhost:7357/assets/test-support.js:13628:65
2018-05-01T02:08:18.0623431Z             _setupIntegratedContainer@http://localhost:7357/assets/test-support.js:13663:27
2018-05-01T02:08:18.0623586Z             setupContainer@http://localhost:7357/assets/test-support.js:13487:39
2018-05-01T02:08:18.0623910Z             http://localhost:7357/assets/test-support.js:12541:30
2018-05-01T02:08:18.0624038Z             initializePromise@http://localhost:7357/assets/vendor.js:63149:15
2018-05-01T02:08:18.0624187Z             Promise@http://localhost:7357/assets/vendor.js:64999:38
2018-05-01T02:08:18.0624310Z             nextStep@http://localhost:7357/assets/test-support.js:12540:52
2018-05-01T02:08:18.0624436Z             invokeSteps@http://localhost:7357/assets/test-support.js:12547:22
2018-05-01T02:08:18.0624580Z             setup@http://localhost:7357/assets/test-support.js:12497:30
2018-05-01T02:08:18.0624704Z             setup@http://localhost:7357/assets/test-support.js:12271:28
2018-05-01T02:08:18.0624827Z             callHook@http://localhost:7357/assets/test-support.js:2727:24
2018-05-01T02:08:18.0624982Z             runHook@http://localhost:7357/assets/test-support.js:2720:13
2018-05-01T02:08:18.0625114Z             process@http://localhost:7357/assets/test-support.js:2487:24
2018-05-01T02:08:18.0625392Z             begin@http://localhost:7357/assets/test-support.js:2469:9
2018-05-01T02:08:18.0625539Z             http://localhost:7357/assets/test-support.js:2529:9
2018-05-01T02:08:18.0625647Z         message: >
2018-05-01T02:08:18.0625795Z             Promise rejected before follow button renders for authenticated user and for the leaf level forum: undefined is not a constructor (evaluating 'setupContainer(registry || container)')
2018-05-01T02:08:18.0625953Z         Log: |
2018-05-01T02:08:18.0626043Z     ...


I tried installing ember-cli-sass@latest and installed dependencies  broccoli-sass-source-maps@latest and node-sass@latest. The test passes but website display nothing due to error related to this change. 

This test was passing with out any update, recently it start failing, I don't know what part needs update.

Can you help what I am missing or needs to update?




Aucun commentaire:

Enregistrer un commentaire