Add market readiness docs and tests - #145
Open
zhbchao wants to merge 2 commits into
Open
Conversation
zhbchao
force-pushed
the
bounty-75-readiness-docs-tests
branch
from
June 25, 2026 14:53
1e77b43 to
242b71d
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
Closes #75.
Adds market gateway readiness endpoint tests and operator-facing readiness documentation without changing existing endpoint names or default behavior.
Changes
/health/readysuccess and failure responses usinghttptest.NewServerwith the existing gateway handler stack.ready/not readyJSON responses indocs/OPERATIONS.md.diagnostic/build-283afced.logddiagnostic/build-283afced.jsonTesting
PATH=/tmp/codex-go/go/bin:$PATH go test ./gateway -run TestReadinessEndpoint -count=1PATH=/tmp/codex-go/go/bin:$PATH go test ./gateway -count=1PATH=/tmp/codex-go/go/bin:$PATH python3 build.py -m marketDiagnostic password:
8ec9fd7fdd710eb6db5fgo test ./... -count=1was also checked undermarket/; it still fails in the existingmarket/aipackage becausemath.Sigmoidis undefined and a few local variables are unused. The affectedgatewaypackage passes.Checklist