I'm not sure about all consequences of this patch. But it seems to me that we don't need collection_name and email opt-in anymore. What do you think, Will?
Fedora changed CVS for GIT, email opt-in is no longer applicable, let's disable it. Also remove collection_name items from repoinfo.conf, they are not needed anymore. --- hooks/post-koji-build/watch-koji-builds.py | 2 +- lib/python/repoinfo.py | 1 - lib/python/util.py | 16 ---------------- repoinfo.conf | 16 ---------------- tests/initscripts/initscripts.py | 4 ---- tests/rpmguard/rpmguard.py | 4 ---- tests/rpmlint/rpmlint.py | 4 ---- 7 files changed, 1 insertions(+), 46 deletions(-)
diff --git a/hooks/post-koji-build/watch-koji-builds.py b/hooks/post-koji-build/watch-koji-builds.py index 43369f6..a3f9467 100755 --- a/hooks/post-koji-build/watch-koji-builds.py +++ b/hooks/post-koji-build/watch-koji-builds.py @@ -112,7 +112,7 @@ tags for new builds and kick off tests when new builds/packages are found.') taglist = set() for repo in repoinfo.repos(): # Always include the tag for the development branch (aka rawhide) - if repoinfo.get(repo, "collection_name") == "devel": + if repo == 'rawhide': taglist.add(repoinfo.get(repo, "tag")) # otherwise, find all *-updates-candidate tags to include # NOTE: This assumes that updates are tagged in the format diff --git a/lib/python/repoinfo.py b/lib/python/repoinfo.py index 420becc..1438885 100644 --- a/lib/python/repoinfo.py +++ b/lib/python/repoinfo.py @@ -52,7 +52,6 @@ class RepoinfoConfig(object): 'url': self.config.get(name,'url'), 'path': self.config.get(name,'path'), 'name': name, # kind of unnecessary - 'collection_name': self.config.get(name, 'collection_name'), 'composes': self.config.get(name,'composes'), } return repo diff --git a/lib/python/util.py b/lib/python/util.py index ed90ba4..75d5539 100644 --- a/lib/python/util.py +++ b/lib/python/util.py @@ -93,22 +93,6 @@ def checkhash(filename, algo, hexdigest): hasher.hexdigest() == hexdigest) return r
-def check_opt_in(pkgname, dist_release): - """take a package name and distribution release and check for an autoqa-optin file""" - - url = 'http://fedorapeople.org/packages/' - fullurl = url + '%s/%s/%s/autoqa-optin' % (pkgname[0].lower(), pkgname, dist_release) - tmout = socket.getdefaulttimeout() - socket.setdefaulttimeout(10) # if it takes more than that, just consider as not opted in - try: - h = urllib.urlopen(fullurl) - except IOError, e: - return False - finally: - socket.setdefaulttimeout(tmout) - - return h.getcode() == 200 # file exists (HTTP 200 OK) -
grabber = urlgrabber.grabber.URLGrabber() if hasattr(sys.stdout, "fileno") and os.isatty(sys.stdout.fileno()): diff --git a/repoinfo.conf b/repoinfo.conf index 3241044..a532775 100644 --- a/repoinfo.conf +++ b/repoinfo.conf @@ -15,94 +15,78 @@ arches = i386, x86_64 path = development/rawhide url = %(rawhideurl)s tag = dist-f15 -collection_name = devel
# Fedora 14 [f14] path = development/14 url = %(rawhideurl)s -collection_name = F-14
[f14-updates] path = 14 url = %(updatesurl)s parents = f14 -collection_name = F-14
[f14-updates-testing] path = testing/14 url = %(updatesurl)s parents = f14-updates, f14 -collection_name = F-14
# Fedora 13 [f13] path = 13 url = %(goldurl)s -collection_name = F-13
[f13-updates] path = 13 url = %(updatesurl)s parents = f13 -collection_name = F-13
[f13-updates-testing] path = testing/13 url = %(updatesurl)s parents = f13-updates, f13 -collection_name = F-13
# Fedora 12 [f12] path = 12 url = %(goldurl)s -collection_name = F-12
[f12-updates] path = 12 url = %(updatesurl)s parents = f12 -collection_name = F-12
[f12-updates-testing] path = testing/12 url = %(updatesurl)s parents = f12-updates, f12 -collection_name = F-12
# Fedora 11 [f11] path = 11 url = %(goldurl)s -collection_name = F-11
[f11-updates] path = 11 url = %(updatesurl)s parents = f11 -collection_name = F-11
[f11-updates-testing] path = testing/11 url = %(updatesurl)s parents = f11-updates, f11 -collection_name = F-11
# Fedora 10 [f10] path = 10 url = %(goldurl)s -collection_name = F-10
[f10-updates] path = 10 url = %(updatesurl)s parents = f10 -collection_name = F-10
[f10-updates-testing] path = testing/10 url = %(updatesurl)s parents = f10-updates, f10 -collection_name = F-10 diff --git a/tests/initscripts/initscripts.py b/tests/initscripts/initscripts.py index fcef479..a9504b0 100644 --- a/tests/initscripts/initscripts.py +++ b/tests/initscripts/initscripts.py @@ -155,10 +155,6 @@ class initscripts(test.test): mail_server = self.config.get('test', 'smtpserver') if (mail_to and mail_from and mail_server): mail_to = mail_to.split(',') - collection_name = repoinfo.getrepo_by_tag(kojitag)['collection_name'] - if collection_name and autoqa.util.check_opt_in(name, collection_name): - #FIXME - hardcoded partial email address here - obviously sub-par - mail_to.append('%s-owner@fedoraproject.org' % name)
msg = "Stored logs available at <%s>\n\n" % self.autotest_url msg += "Following tests returned zero exit code: %s\n" % repr(tests_exit_status_zero) diff --git a/tests/rpmguard/rpmguard.py b/tests/rpmguard/rpmguard.py index 50245b9..18da580 100644 --- a/tests/rpmguard/rpmguard.py +++ b/tests/rpmguard/rpmguard.py @@ -183,10 +183,6 @@ rpmlint | cut -d ' ' -f 1", retain_output=True) result_email = self.config.get('test','result_email') if result_email and isinstance(result_email, str): send_to = result_email.split(',') - collection_name = repoinfo.getrepo_by_tag(kojitag)['collection_name'] - if collection_name and autoqa.util.check_opt_in(name, collection_name): - #FIXME - hardcoded partial email address here - obviously sub-par - send_to.append('%s-owner@fedoraproject.org' % name)
if send_to: warning_count = len([line for line in log.splitlines() \ diff --git a/tests/rpmlint/rpmlint.py b/tests/rpmlint/rpmlint.py index bbb7460..6d3434a 100644 --- a/tests/rpmlint/rpmlint.py +++ b/tests/rpmlint/rpmlint.py @@ -67,10 +67,6 @@ class rpmlint(test.test): result_email = self.config.get('test','result_email') if result_email and isinstance(result_email, str): send_to = result_email.split(',') - collection_name = repoinfo.getrepo_by_tag(kojitag)['collection_name'] - if collection_name and autoqa.util.check_opt_in(name, collection_name): - #FIXME - hardcoded partial email address here - obviously sub-par - send_to.append('%s-owner@fedoraproject.org' % name)
if send_to: # parse last line for summary ('N errors, N warnings')
----- "Kamil Páral" kparal@redhat.com wrote:
I'm not sure about all consequences of this patch. But it seems to me that we don't need collection_name and email opt-in anymore. What do you think, Will?
Ok, maybe I confused it somehow. Skvidal raised concerns that email opt-in is still applicable. This patch might be completely wrong then.
On Tue, 2010-08-03 at 12:27 -0400, Kamil Paral wrote:
----- "Kamil Páral" kparal@redhat.com wrote:
I'm not sure about all consequences of this patch. But it seems to me that we don't need collection_name and email opt-in anymore. What do you think, Will?
Ok, maybe I confused it somehow. Skvidal raised concerns that email opt-in is still applicable. This patch might be completely wrong then.
Right - what I was saying on IRC is that the collection_name item is probably not needed anymore. We still want to keep email opt-in (for now) but we can probably shift around the file paths so that they're using the repoinfo repo names (which match the branch names in dist-git).
We don't need to worry about this immediately - but I've filed a couple of tickets so we don't forget about it:
https://fedorahosted.org/autoqa/ticket/212 https://fedorahosted.org/autoqa/ticket/213
-w
----- "Will Woods" wwoods@redhat.com wrote:
On Tue, 2010-08-03 at 12:27 -0400, Kamil Paral wrote:
----- "Kamil Páral" kparal@redhat.com wrote:
I'm not sure about all consequences of this patch. But it seems to
me
that we don't need collection_name and email opt-in anymore. What do you think, Will?
Ok, maybe I confused it somehow. Skvidal raised concerns that email
opt-in
is still applicable. This patch might be completely wrong then.
Right - what I was saying on IRC is that the collection_name item is probably not needed anymore. We still want to keep email opt-in (for now) but we can probably shift around the file paths so that they're using the repoinfo repo names (which match the branch names in dist-git).
We don't need to worry about this immediately - but I've filed a couple of tickets so we don't forget about it:
https://fedorahosted.org/autoqa/ticket/212 https://fedorahosted.org/autoqa/ticket/213
Ah, ok. Forget about this patch.
autoqa-devel@lists.fedorahosted.org