open-toolchain / cloud-native-toolchain-tutorial

4 stars 19 forks source link

Gulp needs updating for linting to be successful #59

Open azaceta opened 4 years ago

azaceta commented 4 years ago

The pipeline fails at the "Run Unit Test" step due to an error in fs.js, this is probably due to the node version not being compatible with gulp 3. To fix it (locally) I've:

Not sure how to contribute it to the project.

padraic-edwards commented 4 years ago

Thanks @azaceta - will take a look and fix.

finbarro commented 4 years ago

I have modified the files as suggested above by @azaceta , but I now get a different error.. `Pulling pipeline base image latest ... fs.js:27 const { Math, Object } = primordials; ^

ReferenceError: primordials is not defined at fs.js:27:26 at req_ (/home/pipeline/de3f0f2a-48ad-4fa9-add9-d7b65a0031a7/node_modules/natives/index.js:143:24) at Object.req [as require] (/home/pipeline/de3f0f2a-48ad-4fa9-add9-d7b65a0031a7/node_modules/natives/index.js:55:10) at Object. (/home/pipeline/de3f0f2a-48ad-4fa9-add9-d7b65a0031a7/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18)

Finished: FAILED`

azaceta commented 4 years ago

@finbarro that was the error for me before update gulp in the packages.json. Have you updated that one to ^4.0.0?

finbarro commented 4 years ago

Hi Asier, No, that was the error I got after I made the changes you suggested package.json and gulpfile.js in your OP. The error I got originally was pretty vague and unhelpful. Preparing to start the job... Pipeline image: latest Preparing the build artifacts... Pulling pipeline base image latest ... Finished: FAILED So, that is when I contacted once of the course creators who shared the link to your OP with me.... seems strange that I now get the error which your fix originally resolved! Cheers, Fin.

ludovic-gasc commented 4 years ago

Hi,

This pull request should fix this issue: https://github.com/open-toolchain/cloud-native-toolchain-tutorial-app/pull/4

Regards

ludovic-gasc commented 4 years ago

The merge request has been merged: https://github.com/open-toolchain/cloud-native-toolchain-tutorial-app/pull/4

For me, this issue can be now closed, all problems in this issue has been addressed.