Skip to content

Commit 2a71d90

Browse files
jezekra1edengilbert
authored andcommitted
fix(tests): use maximize disk space action (i-am-bee#1607)
Signed-off-by: Radek Ježek <[email protected]> Signed-off-by: Eden Gilbert <[email protected]>
1 parent 77f9b11 commit 2a71d90

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

.github/workflows/e2e-test.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ on:
2020
jobs:
2121
e2e-test:
2222
runs-on: ubuntu-latest
23+
env:
24+
AGENTSTACK__HOME: ${{ github.workspace }}/.agentstack
2325
steps:
26+
- name: Maximize build space
27+
uses: easimon/maximize-build-space@master
28+
with:
29+
root-reserve-mb: 15360
30+
temp-reserve-mb: 2048
31+
swap-size-mb: 1024
32+
remove-dotnet: 'true'
2433
- uses: actions/checkout@v4
2534
- name: "Set up Lima"
2635
uses: lima-vm/lima-actions/setup@v1
@@ -35,9 +44,9 @@ jobs:
3544
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3645
- run: mise run agentstack-server:test:e2e
3746
env:
38-
LLM_API_BASE: "${{ secrets.OPENAI_API_BASE }}"
39-
LLM_MODEL: "${{ secrets.OPENAI_MODEL }}"
40-
LLM_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
41-
# LLM_API_BASE: "https://api.groq.com/openai/v1"
42-
# LLM_MODEL: "groq:meta-llama/llama-4-maverick-17b-128e-instruct"
43-
# LLM_API_KEY: "${{ secrets.GROQ_API_KEY }}"
47+
# LLM_API_BASE: "${{ secrets.OPENAI_API_BASE }}"
48+
# LLM_MODEL: "${{ secrets.OPENAI_MODEL }}"
49+
# LLM_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
50+
LLM_API_BASE: "https://api.groq.com/openai/v1"
51+
LLM_MODEL: "groq:meta-llama/llama-4-maverick-17b-128e-instruct"
52+
LLM_API_KEY: "${{ secrets.GROQ_API_KEY }}"

apps/agentstack-server/tasks.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ 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-
266263
{{ mise_bin }} run agentstack:start \
267264
--vm-name=${VM_NAME} \
268265
--set externalRegistries=null \
@@ -271,6 +268,7 @@ curl http://localhost:8333 >/dev/null 2>&1 && echo "Another instance at localhos
271268
--set auth.basic.enabled="true" \
272269
--set auth.basic.adminPassword="test-password" \
273270
--set auth.jwtSecretKey="test-secret-key" \
271+
--set docling.enabled=true \
274272
--set providerBuilds.enabled=true \
275273
--set localDockerRegistry.enabled=true
276274

apps/agentstack-server/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestConfiguration(BaseSettings):
2727
llm_api_base: Secret[str] = Secret("http://localhost:11434/v1")
2828
llm_model: str = "other:llama3.1:8b"
2929
llm_api_key: Secret[str] = Secret("dummy")
30-
test_agent_image: str = "ghcr.io/i-am-bee/agentstack/agents/chat:0.4.0-rc1"
30+
test_agent_image: str = "ghcr.io/i-am-bee/agentstack/agents/chat:0.4.2-rc1"
3131
test_agent_build_repo: str = "https://github.com/i-am-bee/agentstack-starter"
3232
server_url: str = "http://agentstack-server-svc:8333"
3333
db_url: str = "postgresql+asyncpg://agentstack-user:password@postgresql:5432/agentstack"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ 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")
6665
async def test_text_extraction_pdf_workflow(subtests, test_configuration, test_pdf: Callable[[str], BytesIO]):
6766
"""Test complete PDF text extraction workflow: upload -> extract -> wait -> verify"""
6867

tasks.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export __OLD_PS1="$PS1"
171171
export __OLD_LIMA_HOME="$LIMA_HOME"
172172
export __OLD_KUBECONFIG="$KUBECONFIG"
173173
174-
export KUBECONFIG="${HOME}/.agentstack/lima/${VM_NAME}/copied-from-guest/kubeconfig.yaml"
175-
export LIMA_HOME=~/.agentstack/lima
174+
export KUBECONFIG="${AGENTSTACK__HOME:-${HOME}/.agentstack}/lima/${VM_NAME}/copied-from-guest/kubeconfig.yaml"
175+
export LIMA_HOME=${AGENTSTACK__HOME:-${HOME}/.agentstack}/lima
176176
export PS1="(${VM_NAME}) ${__OLD_PS1}"
177177
178178
"""

0 commit comments

Comments
 (0)