[codex] fix CI Railway health probes for deployment drift checks#1285
Merged
[codex] fix CI Railway health probes for deployment drift checks#1285
Conversation
andres-linero
approved these changes
Apr 8, 2026
agent-bom
approved these changes
Apr 8, 2026
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
RAILWAY_MCP_URLis configured as the bare host or the/mcpendpointRoot Cause
The deployment drift workflow and the post-deploy verification step assumed
RAILWAY_MCP_URLalways pointed at the health base URL. Elsewhere in the repo, Railway MCP URLs are also represented as the/mcpendpoint for registry publishing. That mismatch could make CI probe the wrong path and fall back tounknown, creating false-positive drift alerts like#1281even when Railway was serving the expected version.Validation
pytest -q tests/test_deployment.py tests/test_deployment_probe.pyruff check src/agent_bom/deployment_probe.py tests/test_deployment.py tests/test_deployment_probe.pyPYTHONPATH=src python3 -m agent_bom.deployment_probe --base-url https://agent-bom-mcp.up.railway.app/mcp --attempts 2 --backoff-seconds 1 --timeout 15Impact
CI now resolves the canonical
/healthendpoint consistently, retries transient failures, and only flags actual deployment drift instead of URL-shape mismatches.