caliper-benchmarks icon indicating copy to clipboard operation
caliper-benchmarks copied to clipboard

certain issues in the build do not fail the build

Open davidkel opened this issue 3 years ago • 0 comments

For example

2022.07.01-11:14:58.460 error [caliper] [connectors/v2/FabricGateway] 	Failed to perform query transaction [paginatedRichQuery] using arguments [{"selector":{"docType":"fixed-asset","creator":"client_nomatch","byteSize":1000}},2],  with error: Error: Incorrect number of params. Expected 3, received 2
    at RoundRobinQueryHandler.evaluate (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/fabric-network/lib/impl/query/roundrobinqueryhandler.js:60:57)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Transaction.evaluate (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/fabric-network/lib/transaction.js:319:25)
    at async V2FabricGateway._submitOrEvaluateTransaction (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/connector-versions/v2/FabricGateway.js:384:26)
    at async V2FabricGateway._sendSingleRequest (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/connector-versions/v2/FabricGateway.js:168:16)
    at async V2FabricGateway.sendRequests (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/core/connector-base.js:83:26)
    at async RangeQueryAssetWorkload.submitTransaction (/home/runner/work/caliper-benchmarks/caliper-benchmarks/benchmarks/api/fabric/workloads/rich-query-asset.js:86:9)

or

2022.07.01-11:16:55.480 error [caliper] [worker-message-handler] 	Error while handling "prepare" message for Worker#1 (21808): Error: Module "/home/runner/work/caliper-benchmarks/caliper-benchmarks/benchmarks/api/fabric/workloads/compositeTx/read-write-asset.js" could not be loaded: Error: Cannot find module '/home/runner/work/caliper-benchmarks/caliper-benchmarks/benchmarks/api/fabric/workloads/compositeTx/read-write-asset.js'
Require stack:
- /home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/utils/caliper-utils.js
- /home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/core/connector-base.js
- /home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/index.js
- /home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-cli/caliper.js
Searched paths: /home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/utils/node_modules,/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/node_modules,/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/node_modules,/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/node_modules,/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/node_modules,/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules,/home/runner/work/caliper-benchmarks/node_modules,/home/runner/work/node_modules,/home/runner/node_modules,/home/node_modules,/node_modules
    at Function.loadModule (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/utils/caliper-utils.js:118:19)
    at Function.loadModuleFunction (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/utils/caliper-utils.js:160:35)
    at CaliperWorker.prepareTest (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/worker/caliper-worker.js:151:52)
    at WorkerMessageHandler._handlePrepareMessage (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/worker/worker-message-handler.js:210:31)
    at ProcessMessenger.<anonymous> (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/worker/worker-message-handler.js:89:24)
    at ProcessMessenger.emit (events.js:400:28)
    at ProcessMessenger.onMessage (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/messengers/messenger-interface.js:40:14)
    at process.<anonymous> (/home/runner/work/caliper-benchmarks/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/messengers/process/process-messenger.js:59:26)
    at process.emit (events.js:400:28)
    at emit (internal/child_process.js:935:14)

davidkel avatar Jul 01 '22 14:07 davidkel