=== 2026-11-26T00:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=458
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (466ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 00:00 UTC" (<0666487d-f050-8e2b-c089-d5515c445e85@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWMuG-0000000B0uc-1VDr"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T01:00:02Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=421
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (431ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 01:00 UTC" (<81e7bc6f-ce4a-3f51-0021-93716129f44f@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWNqK-0000000B7H3-2AbH"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T02:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=433
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (441ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (45ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 02:00 UTC" (<4418ca29-f285-258d-9238-8d9f503fc8bc@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWOmO-0000000BDfA-0oXX"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T03:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=455
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (463ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (47ms)

  2 passed (1.3s)
[report] sent "[PASS] RACE API - 2026-11-26 03:00 UTC" (<5b9980b3-5da0-4690-5e77-1fb0951238a9@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWPiS-0000000BJu3-1MFI"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T04:00:02Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=426
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (434ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (45ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 04:00 UTC" (<c998c591-d772-ce6a-a40a-f57655904e5e@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWQeW-0000000BQgG-2l8j"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T05:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=409
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (417ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 05:00 UTC" (<0195d326-95f1-78bd-2f45-f26c389510b2@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWRaZ-0000000BYvd-43Z0"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T06:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=454
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (463ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (48ms)

  2 passed (1.3s)
[report] sent "[PASS] RACE API - 2026-11-26 06:00 UTC" (<03828329-b42d-e6de-d3da-209a41223bbe@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWSWe-0000000BfeF-1AH1"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T07:00:02Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=457
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (465ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (47ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 07:00 UTC" (<3222ee0a-b31a-5edd-0495-d5bdfc64b5ca@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWTSj-0000000BmLm-3xOu"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T08:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=488
[RACE API] FAIL - status=200 durationMs=488
  ✘  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (501ms)
◇ injected env (0) from .env
[RACE API] status=200 durationMs=467
[RACE API] PASS - received valid assistant response
  ✓  2 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (retry #1) (475ms)
[RACE API] negative test status=401
  ✓  3 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (47ms)


  1) [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit 

    Error: Assistant message content should be a string

    expect(received).toBe(expected) // Object.is equality

    Expected: "string"
    Received: "object"

      103 |       await attachContext(testInfo, result);
      104 |       console.log(`[RACE API] FAIL - status=${result.status ?? -1} durationMs=${result.durationMs ?? -1}`);
    > 105 |       throw new Error(error instanceof Error ? redact(error.message) : String(error));
          |             ^
      106 |     }
      107 |   });
      108 |
        at /home3/uatservers/public_html/cron.studyineurope.xyz/tests/api/race-api.spec.ts:105:13

    attachment #2: race-api-response-body (text/plain) ─────────────────────────────────────────────
    {"id":"chatcmpl-ba03a32443daeedc","object":"chat.completion","created":1795680003,"model":"gpt-oss-120b","choices":[{"index":0,"message":{"role":"assistant","content":null,"refusal":null,"annotations":null,"audio":null,"function_call":null,"reasoning":"We need to respond to \"hi\". The system says w...
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api/error-context.md

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api/error-context.md

  1 flaky
    [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit 
  1 passed (2.5s)
[report] sent "[PASS (flaky)] RACE API - 2026-11-26 08:00 UTC" (<753358e3-71f8-6988-7080-4d316122ab0d@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWUOn-0000000BtHt-3m9e"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T09:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=370
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (378ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.2s)
[report] sent "[PASS] RACE API - 2026-11-26 09:00 UTC" (<e8be24e3-e4b9-cfd3-51e8-8caebad6fe1d@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWVKq-0000000Bzra-1zcU"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T10:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=471
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (479ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (48ms)

  2 passed (1.3s)
[report] sent "[PASS] RACE API - 2026-11-26 10:00 UTC" (<19a82806-6247-322f-1110-82a6c8831b40@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWWGt-0000000C6CT-3lRE"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T11:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=476
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (484ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.3s)
[report] sent "[PASS] RACE API - 2026-11-26 11:00 UTC" (<db075f7b-ac32-0fe2-7691-0b033cc586a1@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWXCy-0000000CCvO-2d72"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T12:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=636
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (644ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (45ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 12:00 UTC" (<86154773-66eb-d85b-0700-589f561296b2@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWY92-0000000CKgo-0FwS"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T13:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=603
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (612ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (45ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 13:00 UTC" (<695c19e3-2de0-f852-79bf-181da9e260da@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWZ56-0000000CSkp-1QMs"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T14:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=611
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (620ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (47ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 14:00 UTC" (<07fbffb5-de98-1997-4338-cae044ebcaf8@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWa1A-0000000CbVd-2pE9"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T15:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=623
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (631ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 15:00 UTC" (<1a3807af-1a6f-0f5a-f0f2-7dd1e68ca765@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWaxF-0000000Cick-1XWR"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T16:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=617
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (626ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (45ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 16:00 UTC" (<f8e775f6-69c2-a115-a779-d25e079e74e6@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWbtI-0000000Cp9v-38V1"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T17:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=545
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (553ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.3s)
[report] sent "[PASS] RACE API - 2026-11-26 17:00 UTC" (<098c3329-ba23-e28c-4cd0-3173dab54625@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWcpM-0000000CvsR-3d3U"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T18:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=584
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (592ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 18:00 UTC" (<aef1960e-be8e-fa5c-4fd8-5879b893e13b@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWdlQ-0000000D2jl-3EiU"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T19:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=637
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (645ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 19:00 UTC" (<38221579-a291-1ded-564f-bf1e9825594f@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWehU-0000000D9md-1RZ3"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T20:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=677
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (684ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (50ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 20:00 UTC" (<37a17e05-f03f-179e-f77b-3c4975a4450f@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWfdY-0000000DH08-1b0y"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T21:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=598
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (606ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 21:00 UTC" (<68bbc11e-8813-0ad0-bc24-c993a2a80c15@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWgZc-0000000DNz0-1CLW"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T22:00:02Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=200 durationMs=626
[RACE API] PASS - received valid assistant response
  ✓  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (635ms)
[RACE API] negative test status=401
  ✓  2 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (46ms)

  2 passed (1.4s)
[report] sent "[PASS] RACE API - 2026-11-26 22:00 UTC" (<665ec71c-5254-d6e2-df66-73ab6a741b6e@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWhVh-0000000DUlG-047x"
=== run end: tests_rc=0 report_rc=0 ===
=== 2026-11-26T23:00:01Z run start ===
◇ injected env (12) from .env

Running 2 tests using 1 worker

◇ injected env (0) from .env
[RACE API] status=502 durationMs=152
[RACE API] FAIL - status=502 durationMs=152
  ✘  1 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (161ms)
◇ injected env (0) from .env
[RACE API] status=502 durationMs=157
[RACE API] FAIL - status=502 durationMs=157
  ✘  2 [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit (retry #1) (166ms)
◇ injected env (0) from .env
[RACE API] negative test status=502
  ✘  3 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (158ms)
◇ injected env (0) from .env
[RACE API] negative test status=502
  ✘  4 [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 (retry #1) (160ms)


  1) [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit 

    Error: Expected HTTP 200 but got 502

    expect(received).toBe(expected) // Object.is equality

    Expected: 200
    Received: 502

      103 |       await attachContext(testInfo, result);
      104 |       console.log(`[RACE API] FAIL - status=${result.status ?? -1} durationMs=${result.durationMs ?? -1}`);
    > 105 |       throw new Error(error instanceof Error ? redact(error.message) : String(error));
          |             ^
      106 |     }
      107 |   });
      108 |
        at /home3/uatservers/public_html/cron.studyineurope.xyz/tests/api/race-api.spec.ts:105:13

    attachment #2: race-api-response-body (text/plain) ─────────────────────────────────────────────
    <html>
    <head><title>502 Bad Gateway</title></head>
    <body>
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx/1.24.0 (Ubuntu)</center>
    </body>
    </html>
    
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api/error-context.md

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: Expected HTTP 200 but got 502

    expect(received).toBe(expected) // Object.is equality

    Expected: 200
    Received: 502

      103 |       await attachContext(testInfo, result);
      104 |       console.log(`[RACE API] FAIL - status=${result.status ?? -1} durationMs=${result.durationMs ?? -1}`);
    > 105 |       throw new Error(error instanceof Error ? redact(error.message) : String(error));
          |             ^
      106 |     }
      107 |   });
      108 |
        at /home3/uatservers/public_html/cron.studyineurope.xyz/tests/api/race-api.spec.ts:105:13

    attachment #2: race-api-response-body (text/plain) ─────────────────────────────────────────────
    <html>
    <head><title>502 Bad Gateway</title></head>
    <body>
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx/1.24.0 (Ubuntu)</center>
    </body>
    </html>
    
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api-retry1/error-context.md

    Error Context: test-results/race-api-RACE-API---Chat-C-b0ca3-ge-within-the-latency-limit-api-retry1/error-context.md

  2) [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 

    Error: Expected 401/403 for an invalid key but got 502

    expect(received).toContain(expected) // indexOf

    Expected value: 502
    Received array: [401, 403]

      111 |     console.log(`[RACE API] negative test status=${result.status}`);
      112 |     if (![401, 403].includes(result.status)) await attachContext(testInfo, result);
    > 113 |     expect([401, 403], `Expected 401/403 for an invalid key but got ${result.status}`).toContain(result.status);
          |                                                                                        ^
      114 |   });
      115 | });
      116 |
        at /home3/uatservers/public_html/cron.studyineurope.xyz/tests/api/race-api.spec.ts:113:88

    attachment #2: race-api-response-body (text/plain) ─────────────────────────────────────────────
    <html>
    <head><title>502 Bad Gateway</title></head>
    <body>
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx/1.24.0 (Ubuntu)</center>
    </body>
    </html>
    
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results/race-api-RACE-API---Chat-C-9b29c-nvalid-API-key-with-401-403-api/error-context.md

    Error Context: test-results/race-api-RACE-API---Chat-C-9b29c-nvalid-API-key-with-401-403-api/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: Expected 401/403 for an invalid key but got 502

    expect(received).toContain(expected) // indexOf

    Expected value: 502
    Received array: [401, 403]

      111 |     console.log(`[RACE API] negative test status=${result.status}`);
      112 |     if (![401, 403].includes(result.status)) await attachContext(testInfo, result);
    > 113 |     expect([401, 403], `Expected 401/403 for an invalid key but got ${result.status}`).toContain(result.status);
          |                                                                                        ^
      114 |   });
      115 | });
      116 |
        at /home3/uatservers/public_html/cron.studyineurope.xyz/tests/api/race-api.spec.ts:113:88

    attachment #2: race-api-response-body (text/plain) ─────────────────────────────────────────────
    <html>
    <head><title>502 Bad Gateway</title></head>
    <body>
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx/1.24.0 (Ubuntu)</center>
    </body>
    </html>
    
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results/race-api-RACE-API---Chat-C-9b29c-nvalid-API-key-with-401-403-api-retry1/error-context.md

    Error Context: test-results/race-api-RACE-API---Chat-C-9b29c-nvalid-API-key-with-401-403-api-retry1/error-context.md

  2 failed
    [api] › tests/api/race-api.spec.ts:72:7 › RACE API - Chat Completion Health Check › responds with a valid assistant message within the latency limit 
    [api] › tests/api/race-api.spec.ts:109:7 › RACE API - Chat Completion Health Check › rejects an invalid API key with 401/403 
[report] sent "[FAIL] API DOWN - RACE API - 2026-11-26 23:00 UTC" (<9a8a09c0-81e4-35bc-8010-8d1fe16130dc@rhysley.com>)
[report] accepted=["kunal.kumar@rhysley.com"] rejected=[] server="250 OK id=1xWiRm-0000000Dbb4-2T79"
=== run end: tests_rc=1 report_rc=0 ===
