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 13, 2025
1 parent 8cc5f84 commit 7954f88
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 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
8 changes: 7 additions & 1 deletion .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
# Dashboard tests with query enhanced - group 3
- group: 13
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 @@ -274,6 +274,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 @@ -282,6 +283,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 @@ -290,6 +292,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 @@ -298,6 +301,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 @@ -306,6 +310,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 @@ -314,6 +319,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
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,5 @@
- [RELEASING](../RELEASING.md)
- [SECURITY](../SECURITY.md)
- [TESTING](../TESTING.md)
- [TRIAGING](../TRIAGING.md)
- [TYPESCRIPT](../TYPESCRIPT.md)

0 comments on commit 7954f88

Please sign in to comment.