From dd2ad3dec7ab36c6aeb5be13e4322eb213c35e9d Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Sun, 18 May 2025 13:54:40 -0600 Subject: [PATCH] python server --- .github/workflows/llmsecops-cicd.llm.yml | 4 +--- .github/workflows/llmsecops-cicd.llm_rag.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/llmsecops-cicd.llm.yml b/.github/workflows/llmsecops-cicd.llm.yml index 779bd3777..29c411e79 100644 --- a/.github/workflows/llmsecops-cicd.llm.yml +++ b/.github/workflows/llmsecops-cicd.llm.yml @@ -33,7 +33,7 @@ jobs: - name: 'run HTTP server and call REST API' run: | - nohup python -m tests.api.server > server.log 2>&1 & + python -m tests.api.server sleep 2 curl -X POST -i localhost:9999/api/conversations -d '{ "prompt": "describe a random planet in our solar system in 10 words or less" }' || exit 1 echo @@ -43,8 +43,6 @@ jobs: --generator_option_file ${{ github.workspace }}/tests/tools/garak.rest.llm.json \ --model_type=rest \ --parallel_attempts 32 - - cat server.log - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 with: diff --git a/.github/workflows/llmsecops-cicd.llm_rag.yml b/.github/workflows/llmsecops-cicd.llm_rag.yml index 49c74bfbc..d5e65a914 100644 --- a/.github/workflows/llmsecops-cicd.llm_rag.yml +++ b/.github/workflows/llmsecops-cicd.llm_rag.yml @@ -33,7 +33,7 @@ jobs: - name: 'run HTTP server and call REST API' run: | - nohup python -m tests.api.server > server.log 2>&1 & + python -m tests.api.server sleep 2 curl -X POST -i localhost:9999/api/conversations -d '{ "prompt": "describe a random planet in our solar system in 10 words or less" }' || exit 1 echo @@ -44,8 +44,6 @@ jobs: --model_type=rest \ --parallel_attempts 32 - cat server.log - - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 with: name: 'garak_report'