🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
ci: apply ai-gateway-preview when gateway code changes (#18782)
Tobias Wochinger2019597e6ec8
diff --git a/.agents/skills/langfuse-previews/SKILL.md b/.agents/skills/langfuse-previews/SKILL.mdindex 792a98be37..e17a0631d6 100644--- a/.agents/skills/langfuse-previews/SKILL.md+++ b/.agents/skills/langfuse-previews/SKILL.md@@ -78,6 +78,9 @@ Pushing updates it; closing the PR tears it down.- **Disposable data.** Closing a PR destroys its database; reopening gives a**fresh** environment, not the old one.- **Forks can't preview.** External / fork PRs never build or deploy.+- **AI gateway.** Changes under `web/src/features/ai-gateway/`,+ `web/src/pages/api/internal/ai-gateway/`, or `ai-gateway/` auto-apply+ `ai-gateway-preview`. That label is what deploys the gateway into the preview.## Add or improve data in a previewdiff --git a/.github/workflows/preview-autolabel.yml b/.github/workflows/preview-autolabel.ymlindex 4f4711ec30..ed9c484bff 100644--- a/.github/workflows/preview-autolabel.yml+++ b/.github/workflows/preview-autolabel.yml@@ -100,8 +100,21 @@ jobs:);if (hasStorybookChanges) labels.push("storybook");+ // `ai-gateway-preview` is the Argo deploy filter for the gateway.+ // The feature module and its internal HTTP routes are separate+ // trees; the Rust service lives under ai-gateway/.+ const hasAiGatewayChanges = paths.some(+ (path) =>+ path.startsWith("web/src/features/ai-gateway/") ||+ path.startsWith("web/src/pages/api/internal/ai-gateway/") ||+ path.startsWith("ai-gateway/"),+ );+ if (hasAiGatewayChanges) labels.push("ai-gateway-preview");+if (labels.length === 0) {- core.info("No API spec or Storybook preview changes detected.");+ core.info(+ "No API spec, Storybook, or AI gateway preview changes detected.",+ );return;}