mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-12 23:37:36 +00:00
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:
parent
56d033e7e7
commit
929b8d1fb0
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user