Skip to content

Add market readiness docs and tests - #145

Open
zhbchao wants to merge 2 commits into
jaxassistant55:mainfrom
zhbchao:bounty-75-readiness-docs-tests
Open

Add market readiness docs and tests#145
zhbchao wants to merge 2 commits into
jaxassistant55:mainfrom
zhbchao:bounty-75-readiness-docs-tests

Conversation

@zhbchao

@zhbchao zhbchao commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Closes #75.

Adds market gateway readiness endpoint tests and operator-facing readiness documentation without changing existing endpoint names or default behavior.

Changes

  • Added gateway tests for /health/ready success and failure responses using httptest.NewServer with the existing gateway handler stack.
  • Documented the market gateway readiness curl command and expected ready / not ready JSON responses in docs/OPERATIONS.md.
  • Committed the required diagnostic build artifacts:
    • diagnostic/build-283afced.logd
    • diagnostic/build-283afced.json

Testing

  • PATH=/tmp/codex-go/go/bin:$PATH go test ./gateway -run TestReadinessEndpoint -count=1
  • PATH=/tmp/codex-go/go/bin:$PATH go test ./gateway -count=1
  • PATH=/tmp/codex-go/go/bin:$PATH python3 build.py -m market

Diagnostic password: 8ec9fd7fdd710eb6db5f

go test ./... -count=1 was also checked under market/; it still fails in the existing market/ai package because math.Sigmoid is undefined and a few local variables are unused. The affected gateway package passes.

Checklist

  • Relevant modules affected by these changes build locally
  • Tests pass locally
  • Diagnostic build log is committed in this PR
  • Documentation has been updated, if applicable
  • Configuration or schema changes are documented, if applicable
  • No generated build artifacts are committed, except the required diagnostic build log
  • Changes are scoped to the PR purpose and avoid unrelated cleanup
  • Security, privacy, and error-handling implications have been considered

  • I would like to request that my diagnostic build log is removed before merging

@zhbchao
zhbchao force-pushed the bounty-75-readiness-docs-tests branch from 1e77b43 to 242b71d Compare June 25, 2026 14:53
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.

[$25 BOUNTY] [Go] Add market readiness operations docs and tests

1 participant