From d444375df5f33226b8aa03eb237b9899f695b173 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Fri, 13 Sep 2013 16:29:54 -0700 Subject: [PATCH] Cleanup and document future work --- README.md | 11 +++++++++++ elasticRecheck.py | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd0cbea1..179e26e2 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,23 @@ elasticRecheck ============== +Classify tempest-devstack failures using a list of elastic search queries. + Idea ---- When a tempest job failure is detected, by monitoring gerrit (using gerritlib), a collection of logstash queries will be run on the failed job to detect what the bug was. Eventually this can be tied into the rechecker tool and launchpad +Future Work +------------ +- [ ] IRC bot output to #openstack-qa with output +- [ ] Pull in list of queries from a more flexible source, so a commit isn't needed to update each time +- [ ] https://bugs.launchpad.net/openstack-ci/+bug/1225108 +- [ ] Turn into a server app +- [ ] Comment on classified failures saying what the issue probably is +- [ ] Make unit tests robust and not need internet + Dependencies ------------ - gerritlib diff --git a/elasticRecheck.py b/elasticRecheck.py index 29c66e8a..6f52b40b 100755 --- a/elasticRecheck.py +++ b/elasticRecheck.py @@ -105,7 +105,6 @@ class Classifier(): for x in self.queries: print "Looking for bug: https://bugs.launchpad.net/bugs/%s" % x['bug'] query = self._apply_template(self.general_template, x['query']) - print query results = self.es.search(query, size='10') self._parse_results(results) @@ -131,13 +130,11 @@ class Classifier(): break else: time.sleep(40) - print "READY!" for x in self.queries: print "Looking for bug: https://bugs.launchpad.net/bugs/%s" % x['bug'] query = self._apply_template(self.targeted_template, (x['query'], change_number, patch_number)) results = self.es.search(query, size='1') - print results if results['hits']['total']>0: print "Found bug!" return x['bug']