Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-06-03 Thread Tim Harder
On 2025-06-02 Mon 21:57, Sam James wrote: I've packaged this now as dev-vcs/pkgcruft-git (live-only for now). I'm using the pre-push support you added (thank you!) locally with the following in .git/hooks/pre-push: pkgcruft-git-pre-push origin git+ssh://g...@git.gentoo.org/repo/gentoo.git an

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-06-02 Thread Sam James
Tim Harder writes: > For anyone interested, > > I've hacked up an initial, rough implementation of a pkgcruft-git > service that enables verifying ebuild commits during git's pre-receive > hook phase. > > Currently it comes with a simple script that runs a local demo instance > targeting the gent

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-06-01 Thread Tim Harder
On 2025-05-30 Fri 09:23, Luca Barbato wrote: It would be very nice to have it run over the PRs we are already receiving on github... This requires different functionality than what is done for pre-receive hook support more in line with what the pkgcruft github action[1] already provides. Of co

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-05-30 Thread Luca Barbato
On 30/05/25 10:46, Tim Harder wrote: For anyone interested, I've hacked up an initial, rough implementation of a pkgcruft-git service that enables verifying ebuild commits during git's pre-receive hook phase. Currently it comes with a simple script that runs a local demo instance targeting the

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-05-30 Thread Tim Harder
On 2025-05-21 Wed 03:57, Matt Jolly wrote: Would you be open to trialling this on GURU? It seems like a reasonable target where it'd seriously reduce the amount of developer / trusted contributor overhead when merging commits. It depends on how the infra side of GURU is set up. If it's semi-sim

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-05-30 Thread Tim Harder
For anyone interested, I've hacked up an initial, rough implementation of a pkgcruft-git service that enables verifying ebuild commits during git's pre-receive hook phase. Currently it comes with a simple script that runs a local demo instance targeting the gentoo repo by default. You can find

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-05-21 Thread Matt Jolly
Hi, Sorry for the delayed reply, I was reminded of this email and realised that I never did respond to it while we were discussing git hooks today. On 13/3/25 06:42, Eli Schwartz wrote: On 11/25/24 12:15 PM, Tim Harder wrote: From all this, my main questions to the dev community are the follo

Re: [gentoo-dev] verifying commits via server-side git pre-receive hook

2025-03-12 Thread Eli Schwartz
On 11/25/24 12:15 PM, Tim Harder wrote: > Hi all, > > I've been working for a while on pkgcraft[1] and related tooling that > could have the potential to run various CI checks server-side as a > pre-receive git hook verifying commits. Previously, this wasn't at all > possible due to portage/repoma