fix(ci): add production background job E2E verification - #799
Merged
Conversation
github-actions
Bot
force-pushed
the
fix/588-prod-job-e2e-verification
branch
from
May 23, 2026 19:48
81d1b32 to
84121e8
Compare
manavgup
force-pushed
the
fix/588-prod-job-e2e-verification
branch
from
May 23, 2026 19:55
84121e8 to
5b53a37
Compare
Production deploy verification previously only checked that background_mode == "arq" in the health response, which proves config is set but not that jobs actually execute. Add a lightweight ping job that proves the full pipeline: API -> Redis -> ARQ worker -> result. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove /health/job-ping from auth EXEMPT_PATHS so it requires authentication (prevents unauthenticated abuse of side-effecting endpoint) - Add Depends(get_current_user_id) to the job_ping route handler - Move job-ping check after auth token exchange in both staging and production verification steps so the Bearer token is available - Remove acceptance of status=="skipped" — contradicts the background_mode == "arq" check that runs first (if mode is arq, skipped is an error) - Add retry with backoff (5 attempts, 5/10/15/20/25s delays) to handle worker startup delays after deploy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
github-actions
Bot
force-pushed
the
fix/588-prod-job-e2e-verification
branch
from
May 23, 2026 20:03
5b53a37 to
1c10395
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pingARQ job that returns"pong"immediately, proving the full background pipeline works (API -> Redis -> ARQ worker -> result)/health/job-pingendpoint that enqueues the ping, polls for completion with a 30s timeout, and returns structured status with latencydeploy.ymlto call this endpoint and fail the deploy if the job does not completeTest plan
make verifypasses (2088 tests pass, lint clean, types clean)/health/job-pingendpoint appears in regenerated OpenAPI spec{"status": "skipped"}in dev mode (no Redis){"status": "ok", "result": "pong"}in prod mode with healthy workerCloses #588
🤖 Generated with Claude Code