fix(robot): resolve suite setup hangs and RF7 syntax errors
- Replace blocking Run Process with Start Process for uvicorn server
- Fix RF7 IF condition syntax: ${status_code} → $status_code
- Add bash wrapper script for reliable conda env server startup
- Add Create Anonymous Session to suite setup for health check polling
- Simplify .gitignore for robot results
This commit is contained in:
@@ -26,14 +26,12 @@ ${SERVER_PROCESS} ${EMPTY}
|
||||
# ---------------------------------------------------------------------------
|
||||
Start Aniworld Server
|
||||
[Documentation] Start the FastAPI uvicorn server as a background process.
|
||||
${result}= Run Process conda run -n AniWorld python -m uvicorn src.server.fastapi_app:app
|
||||
... --host ${SERVER_HOST} --port ${SERVER_PORT}
|
||||
... --no-access-log
|
||||
${handle}= Start Process bash /home/lukas/Volume/repo/Aniworld/tests/robot/start_server.sh
|
||||
... cwd=/home/lukas/Volume/repo/Aniworld
|
||||
... stdout=${CURDIR}/../fixtures/server_stdout.log
|
||||
... stderr=${CURDIR}/../fixtures/server_stderr.log
|
||||
Set Suite Variable ${SERVER_PROCESS} ${result}
|
||||
Sleep 3s
|
||||
Set Suite Variable ${SERVER_PROCESS} ${handle}
|
||||
Sleep 5s
|
||||
|
||||
Stop Aniworld Server
|
||||
[Documentation] Terminate the uvicorn server process and clean up log files.
|
||||
@@ -49,8 +47,8 @@ Wait For Server
|
||||
${resp}= Run Keyword And Ignore Error
|
||||
... GET On Session anon /health expected_status=any
|
||||
IF '${resp}[0]' == 'PASS'
|
||||
${status_code}= Set Variable ${resp}[1].status_code
|
||||
IF ${status_code} == 200 or ${status_code} == 503
|
||||
${status_code}= Evaluate $resp[1].status_code
|
||||
IF $status_code == 200 or $status_code == 503
|
||||
RETURN
|
||||
END
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user