Install minimum set of dependencies for dashboards-plugin integration tests #5335
Labels
backlog
Issues that the Dashboards core team is interested in pursuing but are not yet on the roadmap
enhancement
New feature or request
The security-dashboards-plugin has been facing issues when running integration tests on Github runners because the runners are running out of free disk space: opensearch-project/security-dashboards-plugin#1611
To resolve the issue, the security-dashboards-plugin Github action for integration tests is removing pre-installed software on the runners that are not needed to run the integration tests: opensearch-project/security-dashboards-plugin#1613
OSD core faced similar issues and was resolved by disabling watermarking: #5172
Is there a better solution than either of these approaches that can address the problem of using up too much space for integration tests?
The pseudo-code of the integration tests for security-dashboards-plugin is:
Is there a way to minimize step 6? Security-dashboards-plugin added a filter during the checkout in step 5 to omit the
cypress/
andtests/
directories. The cypress directory is over 650MB in this repo.After running
yarn osd bootstrap
, thenode_modules
directory is 1.4GB.I tried running
NODE_ENVIRONMENT=production yarn osd bootstrap
to only install prod dependencies, but this command fails witherror TS2688: Cannot find type definition file for 'node'.
.The text was updated successfully, but these errors were encountered: