Commit Graph

35 Commits

Author SHA1 Message Date
Sorin Sbarnea 97ca1c24c3 Drop py27 and add py38 jobs
- Dropping py27 as is out of support
- Enable py38 testing, already default python on several distros.
- removes six as a dependency as is no longer needed for pure py3

Change-Id: I1e825073abc6cd55aa2fdc363358f2701152c57b
2020-09-08 10:21:02 +01:00
Matt Riedemann 112e5a0202 Cap irc package requirement for <py34
irc 17.0 requires python >= 3.4 [1] which breaks
our py27 tox job. This caps the package at <17.0
if python<3.4 and requires irc=>17.0 if python>=3.4.

[1] https://pypi.org/project/irc/17.0/

Change-Id: I85f79c7e28dc2d6e8dfbfe96372c192c3d43b3be
Story: 2006736
Task: 37196
2019-10-16 16:28:23 -04:00
Matt Riedemann dfede97d1c Uncap SQLAlchemy in requirements.txt
Unit tests are failing because we're pulling in uncapped
alembic (by way of oslo.db which is pulled in from subunit2sql).
alembic 1.1.0, released on 2019-8-26, requires SQLAlchemy>=1.1.0
which e-r has capped at <1.1.0.

This removes the capped SQLAlchemy dependency and blacklists the
known bad versions from global-requirements.

Change-Id: Iaca9825ea2f5d75c5151b8a726ba1c0283f6536a
Closes-Bug: #1841964
2019-08-29 12:30:03 -04:00
Matt Riedemann e4ac5bfe5e Cap keyring in py27 environments
launchpadlib has an uncapped dependency on keyring and
keyring dropped support for py27 in 19.0.0 so we need to
cap keyring when running py27 unit tests.

Alternatively we could just drop support for py27...

Change-Id: I056c3ba264078d62d1ff0aebd2843be1c0062b1d
2019-05-08 11:27:49 -04:00
Sorin Sbarnea 6c4f466282 Made elastic-recheck py3 compatible
- Adds py36/py37 jobs.
- Fixed invalid syntax errors
- Bumps dependencies to versions that are py3 compatible

Change-Id: I0cebc35993b259cc86470c5ceb1016462a1d649b
Related-Bug: #1803402
2018-11-29 20:15:07 +00:00
Zuul 97d5bb6c25 Merge "Remove ceiling of python-daemon" 2018-11-19 17:34:20 +00:00
Sorin Sbarnea 33ca69cc98 Workaround for new release of httplib2
Avoids failure by pinning down httplib2 until we get a new release
of lazr-restfulclient.

Change-Id: I1775dcaeaeb69b8e74a3e5cf0d93ed8eb45db2ad
Related-Bug: #1803402
2018-11-15 17:15:08 +00:00
Sorin Sbarnea 623228a3e1 Remove ceiling of python-daemon
Reverts a workaround that was added back in 2015 due to an dependency
conflict with docutils, which was later fixed.

Change-Id: I7dc3602d8a67cccd35c1ae748229f4393bccc5a5
Story: https://storyboard.openstack.org/#!/story/2000107
2018-11-12 17:20:26 +00:00
Matthew Treinish b596d06b95
Use modern PBR and hacking packages
The pbr release 2.0.0 is breaking in that it removes the use of
warnerrors in build_sphinux. Hacking <0.11 had a similar issue so
use a newer version of that.

Change-Id: I4b27f38b2962dc70e078b8dbfd23d9df4dc415c3
2017-03-01 15:53:01 -05:00
Jenkins 615d1592dc Merge "Use new irc client and remove old jaraco irc dependencies" 2016-09-12 21:28:25 +00:00
Ramy Asselin 80062051dd Use new irc client and remove old jaraco irc dependencies
New IRC irc==15.0.1 got released and causing dependency failures.
Remove the old jaraco pins and let them get installed as needed by
the latest irc version.

Change-Id: Icc980e80ac0074a15bd7f463f43f34a27f327a61
2016-09-12 14:18:05 -07:00
Andreas Jaeger caf50835ad Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements. Also, remove python 2.6 classifier from setup.cfg. This
project is not tested with 2.6 anymore.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-21 07:58:31 +01:00
Ramy Asselin 6200d9fe45 Pin jaraco requirements to working versions
new jaraco.itertools==1.6.1 (was 1.5.1) jaraco.collections==1.2 (was 1.1) fail.
Cap these to the minor versions.

Closes-Bug: #1517724
Change-Id: I5a2d9f99899592660ccbc15f646a4978e851a4ae
2015-11-18 20:46:57 -08:00
Clark Boylan b9946fded5 Revert "Update pyelasticsearch to >=1.4"
This reverts commit 87453fe17b.

Reverting because newer pyelasticsearch does not support API roots other
than / which breaks against our root of /elasticsearch. I have pushed
https://github.com/pyelasticsearch/pyelasticsearch/pull/182 upstream to
fix so maybe we can upgrade once that gets in and is released.

Change-Id: I4ba78fac924bf6d2ec8ccda1af6970577c74e6ec
2015-11-10 13:28:27 -08:00
Ramy Asselin 87453fe17b Update pyelasticsearch to >=1.4
Update to newer version of pyelasticsearch that can take advantage of
the elasticsearch cluster upgrade to 1.7.3.

Change-Id: I4ddd007dc6e199087808a4ecfa10a903fc3f83de
2015-11-09 13:38:33 -08:00
Clark Boylan 4d8d102ffb Fix unittests
jaraco.functools 1.6 is broken and is pulled in by the irc lib. Use an
older version to avoid the brokenness. Use a real url in the fake
connection url as this is checked for correctness when creating
elasticsearch transport objects.

Change-Id: I41b5868c0c055297bb9ead1ad96486afeed9cce5
2015-11-09 13:38:32 -08:00
Clark Boylan a51fe27ba4 Update to modern pbr requirement
Old pbr did some funny things when you tried to install on repos without
tags. Bump the pbr dep so that we get deterministic behavior out of pbr
even without tags.

We should also consider making a tag or two anyways just to get
something under pbr as not everyone may have updated pbr.

Change-Id: I31c97cd81b4fdb75c96fa49d81ed1a757af1060f
2015-10-16 09:06:57 -07:00
Matthew Treinish d83ef2e5ea
Add support to filter results by failure test_ids
This commit adds a new field to the query yaml test_ids which is a
list of test_ids that will be query the subunit2sql db to verify that
at least one of them failed on the failed uuid.

Change-Id: If3668709e3294b5d6bf9e1f082396fbc39c08512
2015-08-14 17:11:39 -04:00
Matt Riedemann c4142d1779 Uncap irc, block on 11.1
irc commit 0ec844910 fixed the ImportError issue
in 11.1 so uncap and block 11.1 since 11.1.1 is out
now with the fix.

Change-Id: I3f6e6697891bca5e262165bee5a5e3600d10a942
Closes-Bug: #1423431
2015-02-19 06:47:19 -08:00
Matt Riedemann 0b11a4f27f Cap irc < 11.1 due to ImportError
irc 11.1 was released today and we now
have ImportErrors in the unit test runs
so cap irc until we figure out how to
workaround it or get the bug fixed in irc.

Change-Id: I95602f5d2f1752088b299917db1e05da2e5096ee
Related-Bug: #1423431
2015-02-18 19:37:02 -08:00
Jenkins 612b32290b Merge "Add requests to requirements" 2015-01-26 22:53:58 +00:00
Matt Riedemann 3f796f7ce9 Pin pyelasticsearch<1.0
The latest release of pyelasticsearch has some backwards
incompatible changes, pin the version until we update
elastic_search to work with the new version.

Change-Id: Ic1c3435b174c8ca5689ac8ccef8287a36fc6ce86
Partial-Bug: #1414805
2015-01-26 14:17:02 -08:00
Joe Gordon 4d25f0ed0b Add requests to requirements
graph.py requires requests, add to requirements.txt

Change-Id: I15c5dbc2e772d74f02de3c93247f593fd7e533ba
2015-01-26 13:10:04 -08:00
Joe Gordon 34ece179a3 Pin python-daemon<2.0
The latest release has a missing dependency.
Upstream bug:
https://alioth.debian.org/tracker/index.php?func=detail&aid=314945&group_id=100328&atid=413098

Change-Id: I74286e0c0cdd22d0a773658eb2a36c7410416779
Partial-Bug: #2000107
2015-01-13 13:33:56 +13:00
Matthew Treinish 20871dad7c Fix the coverage job in tox
This commit fixes the coverage job in tox. It relies on pbr to
actually make the coverage calls before and after running the tests.
However, by default pbr assumes the project name in setup.cfg is the
same as the directory containing the source. However that isn't the
case here. This commits corrects this by using the flag to pretend
that package name is the same as the source dir. This change also
sets the correct regex for testr to run the unit tests only, which is
what is needed for the coverage job. The pbr requirement is also
updated to be >=0.8.1 because this is the min version required to
use the option exploited by this patch.

Change-Id: Icea30575538571fe842632901e994be3ac0bbc80
2014-07-28 11:19:48 -04:00
Longgeek 7de7d3e172 Bump minimum pbr version to 0.6 and requ argparse module
Matches Global Requirements.In the elastic-recheck project pbr version does
not match the global requirements. No require argparse module.

Change-Id: I5f565c882317a992b645be3b578f2d6a78487690
2014-06-27 18:58:05 +08:00
Sean Dague 3c30208277 python-dateutil requires six, be explicit about it
Change-Id: I9ebab96709922708c49b5aa49a929c245f8b5cef
2014-03-02 06:48:41 -05:00
Sean Dague 4ea5d02a70 Improved timestamp parsing
Use dateutil to accept be more flexible in parsing timestamps. A recent
upgrade to ElasticSearch changed the timestamp format to use '+00:00' to
note the timezone instead of 'Z'

Co-Authored-By: Joe Gordon <joe.gordon0@gmail.com>
Change-Id: I11f441ba3bf7ba46c55921352fcc87eb5d1ce3ae
2014-02-20 20:39:41 -05:00
Sean Dague c96a8e8e6d add uncategorized failure generation code
the following adds a new tool to build a web page that will give
us a full list of all the uncategorized failures and their logs.
This gives us a todo list to start building ER queries from.

this will require an infrastructure change to run this on cron to
generate a public page.

it also brings in jinja2 for html templating, which will be useful
for future html generation jobs.

Change-Id: I5114296fbac2cde9c6b0133e2717e1cc28fb631d
2014-01-17 09:35:40 -05:00
James E. Blair 338c2135b4 Make pid file configurable
And some other fixups around starting the daemon:
* read config file before forking
* add '-d' option to avoid forking
* default pidfile to /var/run/elastic-recheck/elastic-recheck.pid
* add pidfile option to config file
* switch to python-daemon library (which is the version of the
  lib that the code was expecting anyway)
* use expanduser in the query file path (to match the rest of the
  paths)

Change-Id: I674778ef189cd216a80f74bd449cdc3b12b57a7d
2013-09-30 10:29:32 -07:00
Joe Gordon 3a46eb4fca Add launchpadlib to requirements 2013-09-23 19:02:53 -07:00
Joe Gordon 639697808e Apply Cookiecutter to the repo.
Make repo support 'tox -epep8' as we want this to be the first gating
check.
Don't make any actual code changes, just change setup and add files.
Further work is needed to re-organize the code, but that can be in a
separate patch.
2013-09-23 15:27:39 -07:00
Matthew c30528d1f1 Add irc bot support to elasticRecheck 2013-09-17 00:27:14 -04:00
Joe Gordon 9bef49d5c8 Add testtools to requirements 2013-09-14 00:19:57 -07:00
Joe Gordon 1f20b9df5c Add reqs file 2013-09-12 17:01:32 -07:00