Opened 16 months ago

Last modified 11 months ago

#66705 new enhancement

Portfile autoupdate: is it possible to setup GitHub actions to avoid manual updates

Reported by: esbugz Owned by: admin@…
Priority: Normal Milestone:
Component: buildbot/mpbb Version:
Keywords: Cc:
Port:

Description

I've read the guide on creating and updating portfiles, but didn't find anything re. the question of autoupdates: if I add a new port for an app, is there a way to avoid the chore of manually bumping the app's version every time it's updated?

Change History (6)

comment:1 Changed 16 months ago by kencu (Ken)

macports does not as yet have this automated, although it’s 100% possible to do so.

homebrew for example has a github action that runs every night checking for updates

https://github.com/Homebrew/homebrew-core/blob/master/.github/workflows/autobump.yml

and a script that then generates a pr for the update if there is one

https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb

a human then needs to validate the actual update.

comment:2 Changed 16 months ago by esbugz

For the last step you also don't need a human as you can set up automerge once the checks have been completed (though not sure how Homebrew's central repo handles it, maybe they require one)

comment:3 Changed 16 months ago by kencu (Ken)

Although it would be very easy to automatically push it through, they purposefully don't set up automerge so wreckage doesn't get pushed.

Someone needs to verify all the dependant ports of a library still build with the update, for example.

also automatable, for someone with unlimited time and budget.

MacPorts expects someone to read the release notes to see if the ABI broke. Etc.

comment:4 in reply to:  3 Changed 16 months ago by esbugz

Yeah, libraries are definitely more complicated, but then there are also plenty of "end-user" apps, so would be great to just do the work once during the manifest creation and then not worry about it (until the auto build breaks)

Also, it's not only about the central repo with more stringent rules, but maybe also a custom port like you'd do with Homebrew casks or formulas with non-supported flags.

Last edited 16 months ago by esbugz (previous) (diff)

comment:5 Changed 16 months ago by jmroot (Joshua Root)

Component: basebuildbot/mpbb
Owner: set to admin@…
Version: 2.8.0

This wouldn't be a base feature. More of a CI/buildbot feature request.

comment:6 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

We don't have automated port updates because we want at least one human to verify that a new version of a port builds and works before publishing it to users.

Note: See TracTickets for help on using tickets.