From ad96808067ff07266e4a53ae3559a0f8d491cb0f Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Thu, 7 Nov 2024 11:28:21 -0300 Subject: [PATCH] Replace download-file action with wget command in cypress workflow for improved reliability in OpenSearch artifact downloads --- .github/workflows/cypress-e2e-reporting-test.yml | 16 ++++++---------- .github/workflows/ftr-e2e-reporting-test.yml | 16 ++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/cypress-e2e-reporting-test.yml b/.github/workflows/cypress-e2e-reporting-test.yml index 55388147..dda750be 100644 --- a/.github/workflows/cypress-e2e-reporting-test.yml +++ b/.github/workflows/cypress-e2e-reporting-test.yml @@ -29,18 +29,14 @@ jobs: java-version: ${{ matrix.jdk }} - name: Download Job Scheduler artifact - uses: suisei-cn/actions-download-file@v1.6.0 - 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: | + 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/actions-download-file@v1.6.0 - 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: | + 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 run: | diff --git a/.github/workflows/ftr-e2e-reporting-test.yml b/.github/workflows/ftr-e2e-reporting-test.yml index b4e35ad4..2bd042a1 100644 --- a/.github/workflows/ftr-e2e-reporting-test.yml +++ b/.github/workflows/ftr-e2e-reporting-test.yml @@ -29,18 +29,14 @@ jobs: java-version: ${{ matrix.jdk }} - name: Download Job Scheduler artifact - uses: suisei-cn/actions-download-file@v1.6.0 - 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: | + 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/actions-download-file@v1.6.0 - 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: | + 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 run: |