OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[BUG] @opensearch-dashboards-test/opensearch-dashboards-test-library is causing bootstrap errors for dashboards-maps
Describe the bug
Adding a dependency on @opensearch-dashboards-test/opensearch-dashboards-test-library is causing bootstrap issues for dashboards maps plugin. It seems that this dependency was introduced in this PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5725.
When bootstrapping the dashboards, the following error shows up:
ERROR [single_version_dependencies] Multiple version ranges for the same dependency
were found declared across different package.json files. Please consolidate
those to match across all package.json files. Different versions for the
same dependency is not supported.
If you have questions about this please reach out to the operations team.
The conflicting dependencies are:
@opensearch-dashboards-test/opensearch-dashboards-test-library
https://github.com/opensearch-project/opensearch-dashboards-test-library/archive/refs/tags/1.0.6.tar.gz => opensearch-dashboards
git+https://github.com/opensearch-project/opensearch-dashboards-test-library.git#main => customImportMap
Even with the --single-version=loose
flag. I am wondering if this has anything to do with the way it is being introduced, as a archive tar file.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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):
- OS: [e.g. iOS]
- Browser and version [e.g. 22]
Additional context
Add any other context about the problem here.
@manasvinibs can you take a look here?
We have follow-up task to remove dependency on this test library which was introduced as part of Cypress tests configuration. Will be addressed as part of this https://github.com/opensearch-project/OpenSearch-Dashboards/issues/5892