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

Support for grouping RPMs using paths #26984

Merged
merged 50 commits into from
Jan 12, 2024

Conversation

ExplodingDragon
Copy link
Contributor

@ExplodingDragon ExplodingDragon commented Sep 9, 2023

The current rpm repository places all packages in the same repository, and different systems (el7,f34) may hit packages that do not belong to this distribution ( #25304 ) , which now supports grouping of rpm.

图片

Fixes #25304 .
Fixes #27056 .

Refactor: #25866

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 9, 2023
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 9, 2023
@GiteaBot GiteaBot added the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label Sep 9, 2023
@github-actions github-actions bot added the type/docs This PR mainly updates/creates documentation label Sep 9, 2023
@ExplodingDragon ExplodingDragon changed the title Add rpm support for multiple distributions Support for grouping rpm packages by distribution and version Sep 9, 2023
@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 Sep 11, 2023
@lunny lunny requested a review from KN4CK3R September 11, 2023 01:22
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them topic/packages labels Sep 11, 2023
@ExplodingDragon
Copy link
Contributor Author

@KN4CK3R After a period of use, this PR is ready to begin reviewing.

@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 Jan 12, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jan 12, 2024
@lunny lunny enabled auto-merge (squash) January 12, 2024 02:51
@lunny lunny merged commit ba4d0b8 into go-gitea:main Jan 12, 2024
25 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jan 12, 2024
@ExplodingDragon ExplodingDragon deleted the feature-support-multi-rpm-dist branch January 12, 2024 03:44
@KN4CK3R
Copy link
Member

KN4CK3R commented Jan 12, 2024

There are some flaws I created a fix-PR for this PR but forgot to block this one, sorry. I will send the fix as a new PR.

fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this pull request Jan 17, 2024
The current rpm repository places all packages in the same repository,
and different systems (el7,f34) may hit packages that do not belong to
this distribution ( go-gitea#25304 ) , which now supports grouping of rpm.

![图片](https://github.com/go-gitea/gitea/assets/33776693/d1e1d99f-7799-4b2b-a19b-cb2a5c692914)

Fixes go-gitea#25304 .
Fixes go-gitea#27056 .

Refactor: [go-gitea#25866](go-gitea#25866)
lafriks pushed a commit that referenced this pull request Jan 19, 2024
Related #26984
(#26984 (comment))

Fix admin cleanup message.
Fix models `Get` not respecting default values.
Rebuild RPM repository files after cleanup.
Do not add RPM group to package version name.
Force stable sorting of Alpine/Debian/RPM repository data.
Fix missing deferred `Close`.
Add tests for multiple RPM groups.
Removed non-cached `ReplaceAllStringRegex`.

If there are multiple groups available, it's stated in the package
installation screen:

![grafik](https://github.com/go-gitea/gitea/assets/1666336/8f132760-882c-4ab8-9678-77e47dfc4415)
henrygoodman pushed a commit to henrygoodman/gitea that referenced this pull request Jan 31, 2024
Related go-gitea#26984
(go-gitea#26984 (comment))

Fix admin cleanup message.
Fix models `Get` not respecting default values.
Rebuild RPM repository files after cleanup.
Do not add RPM group to package version name.
Force stable sorting of Alpine/Debian/RPM repository data.
Fix missing deferred `Close`.
Add tests for multiple RPM groups.
Removed non-cached `ReplaceAllStringRegex`.

If there are multiple groups available, it's stated in the package
installation screen:

![grafik](https://github.com/go-gitea/gitea/assets/1666336/8f132760-882c-4ab8-9678-77e47dfc4415)
silverwind pushed a commit to silverwind/gitea that referenced this pull request Feb 20, 2024
The current rpm repository places all packages in the same repository,
and different systems (el7,f34) may hit packages that do not belong to
this distribution ( go-gitea#25304 ) , which now supports grouping of rpm.

![图片](https://github.com/go-gitea/gitea/assets/33776693/d1e1d99f-7799-4b2b-a19b-cb2a5c692914)

Fixes go-gitea#25304 .
Fixes go-gitea#27056 .

Refactor: [go-gitea#25866](go-gitea#25866)
silverwind pushed a commit to silverwind/gitea that referenced this pull request Feb 20, 2024
Related go-gitea#26984
(go-gitea#26984 (comment))

Fix admin cleanup message.
Fix models `Get` not respecting default values.
Rebuild RPM repository files after cleanup.
Do not add RPM group to package version name.
Force stable sorting of Alpine/Debian/RPM repository data.
Fix missing deferred `Close`.
Add tests for multiple RPM groups.
Removed non-cached `ReplaceAllStringRegex`.

If there are multiple groups available, it's stated in the package
installation screen:

![grafik](https://github.com/go-gitea/gitea/assets/1666336/8f132760-882c-4ab8-9678-77e47dfc4415)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
@go-gitea go-gitea unlocked this conversation Apr 4, 2024
@delvh
Copy link
Member

delvh commented Apr 4, 2024

Erm… Why did Giteabot mark the PR as breaking?
Why does it even mark a PR as breaking in the first place?
I don't think that feature exists/should exist…

@delvh delvh removed the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label Apr 4, 2024
@delvh
Copy link
Member

delvh commented Apr 4, 2024

Okay, I found out the cause: According to the original description, the PR was breaking.
I guess that is no longer the case?

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Apr 11, 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 modifies/docs size/L Denotes a PR that changes 100-499 lines, ignoring generated files. topic/packages type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installing package dependencies from RPM Package Repo fails Assign a distribution to yum
7 participants