diff --git a/changelog/2026-06-25-flaky-tests-bazel-label-webhooks.mdx b/changelog/2026-06-25-flaky-tests-bazel-label-webhooks.mdx new file mode 100644 index 00000000..a0051a8f --- /dev/null +++ b/changelog/2026-06-25-flaky-tests-bazel-label-webhooks.mdx @@ -0,0 +1,15 @@ +--- +title: "Flaky Tests: Bazel Label Now Included in Webhook Payloads" +description: "Webhook events for test case status changes now include an optional bazel_label field on the test_case object." +date: 2026-06-25 +category: Flaky Tests +type: update +--- + +**Flaky Tests webhook events now carry the Bazel label for tests that have one.** + +The `test_case` object in `test_case.monitor_status_changed` and `v2.test_case.status_changed` webhook payloads now includes an optional `bazel_label` field. When a test case is associated with a Bazel target, this field contains the fully qualified label (for example, `//mypackage:my_test`). The field is absent when no Bazel label is recorded for the test. + +This makes it easier to route, deduplicate, or link webhook-driven tickets and alerts back to a specific Bazel target in your build graph. It is particularly useful for repositories that use multiple test targets with similar names across packages. + +See the [Webhooks reference](/flaky-tests/webhooks) for the full field tables. diff --git a/changelog/index.mdx b/changelog/index.mdx index 2b9475b3..0ba82eca 100644 --- a/changelog/index.mdx +++ b/changelog/index.mdx @@ -8,6 +8,12 @@ rss: true ### June 2026 + + **[Flaky Tests: Bazel Label Now Included in Webhook Payloads](/changelog/2026-06-25-flaky-tests-bazel-label-webhooks)** + + Webhook events for test case status changes now include an optional `bazel_label` field on the test_case object. + + **[Merge Queue: Queue and Graph Tabs Now Refresh on Return](/changelog/2026-06-18-merge-queue-stale-tab-refresh-fix)** diff --git a/docs.json b/docs.json index 0d09fb58..a02997ce 100644 --- a/docs.json +++ b/docs.json @@ -624,7 +624,8 @@ { "group": "June", "pages": [ - "changelog/2026-06-18-merge-queue-stale-tab-refresh-fix", + "changelog/2026-06-25-flaky-tests-bazel-label-webhooks", + "changelog/2026-06-18-merge-queue-stale-tab-refresh-fix", "changelog/2026-06-17-flaky-tests-browser-extension-failure-details", "changelog/2026-06-17-merge-queue-metrics-and-extension-updates", "changelog/2026-06-15-merge-queue-browser-extension-admin-control", diff --git a/flaky-tests/changelog.mdx b/flaky-tests/changelog.mdx index 911fbe53..d67675e3 100644 --- a/flaky-tests/changelog.mdx +++ b/flaky-tests/changelog.mdx @@ -9,6 +9,12 @@ og:title: "Trunk Flaky Tests changelog" ### June 2026 + + **[Flaky Tests: Bazel Label Now Included in Webhook Payloads](/changelog/2026-06-25-flaky-tests-bazel-label-webhooks)** + + Webhook events for test case status changes now include an optional `bazel_label` field on the test_case object. + + **[Flaky Tests: Failure Details and Copy Prompt in the Browser Extension](/changelog/2026-06-17-flaky-tests-browser-extension-failure-details)** diff --git a/flaky-tests/webhooks/index.mdx b/flaky-tests/webhooks/index.mdx index e2d8ce95..7c0cf0b4 100644 --- a/flaky-tests/webhooks/index.mdx +++ b/flaky-tests/webhooks/index.mdx @@ -48,6 +48,7 @@ Emitted when a monitor activates or resolves for a test case. | `test_case.codeowners` | array of strings | Code owners associated with the test | | `test_case.quarantined` | boolean | Whether the test is quarantined | | `test_case.variant` | string | Test variant name | +| `test_case.bazel_label` | string (optional) | Bazel target label for the test, when available | ### `v2.test_case.status_changed`