Skip to content

Commit deb6bd3

Browse files
authored
fix(tests): skip heavy docling e2e test (#1595)
Signed-off-by: Radek Ježek <[email protected]>
1 parent c58bb35 commit deb6bd3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

apps/agentstack-server/tasks.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,12 @@ VM_NAME=e2e-test-run
260260
{{ mise_bin }} run agentstack:delete --vm-name=${VM_NAME}
261261
curl http://localhost:8333 >/dev/null 2>&1 && echo "Another instance at localhost:8333 is already running" && exit 2
262262
263+
# TODO: docling is too heavy, enable when pipeline has more resources
264+
# --set docling.enabled=true
265+
263266
{{ mise_bin }} run agentstack:start \
264267
--vm-name=${VM_NAME} \
265268
--set externalRegistries=null \
266-
--set docling.enabled=true \
267269
--set ui.enabled=false \
268270
--set auth.enabled="true" \
269271
--set auth.basic.enabled="true" \

apps/agentstack-server/tests/e2e/routes/test_files.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def create_fn(text: str) -> BytesIO:
6262

6363

6464
@pytest.mark.usefixtures("clean_up", "setup_platform_client")
65+
@pytest.mark.skip(reason="TODO: Docling is temporarily disabled because the image is too heavy")
6566
async def test_text_extraction_pdf_workflow(subtests, test_configuration, test_pdf: Callable[[str], BytesIO]):
6667
"""Test complete PDF text extraction workflow: upload -> extract -> wait -> verify"""
6768

@@ -138,6 +139,15 @@ async def test_text_extraction_plain_text_workflow(subtests):
138139
async with file.load_text_content() as loaded_text_content:
139140
assert loaded_text_content.text == text_content
140141

142+
with subtests.test("delete extraction"):
143+
await file.delete_extraction()
144+
145+
with (
146+
subtests.test("verify extraction deleted"),
147+
pytest.raises(httpx.HTTPStatusError, match="404 Not Found"),
148+
):
149+
_ = await file.get_extraction()
150+
141151

142152
@pytest.mark.usefixtures("clean_up", "setup_platform_client")
143153
async def test_context_scoped_file_access(subtests):

0 commit comments

Comments
 (0)