Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loose flag to OSD bootstrap #1787

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Feb 19, 2024

Description

Coming from: opensearch-project/OpenSearch-Dashboards#5675, this PR adds the flag to have loose single-version dependencies. Ideally this should not be enforced for devDependencies, but should unblock the build.

Category

CI fix.

Why these changes are required?

OSD core added a dependency to cypress 9.5.4 (mismatching with the version in this repo) here: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5725/files#r1494915750, leading to error at bootstrap.

What is the old behavior before changes and new behavior after changes?

Old behavior is that the bootstrap process would fail. OSD core added a dependency to cypress 9.5.4 in this PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5725/files#r1494915750. Since we need cypress 13 in order to run our test suites (including cross-origin support), bootstrapping the plugin with OSD fails since there is a version mismatch. With this new flag, this inconsistency is ignored and the CI is green.

Issues Resolved

Related to: #1786. However that issue is coming from autocuts. We need opensearch-build repo to take in this change to close the autocut.

Testing

Testing done via Github Actions

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho changed the title Add loose flag to unblock CI Add loose flag to OSD bootstrap Feb 19, 2024
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ab2b85c) 67.27% compared to head (b4738bc) 67.27%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1787   +/-   ##
=======================================
  Coverage   67.27%   67.27%           
=======================================
  Files          94       94           
  Lines        2408     2408           
  Branches      320      320           
=======================================
  Hits         1620     1620           
  Misses        711      711           
  Partials       77       77           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Derek Ho <dxho@amazon.com>
@DarshitChanpura DarshitChanpura merged commit 10646ab into opensearch-project:main Feb 19, 2024
16 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 19, 2024
Signed-off-by: Derek Ho <dxho@amazon.com>
(cherry picked from commit 10646ab)
cwperks pushed a commit that referenced this pull request Feb 20, 2024
Signed-off-by: Derek Ho <dxho@amazon.com>
(cherry picked from commit 10646ab)

Co-authored-by: Derek Ho <dxho@amazon.com>
@cwperks cwperks mentioned this pull request Mar 21, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants