Coder Social home page Coder Social logo

Comments (7)

jonathan-m-hamilton avatar jonathan-m-hamilton commented on August 17, 2024

Example 1
> @hyperledger/[email protected] test /home/travis/build/hyperledger-labs/blockchain-integration-framework 403> cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors tests/*.js --recursive --exit 404 405/home/travis/build/hyperledger-labs/blockchain-integration-framework/node_modules/mocha/node_modules/yargs/yargs.js:1163 406 else throw err 407 ^ 408 409Error: Cannot find module 'typedarray-to-buffer' 410 at Function.Module._resolveFilename (module.js:548:15) 411 at Function.Module._load (module.js:475:25) 412 at Module.require (module.js:597:17) 413 at require (internal/module.js:11:18) 414 at Object.<anonymous> (/home/travis/build/hyperledger-labs/blockchain-integration-framework/node_modules/web3-providers-ws/node_modules/websocket/lib/W3CWebSocket.js:18:16) 415 at Module._compile (module.js:653:30) 416 at Object.Module._extensions..js (module.js:664:10) 417 at Module.load (module.js:566:32)

from cacti.

jonathan-m-hamilton avatar jonathan-m-hamilton commented on August 17, 2024

Example 2 https://travis-ci.com/hyperledger-labs/blockchain-integration-framework/builds/136396597

from cacti.

jonathan-m-hamilton avatar jonathan-m-hamilton commented on August 17, 2024

Hopefully not as flaky as thought 😎

/home/travis/build/hyperledger-labs/blockchain-integration-framework/node_modules/mocha/node_modules/yargs/yargs.js:1163 400 else throw err 401 ^ 402 403Error: Cannot find module 'typedarray-to-buffer'

from cacti.

petermetz avatar petermetz commented on August 17, 2024

Clue: npm install and npm test both succeed on local ubuntu VM, but the missing dependency is highlighted as an issue there as well.

Some code in a dependency might be importing different packages at runtime based on some criteria that differentiates between the Travis CI VM and the local VM I'm testing with:

$ npm ls typedarray-to-buffer
@hyperledger-labs/[email protected] /REDACTED/blockchain-integration-framework
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └─┬ [email protected] invalid (git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2)
          └── UNMET DEPENDENCY typedarray-to-buffer@^3.1.2

npm ERR! invalid: [email protected] /REDACTED/blockchain-integration-framework/node_modules/web3-providers-ws/node_modules/websocket
npm ERR! missing: typedarray-to-buffer@^3.1.2, required by [email protected]

from cacti.

petermetz avatar petermetz commented on August 17, 2024

Tried upgrading web3 to latest stable but that has another issue that breaks dependencies (v1.2.3)
web3/web3.js#3210

Will try with web3 1.2.2

from cacti.

petermetz avatar petermetz commented on August 17, 2024

I tinkered with the travis build, had to update the web3 version from that beta release to a stable one and put in some shell code to ensure npm dependencies are installed in the example sub-projects as well (fabric/api, quorum/api)

There is still the issue of flakiness which is a different one, it appears to be in one of the unit tests, but that doesn't always fail, just sometimes.

For now I put the fixed up code here in a draft PR, will hopefully come up with something for the flaky unit test tomorrow:
#50

from cacti.

petermetz avatar petermetz commented on August 17, 2024

Web3 released a fix for the dependency issues in v1.2.3 this morning, going to use that:
https://github.com/ethereum/web3.js/releases

from cacti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.