镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Route automation queries to the dedicated writer pool - #110

Merged
Jeff McCollum (jeffmccollum) merged 5 commits into
mainfrom
alexr/automation-writer-query-routing
Oct 14, 2026
Merged

Jeff McCollum (jeffmccollum) merged 5 commits into
mainfrom
alexr/automation-writer-query-routing

Conversation

@alexr17

@alexr17 Alex R (alexr17) commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Automation processing can still compete with regular writers even when its dedicated pool is enabled.
Publish the Service endpoint whenever the pool is enabled and let a compatible API release decide which queries use it, matching Terraform PR #425.
Query routing requires a compatible API release.

Input Intended behavior
Positive replicas; zero, null, missing, or empty replicas Positive replicas create the Service and publish its API endpoint; disabled shapes omit both and preserve API writer fallback.
Older --reuse-values; partial replicas-only pool; missing/null Service and annotation maps A missing pool stays disabled; partial pools resolve the template defaults before fields are read.
Default/empty/custom Service name, custom Service and listen ports, both namespace modes The URL matches the Service name/port/namespace; targetPort remains the existing automation-writer listen port.
Release tags with/without v, full/short/all-digit commit SHAs, pre-release and custom tags Supported tags keep rendering; the existing pre-v2.16.0 release rejection and stable-tag runtime gate remain in effect.
AWS, Google, Azure, and GKE examples including API isolation/autoscaling Enabled, disabled, and retained-value configurations render across all eight values configurations.
Gate enabled/disabled; pool activation/deactivation The API startup gate continues to cover readers, writers, and fast readers only; ensure ready capacity before deploying an API that uses the endpoint, and coordinate API routing changes before scaling down.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T15:27:27.330126Z 7e9d60f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@alexr17
Alex R (alexr17) force-pushed the alexr/automation-writer-query-routing branch from 5704af8 to ca7f345 Compare October 9, 2026 23:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5704af8ebb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread braintrust/templates/api-configmap.yaml Outdated
BRAINSTORE_WRITER_URL: "http://{{ .Values.brainstore.writer.service.name | default .Values.brainstore.writer.name }}.{{ .Values.global.namespace }}:{{ .Values.brainstore.writer.service.port }}"
{{- if gt (int (include "braintrust.automationWriter.replicas" .)) 0 }}
{{- $aw := include "braintrust.automationWriter.config" . | fromYaml }}
{{- if $aw.routeQueries }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the required empty and zero routing cases

The new raw truthiness check for routeQueries has coverage for true, missing, null, and false, but neither the input matrix nor the tests define what happens for an empty string or 0. Because these shapes directly decide whether the API receives the automation-writer URL, add explicit helm-unittest cases before shipping; the repository treats any unchecked input shape as a release blocker.

AGENTS.md reference: AGENTS.md:L7-L17

Useful? React with 👍 / 👎.

@@ -0,0 +1,25 @@
{{- if gt (int (include "braintrust.automationWriter.replicas" .)) 0 }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the examples that deny the new Service

With positive replicas this template now creates a Service, but braintrust/examples/google-autopilot/values.yaml:154 and braintrust/examples/google-autopilot-cel/values.yaml:174 still explicitly state that no Service is created. Update both supported example comments so operators are not given incorrect resource and networking expectations when enabling this pool.

AGENTS.md reference: AGENTS.md:L9-L12

Useful? React with 👍 / 👎.

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.

Alex R (@alexr17) needs updated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Both Google Autopilot examples now describe the internal Service created when the pool is enabled. This was fixed in e15742b and remains on the current PR head.

@alexr17

Copy link
Copy Markdown
Contributor Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e15742b624

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@alexr17

Copy link
Copy Markdown
Contributor Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 2a4736454f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@alexr17

Copy link
Copy Markdown
Contributor Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 7e9d60f98f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@alexr17

Copy link
Copy Markdown
Contributor Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 7e9d60f98f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@jeffmccollum
Jeff McCollum (jeffmccollum) merged commit da882c4 into main Oct 14, 2026
3 checks passed
@jeffmccollum
Jeff McCollum (jeffmccollum) deleted the alexr/automation-writer-query-routing branch October 14, 2026 17:24
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