Skip to content

Commit 15bd5dd

Browse files
authored
Fix new behavior in ElasticSearch 7 (#309)
* Fix new behavior in elasticsearch07 * Fix collision in tox naming
1 parent 3211124 commit 15bd5dd

File tree

2 files changed

+89
-4
lines changed

2 files changed

+89
-4
lines changed

.github/workflows/tests.yml

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ jobs:
832832
TOX_PARALLEL_NO_SPINNER: 1
833833
PY_COLORS: 0
834834

835-
elasticsearch:
835+
elasticsearchserver01:
836836
env:
837837
TOTAL_GROUPS: 1
838838

@@ -917,6 +917,91 @@ jobs:
917917
TOX_PARALLEL_NO_SPINNER: 1
918918
PY_COLORS: 0
919919

920+
elasticsearchserver07:
921+
env:
922+
TOTAL_GROUPS: 1
923+
924+
strategy:
925+
matrix:
926+
group-number: [1]
927+
928+
runs-on: ubuntu-latest
929+
930+
services:
931+
es01:
932+
image: elasticsearch:7.13.2
933+
env:
934+
"discovery.type": "single-node"
935+
ports:
936+
- 8080:9200
937+
- 8081:9200
938+
# Set health checks to wait until elasticsearch has started
939+
options: >-
940+
--health-cmd "curl --silent --fail localhost:9200/_cluster/health || exit 1"
941+
--health-interval 10s
942+
--health-timeout 5s
943+
--health-retries 5
944+
945+
steps:
946+
- uses: actions/checkout@v2
947+
948+
# Set up all versions of python
949+
- uses: actions/setup-python@v2
950+
with:
951+
python-version: pypy3
952+
architecture: x64
953+
954+
# Set up pypy2 after pypy3 to ensure pypy isn't aliased to pypy3
955+
- uses: actions/setup-python@v2
956+
with:
957+
python-version: pypy2
958+
architecture: x64
959+
960+
- uses: actions/setup-python@v2
961+
with:
962+
python-version: 2.7
963+
architecture: x64
964+
965+
- uses: actions/setup-python@v2
966+
with:
967+
python-version: 3.6
968+
architecture: x64
969+
970+
- uses: actions/setup-python@v2
971+
with:
972+
python-version: 3.7
973+
architecture: x64
974+
975+
- uses: actions/setup-python@v2
976+
with:
977+
python-version: 3.8
978+
architecture: x64
979+
980+
# Set up python 3.9 last to ensure tox runs CPython
981+
- uses: actions/setup-python@v2
982+
with:
983+
python-version: 3.9
984+
architecture: x64
985+
986+
- name: Install Dependencies
987+
run: |
988+
pip install -U pip
989+
pip install -U wheel setuptools tox virtualenv!=20.0.24
990+
991+
- name: Get Environments
992+
id: get-envs
993+
run: |
994+
echo "::set-output name=envs::$(tox -l | grep "^${{ github.job }}\-" | ./.github/workflows/get-envs.py)"
995+
env:
996+
GROUP_NUMBER: ${{ matrix.group-number }}
997+
998+
- name: Test
999+
run: |
1000+
tox -vv -e ${{ steps.get-envs.outputs.envs }} -p auto
1001+
env:
1002+
TOX_PARALLEL_NO_SPINNER: 1
1003+
PY_COLORS: 0
1004+
9201005
gearman:
9211006
env:
9221007
TOTAL_GROUPS: 1

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ envlist =
6464
python-cross_agent-pypy-without_extensions,
6565
postgres-datastore_asyncpg-{py36,py37,py38,py39},
6666
memcached-datastore_bmemcached-{pypy,py27,py36,py37,py38,py39}-memcached030,
67-
elasticsearch-datastore_elasticsearch-py27-elasticsearch{00,01,02,05},
68-
elasticsearch-datastore_elasticsearch-{py27,py36,py37,py38,py39,pypy,pypy3}-elasticsearch{07},
67+
elasticsearchserver01-datastore_pyelasticsearch-{py27,py36,pypy},
68+
elasticsearchserver01-datastore_elasticsearch-py27-elasticsearch{00,01,02,05},
69+
elasticsearchserver07-datastore_elasticsearch-{py27,py36,py37,py38,py39,pypy,pypy3}-elasticsearch{07},
6970
memcached-datastore_memcache-{py27,py36,py37,py38,py39,pypy,pypy3}-memcached01,
7071
mysql-datastore_mysql-mysql080023-py27,
7172
mysql-datastore_mysql-mysqllatest-{py36,py37,py38},
7273
postgres-datastore_postgresql-{py36,py37,py38,py39},
7374
postgres-datastore_psycopg2-{py27,py36,py37,py38}-psycopg20208,
7475
postgres-datastore_psycopg2cffi-{py27,py36,pypy}-psycopg2cffi{0207,0208},
7576
postgres-datastore_psycopg2cffi-py37-psycopg2cffi0208,
76-
elasticsearch-datastore_pyelasticsearch-{py27,py36,pypy},
7777
memcached-datastore_pylibmc-{py27,py36,py37},
7878
memcached-datastore_pymemcache-{py27,py36,py37,py38,py39,pypy,pypy3},
7979
mongodb-datastore_pymongo-{py27,py36,py37,py38,py39,pypy}-pymongo{02,03},

0 commit comments

Comments
 (0)