[Fix] Test isolation for agent health checks and documentation test path resolution

Fix agent health check tests failing with 500 errors in parallel CI by
mocking prisma_client to None. Fix documentation validation tests using
CWD-relative paths that break depending on the working directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yuneng Jiang
2026-03-28 11:00:22 -07:00
co-authored by Claude Opus 4.6
parent 428d837704
commit 7100ed5d0a
7 changed files with 48 additions and 17 deletions
@@ -0,0 +1,20 @@
name: "Unit Tests: Documentation Validation"
on:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
documentation:
uses: ./.github/workflows/_test-unit-base.yml
with:
test-path: "tests/documentation_tests"
workers: 2
reruns: 1