diff --git a/.github/workflows/start-fly-runner.yml b/.github/workflows/start-fly-runner.yml index 912b40bab..e2ee21d55 100644 --- a/.github/workflows/start-fly-runner.yml +++ b/.github/workflows/start-fly-runner.yml @@ -48,6 +48,16 @@ jobs: - name: Setup Fly CLI uses: superfly/flyctl-actions/setup-flyctl@master + - name: Verify FLY_API_TOKEN is configured + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_TESTING }} + run: | + if [ -z "${FLY_API_TOKEN}" ]; then + echo "::error::FLY_API_TOKEN_TESTING secret is not configured for this repository." + echo "::error::Add a FLY_API_TOKEN_TESTING repository secret in Settings > Secrets and variables > Actions." + exit 1 + fi + - name: Get Fly app info id: get-app-info env: diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 00dfba9fe..9471fe02d 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -68,7 +68,7 @@ jobs: ports: - 5432:5432 options: >- - --health-cmd pg_isready + --health-cmd "pg_isready -U postgres" --health-interval 10s --health-timeout 5s --health-retries 5 @@ -103,8 +103,8 @@ jobs: DB_CONNECTION_URI: postgresql+psycopg://postgres:postgres@localhost:5432/test_db AUTH_USE_AUTH: false SENTRY_ENABLED: false - LLM_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - LLM_ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + LLM_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || 'test-key' }} + LLM_ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY || 'test-key' }} LLM_OPENAI_COMPATIBLE_API_KEY: test-key LLM_OPENAI_COMPATIBLE_BASE_URL: http://localhost:8000 DERIVER_PROVIDER: openai diff --git a/src/routers/conclusions.py b/src/routers/conclusions.py index 671b83693..62ad3de56 100644 --- a/src/routers/conclusions.py +++ b/src/routers/conclusions.py @@ -111,9 +111,9 @@ async def query_conclusions( if not observer or not observed: raise ValidationException( "observer and observed must be specified for semantic search. " - "Pass them inside the 'filters' object, e.g. " - '{"query": "...", "filters": {"observer": "hermes", "observed": "austin"}}. ' - "Both 'observer'/'observer_id' and 'observed'/'observed_id' are accepted." + + "Pass them inside the 'filters' object, e.g. " + + '{"query": "...", "filters": {"observer": "hermes", "observed": "austin"}}. ' + + "Both 'observer'/'observer_id' and 'observed'/'observed_id' are accepted." ) with embedding_call_purpose(