Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104029 - Commits alias for subversion portage module
Summary: Commits alias for subversion portage module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 06:57 UTC by Jason Stubbs (RETIRED)
Modified: 2007-05-22 12:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Stubbs (RETIRED) gentoo-dev 2005-08-28 06:57:07 UTC
We'd like for a commits alias to be set up for the subversion portage module. 
It'd be nice if the actual diff could be attached on commit mails, but just 
the commit message and files affected would be sufficient.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-08-31 06:21:39 UTC
Not to be pushy, but there's a small amount of urgency on this one. 
Apparently, there's a few things that need to be done by separate people. The 
list, as far as I can tell, is as follows but anybody who knows better please 
step up and correct it. 
 
1) Script that plugs into subversion that sends mails locally. 
2) A alias on the subversion server that forwards mails to toucan. 
3) The alias on toucan for devs to add themselves to. 
Comment 2 SpanKY gentoo-dev 2005-09-26 22:34:39 UTC
might as well do this in general for everyone ... be nice to have this on the
sandbox and baselayout modules as well
Comment 3 Corey Shields 2005-09-28 15:35:38 UTC
Ok, this is ready to test.  a commit to the portage svn module should fire a
note to portage-commits which consists of ferringb, jstubbs, and myself for now.
 Others can add themselves to /var/mail/alias/misc/portage-commits on toucan.

If this works fine I can add other modules as requested.

-C
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-09-29 05:30:11 UTC
It's working beautifully. Thanks! 
Comment 5 Corey Shields 2005-09-29 08:28:50 UTC
If we went global with this then it would be an all-or-nothing gig (meaning mail
would be spit out for repos that are not setup with an alias, etc) and could
possibly create a lot of unnecessary mail.  So, I think I would rather see an
opt-in system.

SpanKY, who needs to be on the sandbox-commits and baselayout-commits aliases?
Comment 6 SpanKY gentoo-dev 2005-09-29 08:55:05 UTC
sandbox: vapier / azarah (and probably the portage guys ...)
baselayout: vapier / azarah / uberlord

not quite sure what you mean about the all or nothing ... i wouldnt want to see
e-mail for repos like eselect ...
Comment 7 Corey Shields 2005-09-29 21:19:05 UTC
Right.  We can shoot the email off from one of two post-commit scripts.  The   
first is a repo-specific script, the second is fired off after a commit to any   
and every repo.  The latter is easier to handle administratively, yet not every   
repo will want it, so the former is probably the better way to go (and handle   
them per-request)   
  
Anyway.  the baselayout and sandbox commit messages are done.  users can add  
themselves in /var/mail/alias/misc on toucan  
  
Closing the bug.  Cheers! 
Comment 8 Brian Harring (RETIRED) gentoo-dev 2005-10-01 01:40:05 UTC
umm.. think it chokes on multi file commits.

commited to portage/2.0/{ChangeLog,bin/ebuild,pym/portage.py} and no mail :)
Comment 9 Corey Shields 2005-10-04 22:34:15 UTC
doesn't make much since as an svn repo revision increments only once when
multiple files are changed.  Nevertheless, I've tweaked the script a bit. 
Please try again and let me know.  (I put myself onto the portage-commits alias,
but I won't know if you try and it's still borked)

Cheers
Comment 10 Brian Harring (RETIRED) gentoo-dev 2005-10-05 03:00:44 UTC
Offhand, it's plain not relaying any commits at this point :)
roughly 09:55 utc of 10/05  was a commit fex, that didn't come through mail wise.
Comment 11 Corey Shields 2005-10-05 18:57:36 UTC
fixed (and tested)..   fixed the other 2 repos also  
  
closing the bug  
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2006-06-24 19:03:15 UTC
Could someone change the script so it only sends mails for the main/ module in the repo?
Comment 13 Lars Weiler (RETIRED) gentoo-dev 2007-03-09 22:00:40 UTC
Well, long delay on this bug.

I changed the post-commit hook to
/var/svnroot/scripts/commit-email.pl ${REPOS} ${REV} -m main portage-commits@gentoo.org

This should cover everything in main with the regexp "main".  Please test.
Comment 14 Zac Medico gentoo-dev 2007-05-22 01:30:41 UTC
The portage-commits hook seems to be broken.  The last mail that I received was for r6542 on May 17 and we're at r6564 now.  It stopped at the same time that bug 169930 got fixed.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-22 02:26:16 UTC
refixed.
pylon had commented out the mail line
Comment 16 Lars Weiler (RETIRED) gentoo-dev 2007-05-22 12:10:30 UTC
(In reply to comment #15)
> pylon had commented out the mail line

Oops, sorry.  It was late in the night when I tried to fix that other bug…