ci: catch provider errors across all opencode tiers (#27495)

This commit is contained in:
Victor Navarro
2026-05-15 16:31:59 +02:00
committed by GitHub
parent c2ffd7cf14
commit 2d90f325fc
+4 -24
View File
@@ -70,12 +70,11 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
}).json }).json
} }
const providerHttpErrorsQuery = (product: "go" | "zen") => { const providerHttpErrorsQuery = () => {
const filters = [ const filters = [
{ column: "provider", op: "exists" }, { column: "provider", op: "exists" },
{ column: "provider", op: "!=", value: "fireworks-go-glm-5.1" }, { column: "provider", op: "!=", value: "fireworks-go-glm-5.1" },
{ column: "user_agent", op: "contains", value: "opencode" }, { column: "user_agent", op: "contains", value: "opencode" },
{ column: "isGoTier", op: "=", value: product === "go" ? "true" : "false" },
] ]
const successHttpStatus = calculatedField({ const successHttpStatus = calculatedField({
name: "is_success_http_status", name: "is_success_http_status",
@@ -216,29 +215,10 @@ new honeycomb.Trigger("LowModelTpsZen", {
], ],
}) })
new honeycomb.Trigger("IncreasedProviderHttpErrorsGo", { new honeycomb.Trigger("IncreasedProviderHttpErrors", {
name: "Increased Provider HTTP Errors [Go]", name: "Increased Provider HTTP Errors",
description, description,
queryJson: providerHttpErrorsQuery("go"), queryJson: providerHttpErrorsQuery(),
alertType: "on_change",
frequency: 300,
thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],
recipients: [
{
id: webhookRecipient.id,
notificationDetails: [
{
variables: [{ name: "type", value: "provider_http_errors" }],
},
],
},
],
})
new honeycomb.Trigger("IncreasedProviderHttpErrorsZen", {
name: "Increased Provider HTTP Errors [Zen]",
description,
queryJson: providerHttpErrorsQuery("zen"),
alertType: "on_change", alertType: "on_change",
frequency: 300, frequency: 300,
thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],