Commit Graph

14 Commits

Author SHA1 Message Date
Matt Riedemann fbdbbc0f40 Switch gerrit URL to review.opendev.org
As of the great renaming of 2019 we need to update the
openstack gerrit URL default to review.opendev.org.

Change-Id: I2e3f7e7fb03be0deba0c95995265376dbce3c5b6
Story: #2005498
Task: #30599
2019-04-22 11:55:55 -04:00
Paul Belanger 1af432d0a5 Switch to jobs_re for config setting
To avoid confusion, switch everything to use jobs_re for recheckwatch
config.

Change-Id: I1a84db6ec346a32f38e00560c1b322e7d377d434
Needed-By: I1e2369225c9bd83296684af0dd9ea0514d9098c4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-07 13:53:53 -04:00
Ihar Hrachyshka 69807fc6eb Capture all dsvm jobs with the default jobs regex
This should make elastic recheck to capture queries in projects like
neutron where the previous regex was not working for quite some time.

(In neutron gate, full job is called
gate-tempest-dsvm-neutron-full-ubuntu-xenial; there are some jobs that
don't even have 'tempest' in their names that should still participate
in the elastic recheck, like grenade jobs, or rally; all of them have
'dsvm' part though).

Speaking of the regex, probably it should have also be applied to
separate job names before classifying them. But I'll leave it for a
follow-up.

Change-Id: If98951d13ba82833444ef4ffbb7c6be179126f2b
2016-11-10 11:09:49 +00:00
Ramy Asselin 5261615d24 Make uncategorized_fails.py configurable
There are a few hardcoded strings and numbers in uncategorized_fails.
Make these configurable so that it is easier to reuse this tool.
Also add some debug logging.

Change-Id: Ie62ce83bb43dcc8d9b382fe6719fe57eacc5727b
2016-09-21 12:14:21 -07:00
Ramy Asselin 49999256f4 Make Elastic Recheck Watch more reusable
Refactor to use a config class to hold all the
params needed so that they can be more easily
overridden and reused across all the
elastic-recheck tools.

In addition, use the new class to make the
jobs_regex and ci_username configurable.

Change-Id: Ic6f115a6882494bf4c087ded4d7cafa557765c28
2016-09-20 18:11:30 -07:00
Nate Marsella 9308535283 Make the index format string configurable in the conf file.
This allows query to work against indices not named the
typical "logstash-%Y.%m.%d".

Change-Id: I89a5b293b8e23cc81a8ed33d86c173adca927d28
2016-04-25 09:54:30 -04:00
Matt Riedemann 429d4aca85 Fix default port in elastic search URL
pyelasticsearch>1.0 defaults the port to 9200 but logstash.o.o/es
is on port 80, so update the defaults in code and config samples.

Change-Id: Ibb85cd29e1cbc3ff448aa8470854fe0f8bede260
2015-11-10 09:00:51 -08:00
Ramy Asselin 96dca00b19 Enable configurable uris in uncategorized_fails.py
Currently it is not possible to point to a different database or
elastic search engine. Make these configurable by using the
same configuration file used by bot.py.

Also add a logstash url so that it can be configured separately
from elastic search url.

Change-Id: I77e4215765e32c34b67c38e37e5764c6c0e45c84
2015-10-20 20:23:18 +00:00
Matthew Treinish 48ebc14283
Add config flags for data source configuration
This commit adds options to the config file for the elastic recheck
bot configuration file. This enables users to specify how to connect
to an elastic recheck server and a subunit2sql database, but things
will still default to using the openstack-infra servers to prevent
breaking the running service.

Change-Id: I10db1a568cc01e137e5f4d8a8814b17201c4c438
2015-08-18 17:34:10 -04:00
Sean Dague 932986a876 move queries.yaml into a queries subdir
this handles the piece of work we've been talking about for a while
in moving the queries.yaml file into a directory with a bunch of
files. These remain yaml so that they can be tagged with additional
metadata. This would support the concept of soft deleting as well
as other useful meta data to gauge our evolution of the bugs we
track over time.

This should see some real review as it's extensive enough of a
change that the existing tests might not be sufficient. However it
should be enough to move this forward quite a bit.

This also makes future looking statements about doing soft deletes
with a resolved_at keyword in the future. That implementation will
come later.

Change-Id: I86317fcf6f1886ab5b6c0ee154b29e71865c52b7
2013-12-02 11:43:00 -05:00
zhaoxinyu dfb4854865 The key's value is misleading in the config sample.
*A private key is required here instead of public key.

Change-Id: I12fd159990eade5d33670d8aa054ad3cb73bcb9b
2013-10-18 19:57:21 -07:00
James E. Blair f173f8b8b3 Switch queries file to YAML
It is easier for a human to read, and by virtue of not requiring
escaped quotes, easier to copy/paste into a logstash field.

When copy/pasting, the newlines won't show up in the input field.
The '>' syntax in YAML indicates folding, which causes the newline
and indentation to be turned into a single space.

Change-Id: Ibd172fd4859c055096609f31ef09222147c34cf3
2013-09-30 08:48:41 -07:00
Matthew Treinish fce600e64c Add ssh key to config file
Using daemonContext requires a full path for all files that are
opened. So this adds the ssh key to the config file to ensure that
the irc bot can find the right key.
2013-09-19 12:12:10 -04:00
Joe Gordon 1eb0ad21eb Rename conf to conf.sample
The config file is user specific, so just have a sample file and add
elasticRecheck.conf to gitignore.
2013-09-18 14:59:35 -07:00