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.19.0 #532

Merged
merged 64 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b2d946d
Compatibility with OpenSearch 2.11.1 (#131)
yenienserrano Dec 22, 2023
1ed6265
Add script test packages (#133)
yenienserrano Jan 2, 2024
b8ccbe8
140 update the repo with the latest changes of wazuh dashboard (#141)
yenienserrano Feb 20, 2024
c47ff69
Modify action to allow uploading artifact to S3 (#151)
Tostti Mar 20, 2024
e629060
Modify package generation actions (#157)
Tostti Apr 4, 2024
2931586
Remove unrequired bundle
Tostti Apr 5, 2024
b678107
Fix service
Tostti Apr 5, 2024
1b2d841
Fix reference in building workflow
Tostti Apr 16, 2024
2afa454
Fix tar error in build workflow (#168)
Tostti Apr 17, 2024
f90655b
Fix errors in package build workflow (#169)
Tostti Apr 19, 2024
5023eff
Add secret for aws region (#171)
Tostti Apr 24, 2024
f9e1268
Change default theme (#174)
Tostti May 10, 2024
4ebe9e6
Add ID input to workflows (#179)
rauldpm May 17, 2024
147725f
Fix css selector to login button (#181)
lucianogorza May 22, 2024
4381c84
Fix error generating packages in branches that contain `/` (#183)
Tostti May 23, 2024
eb6dd99
Add information to build workflow title (#188)
Tostti May 28, 2024
358d486
Build packages with docker (#185)
yenienserrano May 31, 2024
7d46bb4
Added S3 URI output to package generation upload (#190)
rauldpm Jun 5, 2024
fdbfa4b
Added missing name statement in package generation workflows (#191)
rauldpm Jun 6, 2024
2d66466
Added missing name statement in package generation workflows
Tostti Jun 19, 2024
9713a46
Sync 4.9.0 to 4.10.0 (#269)
yenienserrano Aug 19, 2024
5db6b08
Change the path to the name of the application to the logo redirectio…
yenienserrano Aug 30, 2024
945145e
Remove setting new home (#282)
yenienserrano Sep 3, 2024
7d66e59
Merge 4.9.1 into 4.10.0 (#306)
yenienserrano Sep 10, 2024
e78503c
Merge 4.9.1 into 4.10.0 (#322)
Desvelao Sep 23, 2024
a7b0a79
Bump 4.10.0 rev 01 (#323)
Desvelao Sep 24, 2024
36cf565
Bump 4.10.1 rev 00 (#328)
Desvelao Sep 25, 2024
f19df43
Bump 4.10.2 rev 00 (#342)
Tostti Oct 3, 2024
bc0bd9b
Merge 4.10.1 into 4.10.2 (#366)
Tostti Oct 17, 2024
026c378
Support arm packages generation (#376)
Tostti Oct 28, 2024
59f85ab
Merge 4.10.1 into 4.10.2 (#397)
Tostti Nov 5, 2024
d1c8b74
Add Dockerfile to obtain the necessary files locally (#391)
yenienserrano Nov 5, 2024
c4cd70d
Restore accidentally overwritten change (#402)
Tostti Nov 6, 2024
c58fe36
Merge 4.10.1 into 4.10.2 (#446)
Tostti Dec 16, 2024
7ab95f9
Review the action of building packages arm (#439)
guidomodarelli Dec 16, 2024
6f1b116
Remove additional changelog entry (#450)
Tostti Dec 17, 2024
cc9817c
Bump version to 4.10.3 (#456)
asteriscos Dec 19, 2024
84a93b2
Support Wazuh 4.12.0 rev 00 (#466)
Tostti Dec 20, 2024
c20e413
Fixes package building for arm architecture (#473)
yenienserrano Jan 8, 2025
334cfe2
Merge 4.11.0 into 4.12.0 (#480)
Tostti Jan 10, 2025
6629ca2
Merge 4.11.0 into 4.12.0 (#493)
Tostti Jan 17, 2025
4cda32e
Fix to construction of arm packages (#500)
yenienserrano Jan 28, 2025
30fdf45
Merge 4.11.0 into 4.12.0 (#512)
Tostti Feb 4, 2025
04af1f4
Fixed the creation of arm packages in the github action (#507)
yenienserrano Feb 5, 2025
737c062
Add darkmode property to chrome_service.tsx
yenienserrano Feb 18, 2025
5cf19ab
add export ui_settings home:useNewHomePage
yenienserrano Feb 18, 2025
8c7dad2
Fix test
yenienserrano Feb 18, 2025
651c296
fix(translations): interpolate appName variable into some strings
Desvelao Nov 18, 2024
9381417
Fix snapshot
yenienserrano Feb 19, 2025
0a13614
Commit for build test
yenienserrano Feb 19, 2025
3922344
Migrate versioning to JSON format and update build scripts (#529)
guidomodarelli Feb 19, 2025
4f99bed
Add translations file to wazuh-dashboard.spec
yenienserrano Feb 19, 2025
8cf1752
Update dev-tools/signoff-check.sh
yenienserrano Feb 20, 2025
21a37c3
Update docs/docker-dev/docker-dev-setup-manual.md
yenienserrano Feb 20, 2025
0cc58a6
Update docs/docker-dev/docker-dev-setup-manual.md
yenienserrano Feb 20, 2025
1c5f9c2
Update docs/docker-dev/docker-dev-setup-manual.md
yenienserrano Feb 20, 2025
272fe45
Update CHANGELOG.md
yenienserrano Feb 20, 2025
99b7b40
Update src/core/public/chrome/ui/header/home_icon.tsx
yenienserrano Feb 20, 2025
5611beb
Update src/core/public/chrome/ui/header/home_icon.tsx
yenienserrano Feb 20, 2025
345575a
Update src/core/public/chrome/ui/header/home_icon.test.tsx
yenienserrano Feb 20, 2025
6e2584f
Update src/core/public/chrome/ui/header/home_icon.test.tsx
yenienserrano Feb 20, 2025
b1203d7
Update src/core/public/chrome/ui/header/home_icon.test.tsx
yenienserrano Feb 20, 2025
23a1fa6
Revert "Commit for build test"
yenienserrano Feb 20, 2025
7ec81e1
Fix snapshot
yenienserrano Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/compatibility_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Compatibility request
about: Suggest supporting a new version of OpenSearch
title: 'Compatibility with OpenSearch (version)'
labels: compatibility, level/task, type/research
assignees: ''

---

## Description
We need to ensure the UI compatibility with the next version of OpenSearch vX.X.
This update is still being discussed, but we need to be aware of potential issues.

For that, we need to:

- [ ] Review opensearch and opensearch-dashboard latest stable changelog.
- [ ] Identify improvements and potential impact on the UI.
- [ ] Create new tracking and development branches.
- [ ] Develop a testing environment to verify our components would work under this new build.


## Issues
- _List here the detected issues_
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/new_release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: New release
about: "[wazuh-team] Track the effort of the team to release a new version of Wazuh"
title: Support for Wazuh 4.x.x
labels: level/task, type/enhancement
assignees: ''

---

## Description

Example:
> Wazuh 4.3.8 will be released shortly. Our Wazuh Dashboard app need to support this new version. From our side, no changes will be included, so we only need to bump the version.


## Tasks

### Pre-release
- [ ] Add support for Wazuh 4.x.x (bump).
- [ ] Generate the required tags.
- [ ] Generate the packages.
- [ ] Test the packages, to verify they install, and the app works as expected.
- [ ] [Optional] Run Regression Testing (#issue)
- [ ] Generate draft releases.
- [ ] Notify the @wazuh/cicd and @wazuh/content teams that the release is good to go, from our side.

### Post-release
- [ ] Make draft releases final and public.
- [ ] Sync branches.

### Supported versions

Same as on [previous releases](https://github.com/wazuh/wazuh-dashboard/wiki/Compatibility)
38 changes: 21 additions & 17 deletions .github/workflows/build_and_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
disk-root: "C:"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup JDK (Windows only)
if: matrix.os == 'windows-latest'
Expand All @@ -72,7 +72,7 @@ jobs:
distribution: 'adopt'

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -88,7 +88,7 @@ jobs:
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
uses: actions/cache@v4
if: matrix.os != 'windows-latest'
with:
path: ${{ env.YARN_CACHE_LOCATION }}
Expand Down Expand Up @@ -178,8 +178,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
os: [ubuntu-latest] #Removed 'windows-latest'
group: [1, 2, 4, 6, 7, 8, 9, 10, 11, 13]
include:
- os: ubuntu-latest
name: Linux
Expand All @@ -203,7 +203,7 @@ jobs:
disk-root: "C:"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup JDK (Windows only)
if: matrix.os == 'windows-latest'
Expand All @@ -213,7 +213,7 @@ jobs:
distribution: 'adopt'

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -229,7 +229,7 @@ jobs:
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
uses: actions/cache@v4
if: matrix.os != 'windows-latest'
with:
path: ${{ env.YARN_CACHE_LOCATION }}
Expand Down Expand Up @@ -289,6 +289,7 @@ jobs:
path: |
test/*/failure_debug/
test/*/screenshots/
overwrite: true

plugin-functional-tests:
name: Run plugin functional tests on ${{ matrix.name }}
Expand Down Expand Up @@ -319,7 +320,7 @@ jobs:
disk-root: "C:"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup JDK (Windows only)
if: matrix.os == 'windows-latest'
Expand All @@ -329,7 +330,7 @@ jobs:
distribution: 'adopt'

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -345,7 +346,7 @@ jobs:
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
uses: actions/cache@v4
if: matrix.os != 'windows-latest'
with:
path: ${{ env.YARN_CACHE_LOCATION }}
Expand Down Expand Up @@ -400,6 +401,7 @@ jobs:
path: |
test/*/failure_debug/
test/*/screenshots/
overwrite: true

build-min-artifact-tests:
name: Build min release artifacts on ${{ matrix.name }}
Expand Down Expand Up @@ -451,12 +453,12 @@ jobs:
disk-root: "C:"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ./artifacts

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: './artifacts/.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -472,7 +474,7 @@ jobs:
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
uses: actions/cache@v4
if: matrix.os != 'windows-latest'
with:
path: ${{ env.YARN_CACHE_LOCATION }}
Expand Down Expand Up @@ -512,6 +514,7 @@ jobs:
name: ${{ matrix.suffix }}-${{ env.VERSION }}
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }}
retention-days: 1
overwrite: true

bwc-tests:
needs: [build-min-artifact-tests]
Expand All @@ -528,15 +531,15 @@ jobs:
version: [osd-2.0.0, osd-2.1.0, osd-2.2.0, osd-2.3.0, osd-2.4.0, osd-2.5.0, osd-2.6.0, osd-2.7.0, osd-2.8.0, osd-2.9.0]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ./artifacts

- run: echo Running backwards compatibility tests for version ${{ matrix.version }}
- run: echo [NOTE] These tests will be ran using Linux x64 release builds without security

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: './artifacts/.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand Down Expand Up @@ -571,7 +574,7 @@ jobs:
run: echo "BWC_VERSIONS=${{ matrix.version }}" >> $GITHUB_ENV

- name: Download OpenSearch Dashboards
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
id: download
with:
name: linux-x64-${{ env.VERSION }}
Expand All @@ -592,3 +595,4 @@ jobs:
./artifacts/bwc_tmp/test/cypress/screenshots/*
./artifacts/bwc_tmp/test/cypress/results/*
retention-days: 1
overwrite: true
98 changes: 98 additions & 0 deletions .github/workflows/build_base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# This is a basic workflow that is manually triggered

name: Build base

on:
workflow_call:
inputs:
CHECKOUT_TO: # This is the branch to checkout to. Defaults to 'master'
description: 'The branch/tag/commit to checkout to'
required: true
default: ''
type: string
ARCHITECTURE:
description: 'The architecture to build the package for'
required: true
default: 'amd64'
type: string

workflow_dispatch:
inputs:
CHECKOUT_TO: # This is the branch to checkout to. Defaults to 'master'
description: 'The branch/tag/commit to checkout to'
required: true
default: ''
ARCHITECTURE:
description: 'The architecture to build the package for'
required: true
default: 'amd64'
type: string

jobs:
build:
runs-on: ${{ (inputs.ARCHITECTURE == 'x86_64' || inputs.ARCHITECTURE == 'amd64') && 'ubuntu-latest' || 'wz-linux-arm64' }}
name: Build
defaults:
run:
working-directory: ./artifacts
strategy:
matrix:
DISTRIBUTION: [tar.gz]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: wazuh/wazuh-dashboard
path: ./artifacts
ref: ${{ inputs.CHECKOUT_TO }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: './artifacts/.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g [email protected]
yarn config set network-timeout 1000000 -g

- name: Configure Yarn Cache
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v4
with:
path: ${{ env.YARN_CACHE_LOCATION }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-

- name: Get package version
run: |
echo "VERSION=$(yarn --silent pkg-version)" >> $GITHUB_ENV
echo "WZD_VERSION=$(yarn --silent wzd-version)" >> $GITHUB_ENV
echo "WZD_REVISION=$(yarn --silent wzd-revision)" >> $GITHUB_ENV

- name: Get artifact build name
run: |
echo "ARTIFACT_BUILD_NAME=wazuh-dashboard_${{ env.WZD_VERSION }}-${{ env.WZD_REVISION }}_${{ (inputs.ARCHITECTURE == 'x86_64' || inputs.ARCHITECTURE == 'amd64') && 'x64' || 'arm64' }}.${{ matrix.DISTRIBUTION }}" >> $GITHUB_ENV

- name: Run bootstrap
run: yarn osd bootstrap

- name: Build
run: yarn build-platform --${{(inputs.ARCHITECTURE == 'x86_64' || inputs.ARCHITECTURE == 'amd64') && 'linux' || 'linux-arm'}} --skip-os-packages --release

- name: Rename artifact
run: mv /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/opensearch-dashboards-${{ env.VERSION }}-linux-${{ (inputs.ARCHITECTURE == 'x86_64' || inputs.ARCHITECTURE == 'amd64') && 'x64' || 'arm64' }}.${{ matrix.DISTRIBUTION }} /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/${{ env.ARTIFACT_BUILD_NAME }}

- uses: actions/upload-artifact@v4
if: success()
with:
name: ${{ env.ARTIFACT_BUILD_NAME }}
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }}
retention-days: 30
overwrite: true
Loading
Loading