OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] @opensearch-dashboards-test/opensearch-dashboards-test-library is causing bootstrap errors for dashboards-maps

Open derek-ho opened this issue 11 months ago • 2 comments

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:

  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):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

derek-ho avatar Feb 26 '24 18:02 derek-ho

@manasvinibs can you take a look here?

derek-ho avatar Feb 26 '24 18:02 derek-ho

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

manasvinibs avatar Feb 27 '24 18:02 manasvinibs