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

Compatibility with OpenSearch 2.17.1 #422

Closed
4 tasks done
AlexRuiz7 opened this issue Sep 20, 2024 · 3 comments · Fixed by #530 or #541
Closed
4 tasks done

Compatibility with OpenSearch 2.17.1 #422

AlexRuiz7 opened this issue Sep 20, 2024 · 3 comments · Fixed by #530 or #541
Assignees
Labels
level/task Task issue request/operational Operational requests type/research Research issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Sep 20, 2024

Description

We need to ensure the compatibility with the next version of OpenSearch v2.17.1.
This update is still being discussed, but we need to be aware of potential issues.

For that, we need to:

  • Review opensearch's release notes.
  • Identify improvements and potential impact.
  • Create new development branch.
  • Develop a testing environment to verify our components would work under this new build.

Issues

  • List here the detected issues
@AlexRuiz7 AlexRuiz7 added level/task Task issue type/research Research issue request/operational Operational requests labels Sep 20, 2024
@wazuhci wazuhci moved this to Backlog in Release 5.0.0 Sep 20, 2024
@AlexRuiz7 AlexRuiz7 changed the title Compatibility with OpenSearch 2.17.0 Compatibility with OpenSearch 2.17.1 Oct 18, 2024
@AlexRuiz7 AlexRuiz7 assigned AlexRuiz7 and QU3B1M and unassigned QU3B1M Nov 6, 2024
@AlexRuiz7 AlexRuiz7 mentioned this issue Nov 8, 2024
3 tasks
@AlexRuiz7 AlexRuiz7 linked a pull request Nov 8, 2024 that will close this issue
3 tasks
@AlexRuiz7
Copy link
Member Author

AlexRuiz7 commented Nov 8, 2024

OpenSearch and OpenSearch Dashboards 2.17.1 Release Notes

  • Nothing worth noting on OpenSearch
  • Fixed [CVE-2024-45801] in OpenSearch Dashboards

@AlexRuiz7
Copy link
Member Author

AlexRuiz7 commented Nov 8, 2024

master~HEAD points to 98a6767

#!/bin/bash

export base="2.16.0"
export os_tag="2.17.1"
export from_branch="master"
export to_branch="${from_branch}-${os_tag}"
export pr_branch="migrate-${from_branch}-to-${os_tag}"

# Download latest changes from remotes
git fetch --all --tags

# Create temporal branches off the OpenSearch’s tag
git branch $to_branch refs/tags/$os_tag
git branch $pr_branch refs/tags/$os_tag

# Push the new branches to origin
git push -u origin $to_branch
git push -u origin $pr_branch

# ======= #

# Move to the working branch
git checkout $pr_branch

# Migrate the commits
git cherry-pick $base..$from_branch

# Check the number of commits before and after the migration is equal
previous=$(git rev-list $base..$from_branch --abbrev-commit | wc -l)
current=$(git rev-list $os_tag..$pr_branch --abbrev-commit | wc -l)

if [ "$current" -ne "$previous" ]
then
    echo "Commits count before and after the migration are not equal. Migration failed!"
    exit 1
fi

@wazuhci wazuhci moved this from Backlog to Pending review in Release 5.0.0 Nov 8, 2024
@wazuhci wazuhci moved this from Pending review to Pending final review in Release 5.0.0 Nov 8, 2024
@AlexRuiz7
Copy link
Member Author

@AlexRuiz7 AlexRuiz7 mentioned this issue Nov 12, 2024
3 tasks
@AlexRuiz7 AlexRuiz7 linked a pull request Nov 12, 2024 that will close this issue
3 tasks
@wazuhci wazuhci moved this from Pending final review to Done in Release 5.0.0 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue request/operational Operational requests type/research Research issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants