Skip to content

Commit e6f1015

Browse files
JackWinkbrettlangdon
authored andcommitted
Fix for broken celery tests (#839)
* downgrades kombu for old redis-py tests Underlying Kombu (transport) library has bumped required version of redis-py to 3.2.0. This commit locks celery4X_redis210 to the older version of Kombu (4.3.0) that doesn't require the latest redis-py. See https://github.com/celery/kombu/blob/3e60e6503a77b9b1a987cf7954659929abac9bac/Changelog#L35 * Take two * Add new test case to circle * fix kombu44 explicit dep on redis * remove old comment
1 parent 8b04813 commit e6f1015

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,13 @@ jobs:
326326
steps:
327327
- checkout
328328
- *restore_cache_step
329-
- run: tox -e 'celery_contrib-{py27,py34,py35,py36}-celery{31,40,41,42}-redis{210}' --result-json /tmp/celery.results
329+
- run: tox -e 'celery_contrib-{py27,py34,py35,py36}-celery{31}-redis{210}' --result-json /tmp/celery.1.results
330+
- run: tox -e 'celery_contrib-{py27,py34,py35,py36}-celery{40,41,42}-{redis210-kombu43,redis320-kombu44}' --result-json /tmp/celery.2.results
330331
- persist_to_workspace:
331332
root: /tmp
332333
paths:
333-
- celery.results
334+
- celery.1.results
335+
- celery.2.results
334336
- *save_cache_step
335337

336338
elasticsearch:

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ envlist =
4444
botocore_contrib-{py27,py34,py35,py36}-botocore
4545
bottle_contrib{,_autopatch}-{py27,py34,py35,py36}-bottle{11,12}-webtest
4646
cassandra_contrib-{py27,py34,py35,py36}-cassandra{35,36,37,38,315}
47-
celery_contrib-{py27,py34,py35,py36}-celery{31,40,41,42}-redis{210}
47+
# Non-4.x celery should be able to use the older redis lib, since it locks to an older kombu
48+
celery_contrib-{py27,py34,py35,py36}-celery{31}-redis{210}
49+
# 4.x celery bumps kombu to 4.4+, which requires redis 3.2 or later, this tests against
50+
# older redis with an older kombu, and newer kombu/newer redis.
51+
# https://github.com/celery/kombu/blob/3e60e6503a77b9b1a987cf7954659929abac9bac/Changelog#L35
52+
celery_contrib-{py27,py34,py35,py36}-celery{40,41,42}-{redis210-kombu43,redis320-kombu44}
4853
dbapi_contrib-{py27,py34,py35,py36}
4954
django_contrib{,_autopatch}-{py27,py34,py35,py36}-django{18,111}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached
5055
django_contrib{,_autopatch}-{py34,py35,py36}-django{200}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached
@@ -256,8 +261,11 @@ deps =
256261
redis29: redis>=2.9,<2.10
257262
redis210: redis>=2.10,<2.11
258263
redis300: redis>=3.0.0,<3.1.0
264+
redis320: redis>=3.2.0,<3.3.0
259265
rediscluster135: redis-py-cluster>=1.3.5,<1.3.6
260266
rediscluster136: redis-py-cluster>=1.3.6,<1.3.7
267+
kombu44: kombu>=4.4,<4.5
268+
kombu43: kombu>=4.3,<4.4
261269
kombu42: kombu>=4.2,<4.3
262270
kombu41: kombu>=4.1,<4.2
263271
kombu40: kombu>=4.0,<4.1

0 commit comments

Comments
 (0)