Skip to content
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

Fix merging artifact chunks error when minio storage basepath is set (#28555) #28568

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

GiteaBot
Copy link
Contributor

Backport #28555 by @fuxiaohei

Related to #28279

When merging artifact chunks, it lists chunks from storage. When storage is minio, chunk's path contains MINIO_BASE_PATH that makes merging break.

So trim the MINIO_BASE_PATH when handle chunks.

Update the chunk file's basename to retain necessary information. It ensures that the directory in the chunk's path remains unaffected.

…o-gitea#28555)

Related to  go-gitea#28279

When merging artifact chunks, it lists chunks from storage. When storage
is minio, chunk's path contains `MINIO_BASE_PATH` that makes merging
break.

<del>So trim the `MINIO_BASE_PATH` when handle chunks.</del>

Update the chunk file's basename to retain necessary information. It
ensures that the directory in the chunk's path remains unaffected.
@GiteaBot GiteaBot added modifies/api This PR adds API routes or modifies them topic/gitea-actions related to the actions of Gitea type/bug labels Dec 21, 2023
@GiteaBot GiteaBot added this to the 1.21.3 milestone Dec 21, 2023
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 21, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 21, 2023
@GiteaBot GiteaBot requested review from delvh and lunny December 21, 2023 07:05
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 21, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 21, 2023
@lunny lunny merged commit 8ca32dc into go-gitea:release/v1.21 Dec 21, 2023
26 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them size/S Denotes a PR that changes 10-29 lines, ignoring generated files. topic/gitea-actions related to the actions of Gitea type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants