opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.64k stars 855 forks source link

[BUG] Windows builds failing #5688

Open derek-ho opened 7 months ago

derek-ho commented 7 months ago

Describe the bug

I am trying to build OSD on a windows github runner and getting the following error:

info [  opensearch-dashboards  ] Cleaning npm from node
   │ debg Deleting patterns: [
   │        'D:/a/security-dashboards-plugin/security-dashboards-plugin/OpenSearch-Dashboards/build/opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64/node/**/node_modules',
   │        'D:/a/security-dashboards-plugin/security-dashboards-plugin/OpenSearch-Dashboards/build/opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64/node/**/npm*',
   │        'D:/a/security-dashboards-plugin/security-dashboards-plugin/OpenSearch-Dashboards/build/opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64/node/**/npx*',
   │        'D:/a/security-dashboards-plugin/security-dashboards-plugin/OpenSearch-Dashboards/build/opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64/node/**/corepack*',
   │        'D:/a/security-dashboards-plugin/security-dashboards-plugin/OpenSearch-Dashboards/build/opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64/node/**/nodevars*'
   │      ]
   │ERROR failure 1 sec
   │ERROR Error: EPERM: operation not permitted, rmdir 'D:\a\security-dashboards-plugin\security-dashboards-plugin\OpenSearch-Dashboards\build\opensearch-dashboards-3.0.0-SNAPSHOT-windows-x64\node\fallback\node_modules\npm\node_modules\parallel-transform\node_modules\readable-stream'

Not sure if this is an issue with the build or with my github runner env? I also do see some windows failures on jenkins, although they seem to be slightly different, example: https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch-dashboards/detail/distribution-build-opensearch-dashboards/7090/pipeline error:

 info [  opensearch-dashboards  ] Cleaning all empty folders recursively
   │ debg Deleting all empty folders and their children recursively starting on  C:\Users\ContainerAdministrator\tmpe_yejzqg\OpenSearch-Dashboards\build\opensearch-dashboards
   │ERROR failure 16 sec
   │ERROR Error: EPERM: operation not permitted, scandir 'C:\Users\ContainerAdministrator\tmpe_yejzqg\OpenSearch-Dashboards\build\opensearch-dashboards\src\plugins\data_source_management\public\components'

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

OpenSearch Version Please list the version of OpenSearch being used.

Dashboards Version Please list the version of OpenSearch Dashboards being used.

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

kavilla commented 6 months ago

@AMoo-Miki can you find the parent issue for this!