forked from opensearch-project/dashboards-reporting
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update GitHub Actions to use checkout@v4 for consistency and improved functionality across workflows * Downgrade actions/checkout from v4 to v3 for consistent versioning across Cypress and FTR workflows * Update actions/checkout to v4 in workflows * Downgrade actions/checkout from v4 to v3 in Cypress and FTR workflows for consistent versioning and setup * Update actions/upload-artifact to v4 and enable overwrite for GitHub artifact uploads * Update actions/setup-node to v4 across all workflows to ensure consistency and benefit from latest features * Update tibdex/github-app-token to v2.1.0 and adjust installation retrieval settings for improved flexibility in workflows * Update actions/setup-java to v4 in cypress and ftr workflows for consistency and access to latest improvements * Update suisei-cn/actions-download-file to v1.6.0 in cypress and ftr workflows for consistent artifact management * Add 'temurin' distribution to JDK setup in cypress and ftr workflows for improved consistency * Upgrade download-file action to v3 in cypress and ftr workflows for enhanced performance and consistency * Replace download-file action with wget command in cypress and ftr workflows for improved reliability in OpenSearch download * Replace download-file action with wget command in cypress workflow for improved reliability in OpenSearch artifact downloads * Check for existing files before downloading OpenSearch artifacts in cypress and ftr workflows to avoid redundant downloads * Adjust existence check to directories instead of files for downloading OpenSearch artifacts in cypress and ftr workflows * Refactor artifact download logic to ensure consistent execution in cypress and ftr workflows by removing existence checks * Update retry action version to v2.9.0 for OpenSearch Dashboards plugin bootstrap and test in workflows * Fix retry action reference in workflows to use single '@' for v2.9.0 in dashboards reports test and build workflow * Update codecov action version to v4.6.0 for improved coverage reporting in dashboards reports test and build workflow * Streamline mkdir usage in workflows by removing redundant checks for plugin-artifacts directory creation * Downgrade codecov action to v3 to address compatibility issues in dashboards reports test and build workflow * Upgrade release-drafter action to v6 for better draft release notes handling in workflows * Upgrade start-opensearch action to v6 for enhanced functionality in binary installation verification workflow * Upgrade setup-opensearch-dashboards action to v3 for improved dashboard setup in binary installation verification workflow * Upgrade actions/checkout to v4 for enhanced functionality in Cypress and FTR E2E reporting test workflows
- Loading branch information
1 parent
f09ab39
commit 1164c4b
Showing
9 changed files
with
64 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,14 @@ jobs: | |
steps: | ||
- name: GitHub App token | ||
id: github_app_token | ||
uses: tibdex/github-app-token@v1.5.0 | ||
uses: tibdex/github-app-token@v2.1.0 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
installation_id: 22958780 | ||
# https://github.com/tibdex/github-app-token/releases/tag/v2.0.0 | ||
# https://github.com/tibdex/github-app-token/compare/v1.5.0...v2.1.0#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R11-R30 | ||
installation_retrieval_mode: id | ||
installation_retrieval_payload: 22958780 | ||
|
||
- name: Backport | ||
uses: VachaShah/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,28 +23,27 @@ jobs: | |
|
||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.jdk }} | ||
|
||
- name: Download Job Scheduler artifact | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip | ||
target: plugin-artifacts/ | ||
filename: job-scheduler.zip | ||
run: | | ||
mkdir -p plugin-artifacts | ||
wget -O plugin-artifacts/job-scheduler.zip "https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip" | ||
shell: bash | ||
|
||
- name: Download Reports Scheduler artifact | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-reports-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip | ||
target: plugin-artifacts/ | ||
filename: reports-scheduler.zip | ||
run: | | ||
mkdir -p plugin-artifacts | ||
wget -O plugin-artifacts/reports-scheduler.zip "https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-reports-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip" | ||
shell: bash | ||
|
||
- name: Download OpenSearch | ||
uses: peternied/download-file@v2 | ||
with: | ||
url: https://artifacts.opensearch.org/snapshots/core/opensearch/${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/opensearch-min-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT-linux-x64-latest.tar.gz | ||
run: | | ||
wget 'https://artifacts.opensearch.org/snapshots/core/opensearch/${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/opensearch-min-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT-linux-x64-latest.tar.gz' --retry-connrefused --tries=3 --no-dns-cache --progress=bar:force:noscroll --verbose | ||
shell: bash | ||
|
||
- name: Extract OpenSearch | ||
run: | | ||
|
@@ -79,18 +78,15 @@ jobs: | |
shell: bash | ||
|
||
- name: Checkout OpenSearch Dashboards | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenSearch-Dashboards | ||
repository: opensearch-project/OpenSearch-Dashboards | ||
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} | ||
fetch-depth: 0 | ||
filter: | | ||
cypress | ||
test | ||
|
||
- name: Checkout Dashboards Reporting Plugin in OpenSearch Dashboards Plugins Dir | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} | ||
|
||
|
@@ -101,7 +97,7 @@ jobs: | |
working-directory: OpenSearch-Dashboards | ||
shell: bash | ||
|
||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.tool-versions.outputs.node_version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,28 +23,27 @@ jobs: | |
|
||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.jdk }} | ||
|
||
- name: Download Job Scheduler artifact | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip | ||
target: plugin-artifacts/ | ||
filename: job-scheduler.zip | ||
run: | | ||
mkdir -p plugin-artifacts | ||
wget -O plugin-artifacts/job-scheduler.zip "https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip" | ||
shell: bash | ||
|
||
- name: Download Reports Scheduler artifact | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-reports-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip | ||
target: plugin-artifacts/ | ||
filename: reports-scheduler.zip | ||
run: | | ||
mkdir -p plugin-artifacts | ||
wget -O plugin-artifacts/reports-scheduler.zip "https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-reports-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip" | ||
shell: bash | ||
|
||
- name: Download OpenSearch | ||
uses: peternied/download-file@v2 | ||
with: | ||
url: https://artifacts.opensearch.org/snapshots/core/opensearch/${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/opensearch-min-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT-linux-x64-latest.tar.gz | ||
run: | | ||
wget 'https://artifacts.opensearch.org/snapshots/core/opensearch/${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/opensearch-min-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT-linux-x64-latest.tar.gz' --retry-connrefused --tries=3 --no-dns-cache --progress=bar:force:noscroll --verbose | ||
shell: bash | ||
|
||
- name: Extract OpenSearch | ||
run: | | ||
|
@@ -79,18 +78,15 @@ jobs: | |
shell: bash | ||
|
||
- name: Checkout OpenSearch Dashboards | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenSearch-Dashboards | ||
repository: opensearch-project/OpenSearch-Dashboards | ||
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} | ||
fetch-depth: 0 | ||
filter: | | ||
cypress | ||
test | ||
|
||
- name: Checkout Dashboards Reporting Plugin in OpenSearch Dashboards Plugins Dir | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} | ||
|
||
|
@@ -101,7 +97,7 @@ jobs: | |
working-directory: OpenSearch-Dashboards | ||
shell: bash | ||
|
||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.tool-versions.outputs.node_version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
@@ -137,7 +133,7 @@ jobs: | |
working-directory: OpenSearch-Dashboards | ||
|
||
- name: Checkout Dashboards Functioanl Test Repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: opensearch-dashboards-functional-test | ||
repository: opensearch-project/opensearch-dashboards-functional-test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters