Comments (7)
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.
Example 2 https://travis-ci.com/hyperledger-labs/blockchain-integration-framework/builds/136396597
from cacti.
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.
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.
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.
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.
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)
- Integrate SATP with BUNGEE HOT 1
- Update message formats to reflect latest SATP core version HOT 1
- Implement crash recovery for all SATP phases HOT 1
- Integrate Prometheus endpoints with Grafana for better monitoring HOT 1
- Implement POC for supporting drafts HOT 1
- Helper scripts to run SATP and examples HOT 1
- Dockerize SATP and update CBDC example on SATP HOT 1
- Create SATP server cluster with Kubernetes for redundancy and load balancing HOT 1
- Terraform definitions to create Kubernetes cluster in different infrastructure HOT 1
- Study Cacti nodes as solution to easily create consortia HOT 2
- Extend Cacti nodes and the consortium feature to support SATP HOT 3
- Define and document processes, including scripts for creating a consortium in the most automatic way as possible HOT 4
- Extend UI for applications using SATP HOT 1
- Allow blocking gateway-to-gateway requests
- Core SATP contracts
- Update BLO specification
- Add support for Cosmos chains/IBC ecosystem
- feat(connector-ebsi): add European Blockchain Services Infrastructure HOT 1
- Add support for the Polkadot ecosystem
- ci(github): add check to validate exported types being correct
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cacti.