-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable overwrite on upload artifact #9383
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9383 +/- ##
==========================================
+ Coverage 61.71% 61.73% +0.01%
==========================================
Files 3817 3817
Lines 91860 91860
Branches 14551 14551
==========================================
+ Hits 56695 56707 +12
+ Misses 31508 31496 -12
Partials 3657 3657
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Joey Liu <[email protected]>
Hi @Maosaic, the error message says "an artifact with this name already exists on the workflow run." Do we need to update the conflicting artifact name? With the overwrite option enabled, the old artifact will be overwritten with the new artifact. We won't be able to view the old artifact anymore. |
Yes, this was the exact behaviour we had before updating |
Signed-off-by: Joey Liu <[email protected]>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-9383-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 126c1444506f87280e4ba3ac879f174d6d1d4de0
# Push it to GitHub
git push --set-upstream origin backport/backport-9383-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x Then, create a pull request where the |
Description
Enable overwrite on upload artifact
Issues Resolved
when upgrade
actions/upload-artifact
from v3 to v4, by default it disabled overwrite on upload artifact, which can break our CI action.Ref: https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#overwriting-an-artifact
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration