This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Open
Description
Hi All,
We have noticed that when running sql workbench integration test in our release workflows.
yarn kbn bootstrap
need to run twice in sql workbench to work.
The first run is always a failure and the second run will success.
The 1st run will always have this error:
error An unexpected error occurred: "ENOENT: no such file or directory, lstat 'D:\\a\\opendistro-build\\opendistro-build\\kibana\\packages\\kbn-ui-framework\\node_modules\\uuid'".
info If you think this is a bug, please open a bug report with the information provided in "D:\\a\\opendistro-build\\opendistro-build\\kibana\\plugins\\sql-workbench\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: C:\npm\prefix\node_modules\yarn\bin\yarn.js install --non-interactive
at makeError (D:\a\opendistro-build\opendistro-build\kibana\packages\kbn-pm\dist\index.js:25236:11)
at handlePromise (D:\a\opendistro-build\opendistro-build\kibana\packages\kbn-pm\dist\index.js:24171:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
child_process.js:669
throw err;
^
Error: Command failed: cd ./kibana/plugins/sql-workbench && dir && yarn kbn bootstrap
at checkExecSyncError (child_process.js:629:11)
at execSync (child_process.js:666:13)
at run (D:\a\_actions\nick-invision\retry\v1\dist\exec.js:5:3)
at Object.<anonymous> (D:\a\_actions\nick-invision\retry\v1\dist\exec.js:8:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
We have to use retry this step in our workflow to get the integration test running correctly.
Please consider fix this issue from the root as retrying is not a proper solution for us.
Thank you very much.