Skip to content

fix(showcase): verify-deploy skips probe-ineligible services per env (prod verify-prod crash) - #5753

Merged
jpr5 merged 1 commit into
mainfrom
fix/showcase-verify-deploy-probe-eligibility
Jun 28, 2026
Merged

jpr5 merged 1 commit into
mainfrom
fix/showcase-verify-deploy-probe-eligibility

Conversation

@jpr5

@jpr5 jpr5 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

The crash

Promote CI run 28333317081 PROMOTED llamaindex into prod successfully, but the verify-prod job then crashed:

verify-deploy crashed: service "harness-workers" is not probe-eligible for env "prod" (probe.prod=false in SSOT)

exit 2 → the whole run was marked failed even though the promote itself succeeded.

verify-prod runs npx tsx verify-deploy.ts --env prod --services "<promoted set>". That set includes harness-workers, which is intentionally probe.prod=false (and probe.staging=false) in the SSOT. verify-deploy.ts HARD-ERRORED (exit 2) on any --services entry that wasn't probe-eligible for the target env.

Sibling fix #5752 fixed the staging path by passing an opt-in --skip-ineligible flag from the promote staging precondition. But the verify-prod job calls verify-deploy.ts directly without that flag, so the prod path still crashed.

The fix

Generalize the eligibility filter into verify-deploy.ts itself instead of relying on each caller to remember a flag:

  • parseArgs now defaults skipIneligible to true (skip-by-default). A known-but-not-probe-eligible service for the requested env is SKIPPED with an N/A — not probe-eligible for env <env> (probe.<env>=false in SSOT), skipped status 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.
  • When every requested service is ineligible (e.g. the promoted set is just harness-workers), runVerify exits 0 with a clear "nothing to probe" note, distinct from the empty-filter vacuous-green fault (which still fails loud).
  • Unknown (non-SSOT) names STILL hard-error on every path — a typo is a real fault, never a legitimate skip.
  • Added --strict-eligibility to opt back into the old hard-refuse for an explicit single-service probe. --skip-ineligible is 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):

$ npx tsx verify-deploy.ts --env prod --services harness-workers
verify-deploy crashed: service "harness-workers" is not probe-eligible for env "prod" (probe.prod=false in SSOT)
EXIT=2

GREEN (after):

$ npx tsx verify-deploy.ts --env prod --services harness-workers
  harness-workers                      N/A — not probe-eligible for env prod (probe.prod=false in SSOT), skipped
verify-deploy --env=prod targets=0 — nothing to probe (all requested services are not probe-eligible for env prod, skipped)
EXIT=0

Regression — eligible service still probed and red-gated:

$ npx tsx verify-deploy.ts --env prod --services harness-workers,showcase-llamaindex
  harness-workers                      N/A — not probe-eligible for env prod (probe.prod=false in SSOT), skipped
verify-deploy --env=prod targets=1
  showcase-llamaindex                  showcase-llamaindex-production.up.railway.app FAIL: agent: Railway GraphQL errors [...]: Not Authorized
1 service(s) failed verify in prod

harness-workers is skipped; showcase-llamaindex is resolved (targets=1) and the live probe runs (reaches the Railway GraphQL call). It reports red here only because the local env has no RAILWAY_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-llamaindex alone behaves identically (targets=1, probe runs).

Guards preserved:

$ npx tsx verify-deploy.ts --env prod --services harness-workers --strict-eligibility
verify-deploy crashed: service "harness-workers" is not probe-eligible for env "prod" ...  (exit 2)

$ npx tsx verify-deploy.ts --env prod --services bogus-typo
verify-deploy crashed: unknown service "bogus-typo" (not in SSOT). ...  (exit 2)

Tests

npx vitest run __tests__/verify-deploy.test.ts → 37 passed. Updated the default-flag assertions, added --strict-eligibility parse coverage, and added a runVerify test for the all-ineligible "nothing to probe" exit-0 path. (4 pre-existing emit-railway-envs-json.test.ts failures are an unrelated oxfmt tooling issue — confirmed failing on clean origin/main without this change.)

🤖 Generated with Claude Code

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.
@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@github-actions

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 41 services digest-pinned.

Run 2026-06-28 12:39:35 PDT — 0 finding(s).

@jpr5
jpr5 merged commit 39ae165 into main Jun 28, 2026
24 checks passed
@jpr5
jpr5 deleted the fix/showcase-verify-deploy-probe-eligibility branch June 28, 2026 19:40
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.

1 participant