From 048b80ae154edadb3902b6916da97dfc12622c47 Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Sun, 27 Aug 2023 13:21:45 +0200 Subject: [PATCH] Run docker directly (not via script) to see what's going on --- .github/workflows/end-to-end-test.yml | 4 +++- qlever.py | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/end-to-end-test.yml b/.github/workflows/end-to-end-test.yml index 648bcce0..9495f3c2 100644 --- a/.github/workflows/end-to-end-test.yml +++ b/.github/workflows/end-to-end-test.yml @@ -49,7 +49,9 @@ jobs: working-directory: ${{github.workspace}}/olympics run: | ../qlever.py get-data - ../qlever.py docker.USE_DOCKER=true index ls -lh + docker run -it -v $(pwd):/index -w /index --entrypoint bash adfreiburg/qlever -c 'cat olympics.nt | IndexBuilderMain -F ttl -f - -i olympics' + ls -lh + # ../qlever.py docker.USE_DOCKER=true index ../qlever.py status # ../qlever.py get-data docker.USE_DOCKER=true index start status stop status diff --git a/qlever.py b/qlever.py index 395adaa1..8e94ad12 100755 --- a/qlever.py +++ b/qlever.py @@ -49,7 +49,6 @@ def __init__(self): "with_text_index": "no", "only_pso_and_pos_permutations": "no", "no_patterns": "no", - "stxxl_memory_gb": "10", }, "docker": { "image": f"qlever/qlever:{self.name}", @@ -138,7 +137,7 @@ def action_index(self, only_show=False): if index_config['with_text_index'] in \ ["from_literals", "from_text_records_and_literals"]: cmdline += " --text-words-from-literals" - if index_config['stxxl_memory_gb']: + if 'stxxl_memory_gb' in index_config: cmdline += f" --stxxl-memory-gb {index_config['stxxl_memory_gb']}" cmdline += f" | tee {self.name}.index-log.txt"