Repository navigation
fix(showcase): verify-deploy skips probe-ineligible services per env (prod verify-prod crash) - #5753
Merged
Merged
Conversation
The promote workflow's verify-prod job calls verify-deploy.ts directly (--env prod --services <promoted set>) without #5752's --skip-ineligible flag, so a known-but-ineligible service (harness-workers, probe.prod=false) hard-errored exit 2 and crashed the gate AFTER a successful promote (CI run 28333317081: llamaindex landed, then verify-prod crashed). Generalize the eligibility filter into verify-deploy.ts itself rather than relying on each caller to pass a flag: flip skipIneligible to ON by default in the CLI (parseArgs). A known-but-not-probe-eligible service for the requested env is now SKIPPED with an `N/A — not probe-eligible ... skipped` status line and the eligible subset is probed. Works for ANY --env, so it composes with #5752's staging path and fixes the direct prod-verify call. When EVERY requested service is ineligible (e.g. promoted set is just harness-workers), runVerify exits 0 with a "nothing to probe" note instead of the vacuous-green FAIL — distinct from the empty-filter fault, which still fails loud. Unknown (non-SSOT) names STILL hard-error on every path (a typo is a real fault). Added --strict-eligibility to opt back into the hard-refuse; --skip-ineligible kept as an explicit no-op for back-compat. Red: `verify-deploy.ts --env prod --services harness-workers` crashed exit 2. Green: same command skips (N/A) and exits 0. Mixed set harness-workers,showcase-llamaindex skips workers and still probes (and red-gates) llamaindex.
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
June 28, 2026 19:39
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Contributor
Production Digest-Pinning AuditAll 41 services digest-pinned. Run 2026-06-28 12:39:35 PDT — 0 finding(s). |
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.
The crash
Promote CI run 28333317081 PROMOTED llamaindex into prod successfully, but the
verify-prodjob then crashed:exit 2 → the whole run was marked failed even though the promote itself succeeded.
verify-prodrunsnpx tsx verify-deploy.ts --env prod --services "<promoted set>". That set includesharness-workers, which is intentionallyprobe.prod=false(andprobe.staging=false) in the SSOT.verify-deploy.tsHARD-ERRORED (exit 2) on any--servicesentry that wasn't probe-eligible for the target env.Sibling fix #5752 fixed the staging path by passing an opt-in
--skip-ineligibleflag from the promote staging precondition. But theverify-prodjob callsverify-deploy.tsdirectly without that flag, so the prod path still crashed.The fix
Generalize the eligibility filter into
verify-deploy.tsitself instead of relying on each caller to remember a flag:parseArgsnow defaultsskipIneligibleto true (skip-by-default). A known-but-not-probe-eligible service for the requested env is SKIPPED with anN/A — not probe-eligible for env <env> (probe.<env>=false in SSOT), skippedstatus line, and only the eligible subset is probed. Works for any--env, so it composes with fix(showcase/railway): P3 promote gate skips non-staging-probe-eligible services #5752's staging path and fixes the direct prod-verify call — no workflow change needed.harness-workers),runVerifyexits 0 with a clear "nothing to probe" note, distinct from the empty-filter vacuous-green fault (which still fails loud).--strict-eligibilityto opt back into the old hard-refuse for an explicit single-service probe.--skip-ineligibleis kept as an explicit no-op for back-compat with the fix(showcase/railway): P3 promote gate skips non-staging-probe-eligible services #5752 staging-precondition caller.This completes #5752 for the prod path.
Red → green (real surface,
showcase/scripts)RED (before):
GREEN (after):
Regression — eligible service still probed and red-gated:
harness-workersis skipped;showcase-llamaindexis resolved (targets=1) and the live probe runs (reaches the Railway GraphQL call). It reports red here only because the local env has noRAILWAY_TOKEN("Not Authorized") — that live-probe step is env-blocked locally, but it proves the eligible service is still probed and gates red, not silently skipped.showcase-llamaindexalone behaves identically (targets=1, probe runs).Guards preserved:
Tests
npx vitest run __tests__/verify-deploy.test.ts→ 37 passed. Updated the default-flag assertions, added--strict-eligibilityparse coverage, and added a runVerify test for the all-ineligible "nothing to probe" exit-0 path. (4 pre-existingemit-railway-envs-json.test.tsfailures are an unrelatedoxfmttooling issue — confirmed failing on cleanorigin/mainwithout this change.)🤖 Generated with Claude Code