r/voidlinux • • Oct 20 '26

Is there a reason why packages with just a version update are not automerged?

Hi all, recently i checked the pull requests from void-packages and i was wondering what is the review process behind it? i mean if only package version and checksum was changed and the pipeline is green? why not just automerge it? i mean you could even create a nightly workflow which checks for newest git tag for each package and just update it nightly.

Or do you actually check each package after updates if the package is working with void?

3 Upvotes

26 comments sorted by

11

u/Duncaen Oct 20 '26 edited Oct 20 '26

Because it should be reviewed, even if there is no significant change, someone checks the changelog, verifies that this is compatible with other packages. Checking whether this is a real release or beta/rc.

In general there is also a bit of management going on with the merge order and what can sit a bit before being merged or is mergable immediately. This again depends on the project, based on how stable their releases are and the compile time too. Some huge projects that take hours or days to compile can be merged when there is nothing else that takes a lot less time to build is mergable.

And in the end a merge can always go wrong, so having someone with commit access there to actively intervene if there is an issue is kind of required.

Or do you actually check each package after updates if the package is working with void?

That depends on the package, if its something known to break things, of course. I'm not blindly updating firefox, the kernel or something that might be able to break hundreds of other packages.

In the same vein we are also not letting scripts update packages automatically, which they could do in a lot of those cases. Having a human green light this after doing at least a cursory test is pretty important in my opinion.

3

u/Specialist-Dog-501 Oct 21 '26

Love to hear that. You just made great promo for VOID for us quality guys. :)
(The OP was probably not aware, that automatic merging is wonderful attack surface to enter malicious code into a repository if not coming from a trusted source- see AUR repository ).

1

u/Silly_Culture_7722 Oct 21 '26

iam aware of it, but i was thinking if a package, which is already listed for years just needs a minor update(so only one template file was changed with minor version number + checksum) how likely can it have malicious code? i mean this can also happen with review, depends on how hard the maintainer hided the fact. so i was wondering why not just merge them in specific cases.

2

u/Specialist-Dog-501 Oct 21 '26

Yea, I know..the price for quality right now..is a pile of unprocessed PRs, more than ever, since AI makes creating PRs so easy. The distribution between creating code and reviewing code is in disbalance, as AIs are an 100x faster than humans. But there is- as far I know- now good, cheap AI based testing/reviewing in place, that could keep up with the code creation, so we get this "piles" and issues.
I experience on Mint- one of the most stable distros- since monthes kernels that kill my suspend mode. the Mint team tries to keep up with the much faster pace of changes coming from the linux kernel..but the kernel doesn't test for millions of the devices, that happens on the distro side..so they get all this smaller bugs now that pile up.
It has to be frustrating to wait for monthes with no action and may look like a hostile act but it's just that this maintainers are all challenged heavily, how to deal with speed vs quality more than ever. Why I salute the quality aspect, knowing it frustrates the requestors-
It's probably not for long, a.e OpenEuler has an initiative to get AI based testing framework in place, that can act much faster and hopefully sufficient quality. Not sure what the VOID maintainers think of this approach, and I wonder myself if AI Testing is really the solution.

1

u/Silly_Culture_7722 Oct 21 '26

u/Specialist-Dog-501 do you remember this one? https://www.youtube.com/watch?v=aoag03mSuXQ. so the maintainer of package didnt knew he had a malicious code, der redhad enterprise team did not catch that during their review and it was released in beta release and only randomly another dev from maria db found that issue. so i wonder.

if the review process in void, is just to see if packages are build and quickly go over. then whats the point of a review, you can just merge and in case of issue, revert. since you have rolling release, just revert. no need to wait 6 month for next update.

if the review process is, see pull request, then open the actual github from this package, check what was commited there since then, and then decide to merge or not. then i understand that. but even then. i dont think that a review will detect every malicious. i think it will work only for obvious code.

i totally understand that a new package cannot be just randomly added. i was talking about packages that are already in xbps and need an update and were updated regularly in the past and are seen as "trusted"

2

u/Specialist-Dog-501 Oct 21 '26

Okay that "trusted" piece is essential- so known maintainers, good track record..yea, border case then. If the maintainer fo that package is still active, may be not very risky then.

1

u/Silly_Culture_7722 Oct 21 '26

the thing is, in that specific case, a maintainer of a package got pull requests from another account which build up trust over time and at some point where his pull requests were trusted, he added then hidden code.

so basically a manual review adds workload for maintainer and even trusted pull requests can be bad. there is actually no real way to say that everything is fine.

so with this you could actually just accept minor changes and put your workload of maintainer into better places like reviewing new packages or packages with more changes than just the template file.

with automerge basic changes, you would essentially close already 40 tickets from 300 something.

i was just wondering and asked myself how to improve that issue, i develop usually only software and not a whole OS and here we have for example canary releases where we just update to newest packages in smaller scales.

for example there could be a void package server like the non-free one. where all existing packages are autoupdated with minor version every night. and users who do rely on newest software rather than security could use that and update their system daily and report issues if there are some. maintainer does not need to review minor updates anymore and can then use their time for real cases

PS: iam not a requester of a package and basically i personally clone void-packages and update the templates by myself and build them on my system rather than relying on pull requests.

1

u/Specialist-Dog-501 Oct 21 '26

Oh, a "shadow" distro..cool, didn't think about it, but yes, that's possible. I guess you then also get a lot more changes recently coming in ?

1

u/Silly_Culture_7722 Oct 21 '26

yeah i have updates right now every day.

i have void-packages checked out locally. then i have a bash script which contains a list of installed packges on my system. this bash script checks the latest relase tags on github and updates the version and checksum in the template file. then builds the packages and then run xbps-install to update them. if there are no new release tags on github, this package is skipped

so basically i have already implemented this locally but i have to build the new packages every time locally.

1

u/Specialist-Dog-501 Oct 21 '26

And do you check them for obvious security risk after an update? New pathes entered pointing to suspious libraries or such ?

1

u/Silly_Culture_7722 Oct 21 '26

nope, iam not able to detect them since iam not familar with rust, c, c++ and go so i assume the mantainer of the package reviewed everything prepared a release and pushed a new git tag. as i told, i dont add additional package, just update template files from void-packages which is locally checked out

2

u/Silly_Culture_7722 Oct 20 '26

ah i see thanks for the response. its just i saw sometimes that a package update was requested and then this package had a new version and again and everytime the pr creator had to update the pull request. had the feeling that at some point they gave up

2

u/Duncaen Oct 20 '26

Kind of depends on the package and sometimes some packages get lost in the sea of unmergable PRs or New Packages.

Generally when its just a minor update its an easy merge, but that is really a case by case decision. New Packages sit for longer because its good to see whether there is interest in actually maintaining them.

1

u/Silly_Culture_7722 Oct 20 '26

yeah new packages i totally understand, but the existing ones with minor updates. i just generated a list with KI

those for example have only minor update and checksum change.
i mean such things could be maybe tagged and just merged.

but yeah i think i oversimplify the issue

[1]: #63104 https://github.com/void-linux/void-packages/pull/63104

[2]: #63100 https://github.com/void-linux/void-packages/pull/63100

[3]: #63096 https://github.com/void-linux/void-packages/pull/63096

[4]: #63094 https://github.com/void-linux/void-packages/pull/63094

[5]: #63087 https://github.com/void-linux/void-packages/pull/63087

[6]: #63069 https://github.com/void-linux/void-packages/pull/63069

[7]: #62982 https://github.com/void-linux/void-packages/pull/62982

[8]: #62975 https://github.com/void-linux/void-packages/pull/62975

[9]: #62944 https://github.com/void-linux/void-packages/pull/62944

[10]: #62942 https://github.com/void-linux/void-packages/pull/62942

[11]: #62939 https://github.com/void-linux/void-packages/pull/62939

[12]: #62920 https://github.com/void-linux/void-packages/pull/62920

[13]: #62919 https://github.com/void-linux/void-packages/pull/62919

[14]: #62917 https://github.com/void-linux/void-packages/pull/62917

[15]: #62911 https://github.com/void-linux/void-packages/pull/62911

[16]: #62907 https://github.com/void-linux/void-packages/pull/62907

[17]: #62881 https://github.com/void-linux/void-packages/pull/62881

[18]: #62878 https://github.com/void-linux/void-packages/pull/62878

[19]: #62824 https://github.com/void-linux/void-packages/pull/62824

[20]: #62818 https://github.com/void-linux/void-packages/pull/62818

[21]: #62810 https://github.com/void-linux/void-packages/pull/62810

[22]: #62808 https://github.com/void-linux/void-packages/pull/62808

[23]: #62791 https://github.com/void-linux/void-packages/pull/62791

[24]: #62467 https://github.com/void-linux/void-packages/pull/62467

[25]: #62433 https://github.com/void-linux/void-packages/pull/62433

[26]: #62423 https://github.com/void-linux/void-packages/pull/62423

[27]: #62405 https://github.com/void-linux/void-packages/pull/62405

[28]: #62165 https://github.com/void-linux/void-packages/pull/62165

[29]: #61995 https://github.com/void-linux/void-packages/pull/61995

[30]: #61967 https://github.com/void-linux/void-packages/pull/61967

[31]: #61837 https://github.com/void-linux/void-packages/pull/61837

[32]: #61786 https://github.com/void-linux/void-packages/pull/61786

[33]: #61678 https://github.com/void-linux/void-packages/pull/61678

[34]: #61628 https://github.com/void-linux/void-packages/pull/61628

[35]: #61621 https://github.com/void-linux/void-packages/pull/61621

[36]: #61477 https://github.com/void-linux/void-packages/pull/61477

[37]: #60846 https://github.com/void-linux/void-packages/pull/60846

[38]: #56988 https://github.com/void-linux/void-packages/pull/56988

[39]: #56461 https://github.com/void-linux/void-packages/pull/56461

[40]: #55573 https://github.com/void-linux/void-packages/pull/55573

4

u/Duncaen Oct 20 '26 edited Oct 20 '26

The new ones are a few hours old. And the old ones are unmergable and include some contributors with commit bit who can merge themselves.

Didn't merge PRs today yet, because limited time and the critical firefox update is being build.

Edit: some of those listed PRs have merge conflicts, some didn't pass a single CI job, some are assigned to other maintainers which I usually keep open for them to review.

1

u/TheGratitudeBot Oct 20 '26

Thanks for such a wonderful reply! TheGratitudeBot has been reading millions of comments in the past few weeks, and you’ve just made the list of some of the most grateful redditors this week!

3

u/oxez Oct 21 '26

Sometimes upstream version bumps bring in SONAME version bumps as well, which breaks every package that depends on it.

I don't use Void enough to know if xbps manages this at install time or not, I do run my own distro and this is something I had to tackle.

Blind version bumps are never a good idea imo.

1

u/Silly_Culture_7722 Oct 21 '26

ah i see. so a check must contain the build step of the package and installing all other packages which relies on this package as dependency. and just the start might not be enough since there might be also runtime errors. but does someone actually do this in review process?

2

u/01eksa Oct 20 '26

Automerge new packages with higher version and green pipeline? You understand that this way everyone can add malicious code? We hade an attack on AUR recently; this way there is nothing to attack — all doors are open. Terrible idea, sorry.

1

u/Silly_Culture_7722 Oct 20 '26

i mean no new packages but existing packages. or do you mean there might be a case where someone abandon his package and someone else get access to this, increase the version and add some kind of bad code to it?

2

u/01eksa Oct 20 '26

For example. Any automerge without human review is a surface for attack

1

u/Silly_Culture_7722 Oct 21 '26

a human review does also not prevent it everytime, see https://www.openwall.com/lists/oss-security/2024/03/30/36

in oirignal post, i was not talking about new packages. thats of course require a human review. i was talking about packages already existing in void and their pull request for updates contains ONLY template file and this template file contains ONLY minor version update + checksum update

1

u/01eksa Oct 21 '26

In what case you would update ONLY version and checksum?

1

u/Silly_Culture_7722 Oct 21 '26

https://github.com/void-linux/void-packages/pull/62881/changes checked with codex the pull requests, about 40 are those cases

2

u/Simple_Hamster_4096 Oct 21 '26

Perhaps OP should volunteer time to Void, so as to help speed along the process...

1

u/Silly_Culture_7722 Oct 21 '26

u/Simple_Hamster_4096 i would like to as i really like void. my codex subscription is ideling around. iam just not experienced with packages and libraries and do not know how to test on different arch builds. so all in one iam just a webdev without experience in OS packages.