Skip to content

Commit

Permalink
Bump dashboards reporting to version 3.0.0.0-alpha1
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Feb 25, 2025
1 parent c25ad29 commit 2c83328
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 50 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cypress-e2e-reporting-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ env:
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_VERSION: '3.0.0'
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0'
OPENSEARCH_VERSION: '3.0.0-alpha1'
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0-alpha1'
PLUGIN_NAME: dashboards-reporting

jobs:
Expand All @@ -17,8 +17,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
jdk: [ 11 ]
os: [ubuntu-latest]
jdk: [21]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/job-scheduler.zip"
shell: bash

- name: Install Reports Scheduler
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/reports-scheduler.zip"
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Checkout Dashboards Reporting Plugin in OpenSearch Dashboards Plugins Dir
uses: actions/checkout@v2
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- id: tool-versions
run: |
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
nohup yarn start --no-base-path --no-watch | tee dashboard.log &
working-directory: OpenSearch-Dashboards

- name : Check If OpenSearch Dashboards Is Ready
- name: Check If OpenSearch Dashboards Is Ready
if: ${{ runner.os == 'Linux' }}
run: |
if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
Expand Down
25 changes: 11 additions & 14 deletions .github/workflows/dashboards-reports-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on: [pull_request, push]
env:
PLUGIN_NAME: reportsDashboards
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: 'main'
OPENSEARCH_PLUGIN_VERSION: 3.0.0.0

OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0-alpha1'

jobs:
Get-CI-Image-Tag:
Expand All @@ -30,12 +29,12 @@ jobs:
uses: actions/checkout@v2
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }}
path: OpenSearch-Dashboards

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v2
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap and test
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
windows-build:
runs-on: windows-latest
steps:

# Enable longer filenames for windows
- name: Enable longer filenames
run: git config --system core.longpaths true
Expand All @@ -83,7 +81,7 @@ jobs:
uses: actions/checkout@v1
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }}
path: OpenSearch-Dashboards

- name: Setup Node
Expand All @@ -103,9 +101,9 @@ jobs:
- run: node -v
- run: yarn -v

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v1
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap
Expand All @@ -127,7 +125,6 @@ jobs:
yarn build
mv ./build/*.zip ./build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip
- name: Upload Artifact For Windows
uses: actions/[email protected]
with:
Expand All @@ -141,7 +138,7 @@ jobs:
uses: actions/checkout@v1
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }}
path: OpenSearch-Dashboards

- name: Setup Node
Expand All @@ -161,9 +158,9 @@ jobs:
- run: node -v
- run: yarn -v

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v1
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ftr-e2e-reporting-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ env:
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_VERSION: '3.0.0'
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0'
OPENSEARCH_VERSION: '3.0.0-alpha1'
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0-alpha1'
PLUGIN_NAME: dashboards-reporting

jobs:
Expand All @@ -17,8 +17,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
jdk: [ 11 ]
os: [ubuntu-latest]
jdk: [21]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/job-scheduler.zip"
shell: bash

- name: Install Reports Scheduler
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/reports-scheduler.zip"
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Checkout Dashboards Reporting Plugin in OpenSearch Dashboards Plugins Dir
uses: actions/checkout@v2
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- id: tool-versions
run: |
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
nohup yarn start --no-base-path --no-watch | tee dashboard.log &
working-directory: OpenSearch-Dashboards

- name : Check If OpenSearch Dashboards Is Ready
- name: Check If OpenSearch Dashboards Is Ready
if: ${{ runner.os == 'Linux' }}
run: |
if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/verify-binary-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Install Dashboards with Plugin via Binary'

on: [push, pull_request]
env:
OPENSEARCH_VERSION: '3.0.0'
OPENSEARCH_VERSION: '3.0.0-alpha1'
CI: 1
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
Expand All @@ -16,7 +16,7 @@ jobs:
os: [ubuntu-latest]
# TODO: add windows support when OSD core is stable on windows
runs-on: ${{ matrix.os }}
steps:
steps:
- name: Checkout Branch
uses: actions/checkout@v3

Expand All @@ -42,14 +42,14 @@ jobs:
built_plugin_name: reportsDashboards
built_plugin_suffix: ${{ env.OPENSEARCH_VERSION }}
install_zip: true

- name: Start the binary
run: |
run: |
nohup ./bin/opensearch-dashboards &
working-directory: ${{ steps.setup-dashboards.outputs.dashboards-binary-directory }}
shell: bash

- name: Health check
- name: Health check
run: |
timeout 300 bash -c 'while [[ "$(curl http://localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
shell: bash
shell: bash
20 changes: 5 additions & 15 deletions opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
{
"id": "reportsDashboards",
"version": "3.0.0.0",
"version": "3.0.0.0-alpha1",
"opensearchDashboardsVersion": "3.0.0",
"requiredPlugins": [
"navigation",
"data",
"opensearchDashboardsUtils"
],
"optionalPlugins": [
"share",
"dataSource",
"dataSourceManagement"
],
"requiredPlugins": ["navigation", "data", "opensearchDashboardsUtils"],
"optionalPlugins": ["share", "dataSource", "dataSourceManagement"],
"server": true,
"ui": true,
"configPath": [
"opensearch_reporting"
]
}
"configPath": ["opensearch_reporting"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reports-dashboards",
"version": "3.0.0.0",
"version": "3.0.0.0-alpha1",
"description": "OpenSearch Dashboards Reports Plugin",
"license": "Apache-2.0",
"main": "index.ts",
Expand Down

0 comments on commit 2c83328

Please sign in to comment.