Skip to content

Fix test deployment - #91

Merged
shuchenliu merged 2 commits into
mainfrom
fix-test-deployment
Aug 25, 2026
Merged

shuchenliu merged 2 commits into
mainfrom
fix-test-deployment

Conversation

@shuchenliu

Copy link
Copy Markdown
Member

fix deployment env to accommodate test instance rollout

The test cluster sits behind an ingress that routes on the Host header, so
"test" carries the header explicitly alongside its resolved host rather than
leaving it to the URL. Verified against the forwarded service: the request
returns 200 with the header and 404 without it.

"test_local_forward" pairs the same header with localhost:9200, mirroring
ci_local_forward, since the direct host is not reachable outside the cluster.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the annotator’s default Elasticsearch connection preset and deployment defaults to support a new “test” instance rollout while keeping backward compatibility with the prior ci naming.

Changes:

  • Rename the default Elasticsearch connection preset from ci to in_cluster, while keeping ci as an alias.
  • Add new Elasticsearch connection presets for the external test instance (test, test_local_forward).
  • Update unit tests, Helm values, and README documentation to reflect the new defaults and presets.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
biothings_annotator/annotator/settings.py Switch default connection to in_cluster, add test/test_local_forward presets, keep ci as an alias.
deploy/values.yaml Update Helm default elasticsearch_connection to in_cluster.
README.md Document the new in_cluster default and the new test presets and intended usage.
tests/test_elasticsearch.py Update expectations for new defaults, validate aliasing behavior, and add coverage for test presets.
tests/test_document_metadata.py Add a unit test asserting DocumentMetadataService defaults to in_cluster when env is unset.
tests/test_application_endpoints.py Update /version endpoint test to expect the default in_cluster connection when env is unset.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@shuchenliu
shuchenliu merged commit 9bc096e into main Aug 25, 2026
11 checks passed
@shuchenliu
shuchenliu deleted the fix-test-deployment branch August 25, 2026 19:50
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.

2 participants