Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10513

Race condition with medic.json causing build failures

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • cordova-medic
    • windows, osx

    Description

      There appears to be a race condition of some sort with the medic.json file that causes builds to sometimes fail. Happens in Windows and OSX. Stack traces contained in links.

      ===
      Log Content:
      fs.js:500
      return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
      ^
      Error: ENOENT, no such file or directory 'mobilespec/www/medic.json'
      at Error (native)
      at Object.fs.openSync (fs.js:500:18)
      at Object.fs.writeFileSync (fs.js:1099:15)
      at createMedicJson (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:86:8)
      at /Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:356:9
      at Request.<anonymous> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:305:9)
      at Request.emit (events.js:107:17)
      at Request.onRequestResponse (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/node_modules/request/request.js:1156:10)
      at ClientRequest.emit (events.js:107:17)
      at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:426:21)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              riknoll Richard B Knoll
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: