Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-18413

Unit tests fail for release-1.4 node chaincode TestGenerateDockerBuild

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • v1.4.10
    • v1.4.11
    • fabric-peer
    • None
    • (Please add steps to reproduce)

    Description

       https://dev.azure.com/Hyperledger/Fabric/_build/results?buildId=29523&view=logs&jobId=d49d800b-0343-5c41-a4a2-8f9232282b0b&j=d49d800b-0343-5c41-a4a2-8f9232282b0b&t=f5793b6b-e295-5bc3-fe30-15e43b35cc3d

      Fails in CI and my local environment.

      --- FAIL: TestGenerateDockerBuild (0.97s)
          platform_test.go:206: Error returned from build: 7 "TypeError: Cannot destructure property `stat` of 'undefined' or 'null'.
                  at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/node-gyp/lib/index.js:2:29)
                  at Module._compile (module.js:653:30)
                  at Object.Module._extensions..js (module.js:664:10)
                  at Module.load (module.js:566:32)
                  at tryModuleLoad (module.js:506:12)
                  at Function.Module._load (module.js:498:3)
                  at Module.require (module.js:597:17)
                  at require (internal/module.js:11:18)
                  at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:4:55)
                  at Module._compile (module.js:653:30)
              /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js:163
                    throw new Error('call config.load() before reading values')
                    ^
              
              Error: call config.load() before reading values
                  at Config.get (/usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js:163:13)
                  at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:171:32)
                  at emitOne (events.js:116:13)
                  at process.emit (events.js:211:7)
                  at process._fatalException (bootstrap_node.js:391:26)
              "
      FAIL
      coverage: 81.9% of statements
      FAIL	github.com/hyperledger/fabric/core/chaincode/platforms/node	1.052s
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            denyeart David Enyeart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: