This imply a refactoring of post-receive hook. As of today it's a mix of shell + perl + php. With the refacto we will have:
- One single php script (called with sudo) that will wrap what is done today in shell
- Launch grokmirror updates
- Loop over the revs to trigger ci jobs, update push count, etc.
On mail sending, based on project configuration we will either:
- make use of existing infra for truncated email sending
- "exec" the current shell script for regular notifs