ci: run Elasticsearch 8.6 in compatibility mode (#3853)

* bump ES version in CI

disable ssl

wait for service to start

set env vars

do not use choco to install ES

re-enable jobs deps

skip test on windows CI because of OOM

allocate more memory for ES

uniform ES installation and use default heap size

skip tests causing OOM

increase job timeout

restore memory limit for ES8

* Use latest elasticsearch version
This commit is contained in:
Massimiliano Pippi 2023-05-24 18:53:54 +02:00 committed by GitHub
parent 56d033e7e7
commit 929b8d1fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -193,10 +193,12 @@ jobs:
runs-on: ${{ matrix.os }}
services:
elasticsearch:
image: elasticsearch:7.17.6
image: elasticsearch:8.7.1
env:
discovery.type: "single-node"
xpack.security.enabled: "false"
ES_JAVA_OPTS: "-Xms128m -Xmx256m"
ELASTIC_CLIENT_APIVERSIONING: 1
ports:
- 9200:9200
steps:

View File

@ -33,6 +33,7 @@ def test_rag_deprecation():
pass
@pytest.mark.skipif(sys.platform in ["win32", "cygwin"], reason="Causes OOM on windows github runner")
@pytest.mark.integration
@pytest.mark.generator
def test_rag_token_generator(rag_generator, docs_with_true_emb):
@ -43,6 +44,7 @@ def test_rag_token_generator(rag_generator, docs_with_true_emb):
assert "berlin" in answers[0].answer
@pytest.mark.skipif(sys.platform in ["win32", "cygwin"], reason="Causes OOM on windows github runner")
@pytest.mark.integration
@pytest.mark.generator
@pytest.mark.parametrize("document_store", ["memory"], indirect=True)
@ -82,6 +84,7 @@ def test_lfqa_pipeline(document_store, retriever, lfqa_generator, docs_with_true
assert "Germany" in answers[0].answer, answers[0].answer
@pytest.mark.skipif(sys.platform in ["win32", "cygwin"], reason="Causes OOM on windows github runner")
@pytest.mark.integration
@pytest.mark.generator
@pytest.mark.parametrize("document_store", ["memory"], indirect=True)