[AutoQA] #118: New test proposal: Python debugability
by fedora-badges
#118: New test proposal: Python debugability
--------------------+-------------------------------------------------------
Reporter: kparal | Owner:
Type: task | Status: new
Priority: minor | Milestone:
Component: tests | Version: 1.0
Keywords: |
--------------------+-------------------------------------------------------
From Adam Williamson:
I've cut some of the context, but
basically David wants to write a test case for checking whether Python
debugging is possible as intended, and I asked exactly how he wanted it
to be used.
{{{
On Tue, 2010-01-26 at 15:30 -0500, David Malcolm wrote:
> > > Can I request a test case to cover debuggability of the Python
> runtime
> > > please (both in Fedora and in RHEL).
> > >
> > > This is in relation to:
> > > https://bugzilla.redhat.com/show_bug.cgi?id=556975
> > > https://bugzilla.redhat.com/show_bug.cgi?id=558977
> > > https://bugzilla.redhat.com/show_bug.cgi?id=557772
> > >
> > > as there seem to be gcc and gdb issues, which are conspiring to
> make
> > > python impossible to debug.
> > >
> > >
> > > The requirement is: within "gdb python", I must be able to select
> a
> > > PyEval_EvalFrameEx frame, and have the following work:
> > > (gdb) print co
> > > (gdb) print f
> > >
> > > rather that have <variable optimized out>
> > >
> > > so that I can do this:
> > > (gdb) print (char*)(((PyStringObject*)co->co_name)->ob_sval)
> > > to get the function name
> > >
> > > (gdb) print (char*)(((PyStringObject*)co->co_filename)->ob_sval)
> > > to get the source filename
> > >
> > > and
> > >
> > > (gdb) print f->f_lineno
> > > to get the approximate source line number.
> > >
> > > If the above isn't working, it becomes extremely hard to
> meaningfully
> > > debug any issues that arise inside Python.
> This is probably scriptable, and a good candidate for AutoQA and foe
> RHTS.
>
}}}
--
Ticket URL: <https://fedorahosted.org/autoqa/ticket/118>
AutoQA <http://autoqa.fedorahosted.org>
Automated QA project
13 years, 8 months
[PATCH 1/2] add repoinfo.getreleases() and get_bodhi_releases()
by Will Woods
---
lib/python/repoinfo.py | 6 ++++++
repoinfo.conf | 4 ++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/python/repoinfo.py b/lib/python/repoinfo.py
index 420becc..3a8c1f8 100644
--- a/lib/python/repoinfo.py
+++ b/lib/python/repoinfo.py
@@ -39,6 +39,12 @@ class RepoinfoConfig(object):
return [t.strip() for t in itemlist.split(',')]
def getarches(self, name):
return self._getlist(name, 'arches')
+ def getreleases(self):
+ '''Return the list of known, non-EOL releases.'''
+ return [r for r in repoinfo.repos() if self.config.get(r,'isactiverelease')]
+ def get_bodhi_releases(self):
+ '''Return the list of releases known to Bodhi.'''
+ return [r.upper() for r in self.getreleases()]
def getparents(self, name):
'''Given a repo name, give the names of its parent repos
e.g.: getparents('f13-updates-testing') -> ['f13','f13-updates]'''
diff --git a/repoinfo.conf b/repoinfo.conf
index 3241044..d36dd93 100644
--- a/repoinfo.conf
+++ b/repoinfo.conf
@@ -8,6 +8,7 @@ baseurl = http://download.fedoraproject.org/pub/fedora/linux
goldurl = %(baseurl)s/releases/%(path)s/Everything/%(arch)s/os
updatesurl = %(baseurl)s/updates/%(path)s/%(arch)s
rawhideurl = %(baseurl)s/%(path)s/%(arch)s/os
+isactiverelease =
# Rawhide
[rawhide]
@@ -19,6 +20,7 @@ collection_name = devel
# Fedora 14
[f14]
+isactiverelease = yes
path = development/14
url = %(rawhideurl)s
collection_name = F-14
@@ -37,6 +39,7 @@ collection_name = F-14
# Fedora 13
[f13]
+isactiverelease = yes
path = 13
url = %(goldurl)s
collection_name = F-13
@@ -55,6 +58,7 @@ collection_name = F-13
# Fedora 12
[f12]
+isactiverelease = yes
path = 12
url = %(goldurl)s
collection_name = F-12
--
1.7.2
13 years, 8 months
[PATCH] post-bodhi-update watcher: a few fixes
by Kamil Paral
These two patches fix some issues with post-bodhi-update watcher, as
discussed on IRC. I haven't really studied working with repoinfo.conf-style
config files, so please review if it is correct. Thanks. It is tested
and it works.
13 years, 8 months