Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4622

Enable video recording in online editor tests

XMLWordPrintable

      Cypress tests fail on video recording with Google Chrome 89 on Mac OS because of bug in Cypress.

      The bug is already fixed but it is not yet released in the Cypress product.
      See https://github.com/cypress-io/cypress/pull/15295

      Goal: Enable video recorging when the fix is released.
      To enable, remove:

      "video": false
      

      from cypress.json in online-editor/it-tests/cypress.json
      from cypress.json in kie-editors-standalone/it-tests/cypress.json

      Error:

      @kogito-tooling/online-editor: Warning: We failed to record the video.
      @kogito-tooling/online-editor: 
      @kogito-tooling/online-editor: This error will not alter the exit code.
      @kogito-tooling/online-editor: 
      @kogito-tooling/online-editor: Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
      @kogito-tooling/online-editor: Conversion failed!
      @kogito-tooling/online-editor: 
      @kogito-tooling/online-editor:     at ChildProcess.<anonymous> (/Users/runner/Library/Caches/Cypress/6.1.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
      @kogito-tooling/online-editor:     at ChildProcess.emit (events.js:315:20)
      @kogito-tooling/online-editor: error Command failed with exit code 1.
      @kogito-tooling/online-editor:     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
      @kogito-tooling/online-editor: npm ERR! code ELIFECYCLE
      @kogito-tooling/online-editor: 
      @kogito-tooling/online-editor: npm ERR! errno 1
      @kogito-tooling/online-editor: Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
      @kogito-tooling/online-editor: npm ERR! @kogito-tooling/online-editor@0.8.4 cy:run: `yarn run cypress run -b chrome --project it-tests`
      @kogito-tooling/online-editor: Conversion failed!
      @kogito-tooling/online-editor: npm ERR! Exit status 1
      @kogito-tooling/online-editor:     at ChildProcess.<anonymous> (/Users/runner/Library/Caches/Cypress/6.1.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
      @kogito-tooling/online-editor: npm ERR! 
      @kogito-tooling/online-editor:     at ChildProcess.emit (events.js:315:20)
      @kogito-tooling/online-editor: npm ERR! Failed at the @kogito-tooling/online-editor@0.8.4 cy:run script.
      @kogito-tooling/online-editor:     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
      @kogito-tooling/online-editor: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      @kogito-tooling/online-editor: Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
      @kogito-tooling/online-editor: npm ERR! A complete log of this run can be found in:
      @kogito-tooling/online-editor: Conversion failed!
      @kogito-tooling/online-editor: npm ERR!     /Users/runner/.npm/_logs/2021-03-09T06_56_04_284Z-debug.log
      @kogito-tooling/online-editor:     at ChildProcess.<anonymous> (/Users/runner/Library/Caches/Cypress/6.1.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
      @kogito-tooling/online-editor:     at ChildProcess.emit (events.js:315:20)
      @kogito-tooling/online-editor:     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
      @kogito-tooling/online-editor: 25hinfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @kogito-tooling/online-editor: Error: Command failed with exit code 1: npm run cy:run
      @kogito-tooling/online-editor:     at makeError (/Users/runner/work/kogito-tooling/kogito-tooling/node_modules/start-server-and-test/node_modules/execa/lib/error.js:56:11)
      @kogito-tooling/online-editor:     at handlePromise (/Users/runner/work/kogito-tooling/kogito-tooling/node_modules/start-server-and-test/node_modules/execa/index.js:114:26)
      @kogito-tooling/online-editor: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @kogito-tooling/online-editor:     at processTicksAndRejections (internal/process/task_queues.js:97:5) {
      @kogito-tooling/online-editor:   command: 'npm run cy:run',
      @kogito-tooling/online-editor: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @kogito-tooling/online-editor:   exitCode: 1,
      @kogito-tooling/online-editor:   signal: undefined,
      @kogito-tooling/online-editor:   signalDescription: undefined,
      @kogito-tooling/online-editor:   stdout: undefined,
      @kogito-tooling/online-editor:   stderr: undefined,
      @kogito-tooling/online-editor:   failed: true,
      @kogito-tooling/online-editor:   timedOut: false,
      @kogito-tooling/online-editor:   isCanceled: false,
      @kogito-tooling/online-editor:   killed: false
      @kogito-tooling/online-editor: }
      @kogito-tooling/online-editor: error Command failed with exit code 1.
      @kogito-tooling/online-editor: error Command failed with exit code 1.
      @kogito-tooling/online-editor: Assertion failed: (0), function uv_close, file ../deps/uv/src/unix/core.c, line 187.
      lerna ERR! yarn run test:it exited 1 in '@kogito-tooling/online-editor'
      

              tdavid@redhat.com Tomas David
              tdavid@redhat.com Tomas David
              Jan Stastny Jan Stastny
              Jan Stastny Jan Stastny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: