Skip to content

Fix PR preview backend startup verification - #2062

Merged
integry merged 1 commit into
mainfrom
fix/pr-preview-backend-startup
Sep 2, 2026
Merged

integry merged 1 commit into
mainfrom
fix/pr-preview-backend-startup

Conversation

@integry

@integry integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • preserve PROPR_GH_RELAY_TOKEN in the narrow credential allowlist used by approved same-repository previews
  • wait for the API health endpoint and verify all backend containers remain running before reporting deployment success
  • emit backend status and startup logs when verification fails
  • add mocked regression coverage and include it in the fast unit suite

Root cause

The staging environment selects relay authentication, but preview sanitization removed PROPR_GH_RELAY_TOKEN. The API, daemon, worker, analysis worker, and indexing worker therefore exited immediately while docker compose up -d still returned success.

Validation

  • npm run test:unit (282 passed)
  • node scripts/run-test-suite.mjs test/deployPrPreview.test.mjs
  • sh -n scripts/deploy-pr.sh
  • git diff --check

@integry
integry merged commit ac4e917 into main Sep 2, 2026
13 checks passed
@integry
integry deleted the fix/pr-preview-backend-startup branch September 2, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants