-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Uploaded artifacts should be overwritten #28549
Comments
Side note: We are currently migrating our build system to gitea, and this could have become a critical problem. We first build our software and upload the binaries. In a second job we overwrite the encrypted binaries. If I hadn't checked manually, the unencrypted version would be shipped! |
Can you run that on github successfully? |
Yes https://github.com/hakito/Activity/actions/runs/7274027094/job/19819139031 Only adapted the label name to |
FYI - Also when re-running a job it keeps the old artifacts. |
Wow, so this is a bug? |
Well I would consider it a bug if I successfully upload an artifact (with re-run), but the artifact is not the uploaded. I made a very simple example do demonstrate it: on: [push]
jobs:
Timestamp:
runs-on: [windows]
steps:
- run: get-date -Format "o" > timestamp.txt
- run: cat timestamp.txt
- uses: actions/upload-artifact@v3
with:
path: timestamp.txt Simply run the job a 2nd time manually. After the 2nd run the output of
But the content of the downloaded artifact is:
|
Fix `Uploaded artifacts should be overwritten` #28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
Fix `Uploaded artifacts should be overwritten` go-gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
Fix `Uploaded artifacts should be overwritten` go-gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
Fix `Uploaded artifacts should be overwritten` go-gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
…28832) Backport #28726 by @fuxiaohei Fix Uploaded artifacts should be overwritten #28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
Fix `Uploaded artifacts should be overwritten` go-gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
…(#28832) Backport go-gitea/gitea#28726 by @fuxiaohei Fix Uploaded artifacts should be overwritten go-gitea/gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value. (cherry picked from commit 7f0ce2d)
Fix `Uploaded artifacts should be overwritten` go-gitea#28549 When upload different content to uploaded artifact, it checks that content size is not match in db record with previous artifact size, then the new artifact is refused. Now if it finds uploading content size is not matching db record when receiving chunks, it updates db records to follow the latest size value.
Automatically locked because of our CONTRIBUTING guidelines |
Description
According to github documentation artifacts sharing the same name should be overwritten.
Gitea seems to discard/ignore the second upload. Here is an example workflow:
Gitea Version
1.21.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
gitea/gitea:latest
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: