Skip to content

Commit

Permalink
Enable overwrite on upload artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Liu <[email protected]>
  • Loading branch information
Maosaic committed Feb 14, 2025
1 parent 4d55b4d commit cc5b9c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,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 @@ -423,6 +424,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 @@ -535,6 +537,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 Down Expand Up @@ -627,3 +630,4 @@ jobs:
./artifacts/bwc_tmp/test/cypress/screenshots/*
./artifacts/bwc_tmp/test/cypress/results/*
retention-days: 1
overwrite: true
10 changes: 8 additions & 2 deletions .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ jobs:
# Dashboard tests with query enhanced - group 3
- group: 13
config: query_enhanced
test_location: source
test_location: source
# Dashboard tests with query enhanced - group 4
- group: 14
config: query_enhanced
test_location: source
# Dashboard tests with query enhanced - group 5
- group: 15
config: query_enhanced
test_location: source
test_location: source
container:
image: docker://opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest-v2
options: --user 1001
Expand Down Expand Up @@ -282,6 +282,7 @@ jobs:
name: ftr-cypress-screenshots-${{ matrix.group }}
path: ${{ env.FTR_PATH }}/cypress/screenshots
retention-days: 1
overwrite: true

- name: Upload FT repo videos
uses: actions/upload-artifact@v4
Expand All @@ -290,6 +291,7 @@ jobs:
name: ftr-cypress-videos-${{ matrix.group }}
path: ${{ env.FTR_PATH }}/cypress/videos
retention-days: 1
overwrite: true

- name: Upload FT repo results
uses: actions/upload-artifact@v4
Expand All @@ -298,6 +300,7 @@ jobs:
name: ftr-cypress-results-${{ matrix.group }}
path: ${{ env.FTR_PATH }}/cypress/results
retention-days: 1
overwrite: true

- name: Upload Dashboards screenshots
if: failure() && matrix.test_location == 'source'
Expand All @@ -306,6 +309,7 @@ jobs:
name: dashboards-cypress-screenshots-${{ matrix.group }}
path: cypress/screenshots
retention-days: 1
overwrite: true

- name: Upload Dashboards repo videos
uses: actions/upload-artifact@v4
Expand All @@ -314,6 +318,7 @@ jobs:
name: dashboards-cypress-videos-${{ matrix.group }}
path: cypress/videos
retention-days: 1
overwrite: true

- name: Upload Dashboards repo results
uses: actions/upload-artifact@v4
Expand All @@ -322,6 +327,7 @@ jobs:
name: dashboards-cypress-results-${{ matrix.group }}
path: cypress/results
retention-days: 1
overwrite: true

add-comment:
needs: [cypress-tests]
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cypress_workflow_with_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
name: dashboards-cypress-screenshots-10
path: cypress/screenshots
retention-days: 1
overwrite: true

- name: Upload Dashboards repo videos
uses: actions/upload-artifact@v4
Expand All @@ -138,11 +139,13 @@ jobs:
name: dashboards-cypress-videos-10
path: cypress/videos
retention-days: 1
overwrite: true

- name: Upload Dashboards repo results
uses: actions/upload-artifact@v4
if: always()
with:
name: dashboards-cypress-results-10
path: cypress/results
retention-days: 1
retention-days: 1
overwrite: true
2 changes: 2 additions & 0 deletions .github/workflows/release_cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ jobs:
name: release-osd-cypress-screenshots-${{ matrix.spec_group }}
path: ${{ env.OSD_PATH }}/cypress/screenshots
retention-days: 1
overwrite: true

- uses: actions/upload-artifact@v4
if: always()
with:
name: release-osd-cypress-videos-${{ matrix.spec_group }}
path: ${{ env.OSD_PATH }}/cypress/videos
retention-days: 1
overwrite: true

0 comments on commit cc5b9c4

Please sign in to comment.