Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(eng-analytics): make tile copy match its query (#103919)

Raúl Negrón-Otero44126759dbdd
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index c1db951a535d..c7b9934ba6b9 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -7977,13 +7977,13 @@ snapshots:
scenes-app-engineering-analytics-test-health--trunk-quarantine-debt-owners-unavailable--light:
hash: v1.k794b7964.8916de545edf558f799cc98ee4a901c19ba00fe7d0bb4f5312266705755e3e70.EO6V5mC_JCbSh5ZRrmyU09RT-hFV9f4Mtu_JkZ9m5Ng
scenes-app-engineering-analytics-workflow--workflow-detail--dark:
- hash: v1.k794b7964.34f27a97a182defe9103de7bb4904e0511f539cbd69154cacf9407ea0e6ae5b6.fx9x83QbIPLTC1foUBSS6_dTDsJwN0pvV_LFjpFADL0
+ hash: v1.k794b7964.6006fb352b7c6b99693920a87332ff4fe2538a212272220a5904b467d4077847.3WqPziRcgrLwnPk4QJJhhb5htu3lvDlFw6oPTSTH9EA
scenes-app-engineering-analytics-workflow--workflow-detail--light:
- hash: v1.k794b7964.864df1dc201eed86c63c5c8665b410e3cee027ae31ea34a927c54339accf163e.QaubMm0ri-3h0lcu1XErjxehlk-ShT-TQFhXMSA89lo
+ hash: v1.k794b7964.448cbb34351e454b1c757276f0a1cd4adbbf75cd49ce5b5b4798b7337adb17f6.2NNp6tvvHqHZ0OAshF5F_V_ZRoi05nMkTKvNrmI_GIE
scenes-app-engineering-analytics-workflow--workflow-detail-scoped-to-pull-requests--dark:
- hash: v1.k794b7964.0c0f1d46522800e5607f6da430c28c78f944a36b2f8eb0299619d8823d29b260.bxyaidP2mR5LSlQuspIbfz_cnCiylWsjdwYT75rxrsM
+ hash: v1.k794b7964.4e8fd2714f511643ded70d2b2e9ea1f9a5e2576bcedd977c09fb16a994f1e5a6.TH6pCFrAcllciQRZ8vBRkuO9w4rqkrHm5kitFbI1958
scenes-app-engineering-analytics-workflow--workflow-detail-scoped-to-pull-requests--light:
- hash: v1.k794b7964.6e8be9c87cb9906e6ae6633b9f011a1204266d33e81f5ea55ed34b0164d105ac.LVonrjG3XuvWRwgHUPA__XIPv4IxrK2v6UfyOMXfa4s
+ hash: v1.k794b7964.4ee4fad21f2516698c0191d14e0a5b5bd2df7078c01a6a27ec48bdb795b5ffd0.ILk7MWSpAnYT629N-B4L2Cuke3QOTRobPp52cZMt12w
scenes-app-engineering-analytics-workflows--workflow-list--dark:
hash: v1.k794b7964.a6574f63289438debc52ecec13b02dbe441bc929a8d6f710da3186331cd8d1eb.KpORwpMNnIj4CILhscu52yveUkN_65SPEzYkBUAaumU
scenes-app-engineering-analytics-workflows--workflow-list--light:
diff --git a/products/engineering_analytics/backend/facade/contracts.py b/products/engineering_analytics/backend/facade/contracts.py
index d48946956780..052fcb957114 100644
--- a/products/engineering_analytics/backend/facade/contracts.py
+++ b/products/engineering_analytics/backend/facade/contracts.py
@@ -1080,9 +1080,8 @@ class WorkflowHealthItem:
rerun_cycles: int = 0
# Success rate over the equal-length window before date_from; None when it had no conclusive runs.
success_rate_prev: float | None = None
- # Successful runs that did real work; the exact population p50/p95 are computed over (no-op gate
- # runs excluded). Distinct from `successful_run_count`, which counts those no-op successes too, so
- # a duration comparison should size its min-sample gate on this, not on `successful_run_count`.
+ # Successful runs lasting at least 10 seconds. Zero when percentiles fall back to all-fast runs,
+ # so duration comparisons can reject those fallback samples with their minimum-sample gate.
percentile_run_count: int = 0
# Runs on merge-queue gate branches in the window, counted regardless of the branch/run_scope
# filter, so the list can rank queue-gating workflows (the closest proxy for a required check)
diff --git a/products/engineering_analytics/backend/presentation/serializers/dora.py b/products/engineering_analytics/backend/presentation/serializers/dora.py
index 9e7b94424cf5..db796f6e6fb3 100644
--- a/products/engineering_analytics/backend/presentation/serializers/dora.py
+++ b/products/engineering_analytics/backend/presentation/serializers/dora.py
@@ -52,7 +52,7 @@ class LeadTimeBucketSerializer(DataclassSerializer):
"allow_null": True,
},
"p05_seconds": {
- "help_text": "5th percentile of the stage's duration, in seconds — the lower whisker when "
+ "help_text": "5th percentile of the stage's duration, in seconds: the lower whisker when "
"outliers are excluded. Null when nothing deployed.",
"allow_null": True,
},
@@ -73,7 +73,7 @@ class LeadTimeBucketSerializer(DataclassSerializer):
"allow_null": True,
},
"p95_seconds": {
- "help_text": "95th percentile of the stage's duration, in seconds — the upper whisker when "
+ "help_text": "95th percentile of the stage's duration, in seconds: the upper whisker when "
"outliers are excluded. Null when nothing deployed.",
"allow_null": True,
},
@@ -92,7 +92,7 @@ class DoraOverviewSerializer(DataclassSerializer):
)
merge_to_deploy_series = LeadTimeBucketSerializer(
many=True,
- help_text="Merge-to-deploy distribution per bucket across the window, oldest first — the box-plot "
+ help_text="Merge-to-deploy distribution per bucket across the window, oldest first: the box-plot "
"series (min/p5/p25/p50/mean/p75/p95/max seconds per bucket). Empty when the deploy tables aren't "
"synced, or when github_team was passed without membership data synced.",
)
@@ -136,7 +136,7 @@ class DoraOverviewSerializer(DataclassSerializer):
"silently unfiltered."
},
"github_teams": {
- "help_text": "Distinct GitHub team slugs from the membership snapshot, sorted — the team "
+ "help_text": "Distinct GitHub team slugs from the membership snapshot, sorted: the team "
"picker's options. Empty when membership isn't synced."
},
"deployment_count": {
@@ -166,7 +166,7 @@ class DoraOverviewSerializer(DataclassSerializer):
},
"median_open_to_deploy_seconds": {
"help_text": "Median seconds from a PR's open to the first successful deployment "
- "containing it — the full open-to-deploy lead time over the same deployed-PR "
+ "containing it: the full open-to-deploy lead time over the same deployed-PR "
"population as median_merge_to_deploy_seconds. Null when nothing deployed in the "
"window.",
"allow_null": True,
@@ -176,7 +176,7 @@ class DoraOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"deployed_pr_count": {
- "help_text": "PRs first deployed in the window — the population behind the merge-to-deploy "
+ "help_text": "PRs first deployed in the window: the population behind the merge-to-deploy "
"median and box plot."
},
"deployed_pr_count_prev": {"help_text": "Previous-window twin of deployed_pr_count."},
@@ -207,7 +207,7 @@ class DoraOverviewSerializer(DataclassSerializer):
},
"merged_pr_count": {
"help_text": "PRs merged in the window (bots and drafts excluded; narrowed by github_team "
- "when given) — the denominator behind unattributed_merged_pr_share."
+ "when given): the denominator behind unattributed_merged_pr_share."
},
"unattributed_merged_pr_share": {
"help_text": "Share of merged_pr_count no successful in-scope deployment attributed: recent "
@@ -216,7 +216,7 @@ class DoraOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"latest_deploy_status_at": {
- "help_text": "The newest deployment status row synced, any environment — how fresh the deploy "
+ "help_text": "The newest deployment status row synced, any environment: how fresh the deploy "
"data is. Windows ending after this instant undercount. Null when the deploy tables are empty.",
"allow_null": True,
},
diff --git a/products/engineering_analytics/backend/presentation/serializers/pull_requests.py b/products/engineering_analytics/backend/presentation/serializers/pull_requests.py
index 8681e79ed987..17e9035d290f 100644
--- a/products/engineering_analytics/backend/presentation/serializers/pull_requests.py
+++ b/products/engineering_analytics/backend/presentation/serializers/pull_requests.py
@@ -83,7 +83,7 @@ class PRLifecycleSerializer(DataclassSerializer):
dataclass = PRLifecycle
extra_kwargs = {
"metric_quality": {
- "help_text": "Always 'partial' — CI events only; reviews and comments are not yet available.",
+ "help_text": "Always 'partial': CI events only; reviews and comments are not yet available.",
},
}
@@ -102,7 +102,7 @@ class CIFailureLogsSerializer(DataclassSerializer):
"help_text": "Workflow runs attributed to the PR (across all its pushes) that were searched for logs.",
},
"logs_available": {
- "help_text": "False when no failure logs were found — CI hasn't failed, the logs aged out of the "
+ "help_text": "False when no failure logs were found: CI hasn't failed, the logs aged out of the "
"short Logs retention, or a fork PR carries no run association to resolve.",
},
"truncated": {"help_text": "True when the overall line cap across all jobs was hit."},
@@ -164,7 +164,7 @@ class PRCostSummarySerializer(DataclassSerializer):
required=False,
allow_null=True,
help_text="Agent LLM token spend attributed to this PR by git branch ($ai_git_branch), or null when "
- "no generation matched — independent of the CI cost figures, so it can be present even when "
+ "no generation matched: independent of the CI cost figures, so it can be present even when "
"jobs_available is false. The UI hides the row when null.",
)
@@ -172,7 +172,7 @@ class PRCostSummarySerializer(DataclassSerializer):
dataclass = PRCostSummary
extra_kwargs = {
"jobs_available": {
- "help_text": "False when the job-level source (github_workflow_jobs) isn't synced — every "
+ "help_text": "False when the job-level source (github_workflow_jobs) isn't synced: every "
"figure is then zero/null and the cost cards should be hidden.",
},
"billable_minutes": {
@@ -186,10 +186,10 @@ class PRCostSummarySerializer(DataclassSerializer):
},
"costed_jobs": {"help_text": "Jobs counted in the estimate (billable Linux runner, finished)."},
"unsettled_jobs": {
- "help_text": "Billable Linux jobs still queued/running (no elapsed) — excluded from the estimate.",
+ "help_text": "Billable Linux jobs still queued/running (no elapsed): excluded from the estimate.",
},
"excluded_jobs": {
- "help_text": "Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners — outside the estimate.",
+ "help_text": "Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners: outside the estimate.",
},
}
@@ -303,7 +303,7 @@ class BranchPRMatchSerializer(DataclassSerializer):
dataclass = BranchPRMatch
extra_kwargs = {
"repo": {"help_text": "Repository the pull request belongs to, as 'owner/name'."},
- "number": {"help_text": "Pull request number within the repository — pair with `repo` to link to it."},
+ "number": {"help_text": "Pull request number within the repository: pair with `repo` to link to it."},
"title": {
"help_text": "Pull request title, or null when the snapshot carries no title.",
"allow_null": True,
diff --git a/products/engineering_analytics/backend/presentation/serializers/sources.py b/products/engineering_analytics/backend/presentation/serializers/sources.py
index 31c6172c6731..785a19ff4ba1 100644
--- a/products/engineering_analytics/backend/presentation/serializers/sources.py
+++ b/products/engineering_analytics/backend/presentation/serializers/sources.py
@@ -9,9 +9,9 @@ class GitHubSourceSerializer(DataclassSerializer):
class Meta:
dataclass = GitHubSource
extra_kwargs = {
- "id": {"help_text": "Source id — pass back as `source_id` (with `repo`) to read this repository."},
+ "id": {"help_text": "Source id: pass back as `source_id` (with `repo`) to read this repository."},
"repo": {
- "help_text": "Repository as 'owner/name' — pass back as `repo` to scope to it. One entry per "
+ "help_text": "Repository as 'owner/name': pass back as `repo` to scope to it. One entry per "
"repository a source syncs; '' if unknown."
},
"prefix": {"help_text": "User-chosen warehouse table-name prefix for this source, or '' when none."},
diff --git a/products/engineering_analytics/backend/presentation/serializers/suite_health.py b/products/engineering_analytics/backend/presentation/serializers/suite_health.py
index 8900d4e9102a..ab9f257a873b 100644
--- a/products/engineering_analytics/backend/presentation/serializers/suite_health.py
+++ b/products/engineering_analytics/backend/presentation/serializers/suite_health.py
@@ -169,7 +169,7 @@ class BrokenTestRowSerializer(DataclassSerializer):
"help_text": "Stable identity of this distinct failure: the failing test's node id plus a "
"normalized error signature, so the same failure across runs groups into one row.",
},
- "test_id": {"help_text": "The pytest node id from the CI 'FAILED <id>' line — the failing test."},
+ "test_id": {"help_text": "The pytest node id from the CI 'FAILED <id>' line: the failing test."},
"error_signature": {
"help_text": "The trailing failure detail with volatile bits (numbers, hashes) normalized, shared "
"across runs of the same failure. Empty when the FAILED line carried no detail.",
@@ -185,20 +185,20 @@ class BrokenTestRowSerializer(DataclassSerializer):
"a merge on a commit that already passed the PR's own CI, trunk still green), 'novel_burst' (new "
"within a day and spreading across branches, not on trunk yet), 'potentially_resolved' (hit trunk "
"but trunk is green again), 'flaky' (sporadic across branches over more than a day), or 'pr_only' "
- "(confined to one branch — one PR's own problem).",
+ "(confined to one branch: one PR's own problem).",
},
"first_seen": {"help_text": "Earliest failure line for this fingerprint in the analysis window."},
"last_seen": {"help_text": "Most recent failure line for this fingerprint in the analysis window."},
"occurrences": {
"help_text": "Total failure lines for this fingerprint in the window. An absolute count, never a "
- "rate — passing runs aren't in this data.",
+ "rate: passing runs aren't in this data.",
},
"branches": {"help_text": "Distinct branches the failure appeared on in the window."},
"master_hits": {
"help_text": "Failure lines on the default branch (master/main). 0 means it never reached trunk.",
},
"latest_run_id": {
- "help_text": "The most recent failing workflow run for this fingerprint — pass it to "
+ "help_text": "The most recent failing workflow run for this fingerprint: pass it to "
"run_failure_logs to fetch the actual failing log lines.",
},
"latest_branch": {"help_text": "The branch of the most recent failing run."},
@@ -212,14 +212,14 @@ class BrokenTestRowSerializer(DataclassSerializer):
class BrokenTestsResultSerializer(DataclassSerializer):
rows = BrokenTestRowSerializer(
many=True,
- help_text="Classified failures ranked by triage urgency — breaking trunk first, single-PR failures last.",
+ help_text="Classified failures ranked by triage urgency: breaking trunk first, single-PR failures last.",
)
class Meta:
dataclass = BrokenTestsResult
extra_kwargs = {
"breaking_master_jobs": {
- "help_text": "Default-branch job names whose latest completed run is failing — the 'what's on fire "
+ "help_text": "Default-branch job names whose latest completed run is failing: the 'what's on fire "
"right now' summary. Empty when the job-level source isn't synced or trunk is green.",
},
"window_days": {"help_text": "Length in days of the analysis window the counts cover."},
diff --git a/products/engineering_analytics/backend/presentation/serializers/workflows.py b/products/engineering_analytics/backend/presentation/serializers/workflows.py
index 69fcc984a6ac..793e560e9eff 100644
--- a/products/engineering_analytics/backend/presentation/serializers/workflows.py
+++ b/products/engineering_analytics/backend/presentation/serializers/workflows.py
@@ -204,14 +204,17 @@ class WorkflowHealthItemSerializer(DataclassSerializer):
"allow_null": True,
},
"p50_seconds": {
- "help_text": "Median duration in seconds over successful runs only — cancelled (superseded) and "
- "failed runs end early and would bias the percentile. Null if no run succeeded in the window.",
+ "help_text": "Median duration in seconds over successful runs only: cancelled (superseded) and "
+ "failed runs end early and would bias the percentile. Runs under 10 seconds that did no work are "
+ "excluded when longer successful runs exist. An all-fast workflow uses every successful run. Null if "
+ "no run succeeded in the window.",
"allow_null": True,
},
"p95_seconds": {
- "help_text": "95th-percentile duration in seconds over successful runs only — cancelled "
- "(superseded) and failed runs end early and would bias the percentile. Null if no run succeeded "
- "in the window.",
+ "help_text": "95th-percentile duration in seconds over successful runs only: cancelled "
+ "(superseded) and failed runs end early and would bias the percentile. Runs under 10 seconds that did "
+ "no work are excluded when longer successful runs exist. An all-fast workflow uses every successful "
+ "run. Null if no run succeeded in the window.",
"allow_null": True,
},
"last_failure_at": {
@@ -250,7 +253,8 @@ class WorkflowHealthItemSerializer(DataclassSerializer):
"allow_null": True,
},
"percentile_run_count": {
- "help_text": "Successful runs that did real CI work. This is the p50/p95 sample count."
+ "help_text": "Successful runs lasting at least 10 seconds. Zero when p50/p95 fall back to "
+ "shorter successful runs."
},
"merge_queue_run_count": {
"help_text": "Runs on merge-queue gate branches (trunk-merge/**) in the window, counted regardless "
@@ -431,7 +435,7 @@ class RepoOverviewSerializer(DataclassSerializer):
extra_kwargs = {
"run_count": {"help_text": "Workflow runs started in the window, all branches and workflows."},
"run_count_prev": {
- "help_text": "Same count over the equal-length window immediately before date_from — the delta baseline."
+ "help_text": "Same count over the equal-length window immediately before date_from: the delta baseline."
},
"success_rate": {
"help_text": "Fraction of conclusive runs that succeeded (0-1) in the window. Skipped, cancelled, "
@@ -445,8 +449,9 @@ class RepoOverviewSerializer(DataclassSerializer):
"rerun_cycles": {"help_text": "Runs in the window that were a 2nd+ attempt (attempt > 1)."},
"rerun_cycles_prev": {"help_text": "Re-run cycles over the previous window."},
"merged_pr_count": {
- "help_text": "PRs merged in the window, all authors and bots included — the merge population "
- "that triggered the CI spend, so it divides cleanly into billable_minutes and estimated_cost_usd."
+ "help_text": "PRs merged in the window, all authors and bots included. billable_minutes and "
+ "estimated_cost_usd cover every run in the window, including default-branch and unmerged PR runs, "
+ "so dividing them by this count spreads all CI spend over the merges."
},
"merged_pr_count_prev": {"help_text": "Merged-PR count over the previous window."},
"median_open_to_merge_seconds": {
@@ -488,7 +493,7 @@ class RepoOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"cost_per_merge_usd": {
- "help_text": "estimated_cost_usd divided by merged_pr_count — the window's CI cost per merged "
+ "help_text": "estimated_cost_usd divided by merged_pr_count: the window's CI cost per merged "
"PR. Null when the job-level source isn't synced or nothing merged.",
"allow_null": True,
},
@@ -508,7 +513,7 @@ class RepoOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"merge_queue_merged_pr_count": {
- "help_text": "PRs merged in the window with at least one corroborated merge-queue gate run — "
+ "help_text": "PRs merged in the window with at least one corroborated merge-queue gate run: "
"the population behind every merge_queue_* landing stat. All authors, bots included."
},
"merge_queue_merged_pr_count_prev": {"help_text": "Queue-landed merges over the previous window."},
@@ -523,7 +528,7 @@ class RepoOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"merge_queue_p90_first_gate_to_merge_seconds": {
- "help_text": "p90 of the same first-gate-run-to-merge measure — the tail, where queue pain "
+ "help_text": "p90 of the same first-gate-run-to-merge measure: the tail, where queue pain "
"concentrates. Null when no queue-landed merges.",
"allow_null": True,
},
@@ -602,7 +607,7 @@ class RepoOverviewSerializer(DataclassSerializer):
"allow_null": True,
},
"median_time_to_green_seconds": {
- "help_text": "Median wall clock for a PR push round to settle fully green over the window — the "
+ "help_text": "Median wall clock for a PR push round to settle fully green over the window: the "
"window-level twin of time_to_green_series, same population and exclusions. Null when no fully "
"green rounds.",
"allow_null": True,
@@ -657,14 +662,14 @@ class MasterFailureGroupSerializer(DataclassSerializer):
extra_kwargs = {
"workflow_name": {"help_text": "GitHub Actions workflow name the failing runs belong to."},
"failed_job": {
- "help_text": "De-sharded failing job name (matrix '(G/N)' suffix stripped) — the group's failure "
+ "help_text": "De-sharded failing job name (matrix '(G/N)' suffix stripped): the group's failure "
"signature together with the workflow. '' when the job-level source isn't synced and the group "
"degrades to workflow level."
},
"run_count": {"help_text": "Distinct failing default-branch runs in this group within the window."},
"first_seen": {"help_text": "When the oldest failing run in the group started."},
"last_seen": {"help_text": "When the newest failing run in the group started."},
- "latest_run_id": {"help_text": "Run id of the newest failing run — the drill-down anchor."},
+ "latest_run_id": {"help_text": "Run id of the newest failing run: the drill-down anchor."},
}
@@ -678,7 +683,7 @@ class RunFailureLogsSerializer(DataclassSerializer):
extra_kwargs = {
"run_id": {"help_text": "Workflow run id the failure logs are for."},
"logs_available": {
- "help_text": "False when no failure logs were found — the run didn't fail, or its logs aged out of "
+ "help_text": "False when no failure logs were found: the run didn't fail, or its logs aged out of "
"the short Logs retention.",
},
"truncated": {"help_text": "True when the overall line cap across all jobs was hit."},
@@ -707,12 +712,12 @@ class WorkflowJobAggregateSerializer(DataclassSerializer):
"allow_null": True,
},
"p50_seconds": {
- "help_text": "Median duration of successful job instances, in seconds — cancelled and failed "
+ "help_text": "Median duration of successful job instances, in seconds: cancelled and failed "
"instances end early and would bias the percentile. Null if none succeeded.",
"allow_null": True,
},
"p95_seconds": {
- "help_text": "95th-percentile duration of successful job instances, in seconds — cancelled and "
+ "help_text": "95th-percentile duration of successful job instances, in seconds: cancelled and "
"failed instances end early and would bias the percentile. Null if none succeeded.",
"allow_null": True,
},
diff --git a/products/engineering_analytics/backend/presentation/views/dora.py b/products/engineering_analytics/backend/presentation/views/dora.py
index c544e8a8f3f0..f7c4f6b089be 100644
--- a/products/engineering_analytics/backend/presentation/views/dora.py
+++ b/products/engineering_analytics/backend/presentation/views/dora.py
@@ -82,7 +82,7 @@ class DoraActionsMixin(EngineeringAnalyticsViewSetBase):
"DORA-style deploy metrics over the GitHub deployments + deployment_statuses warehouse pair, each "
"headline with its previous-window twin: deployment frequency, merge-to-deploy lead time (with a "
"per-bucket box-plot series), and honest proxies for change failure rate and time to restore "
- "(deploy-status based — no incident data is linked). deploy_data_available is false when the deploy "
+ "(deploy-status based: no incident data is linked). deploy_data_available is false when the deploy "
"tables aren't synced."
),
)
diff --git a/products/engineering_analytics/backend/presentation/views/pull_requests.py b/products/engineering_analytics/backend/presentation/views/pull_requests.py
index 83d79ae5a60f..d9efddeb9118 100644
--- a/products/engineering_analytics/backend/presentation/views/pull_requests.py
+++ b/products/engineering_analytics/backend/presentation/views/pull_requests.py
@@ -89,7 +89,7 @@ class PullRequestActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with "
"its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards "
- "counts can exceed it. open_to_merge_seconds is coarse — it fuses draft and ready-for-review time; "
+ "counts can exceed it. open_to_merge_seconds is coarse: it fuses draft and ready-for-review time; "
"CI counts can lag until late completions settle."
),
)
@@ -193,11 +193,11 @@ class PullRequestActionsMixin(EngineeringAnalyticsViewSetBase):
400: OpenApiResponse(description="Branch missing/empty, or invalid repo/timestamp/source_id."),
},
description=(
- "Resolve a git branch to the pull request(s) it belongs to — the cross-product link seam so another "
+ "Resolve a git branch to the pull request(s) it belongs to: the cross-product link seam so another "
"product (the LLM analytics UI) can turn a git branch into a PR detail link. Matches the PR's head ref, "
"open PRs first then most recently updated. Pass `timestamp` (the trace's capture time) to prefer the PR "
"that was active at that moment when a branch name has been reused across PRs. `branch` is required. "
- "Returns a possibly-empty, possibly-multi list — an empty list is a valid 200 (the caller renders a plain "
+ "Returns a possibly-empty, possibly-multi list: an empty list is a valid 200 (the caller renders a plain "
"chip)."
),
)
@@ -338,7 +338,7 @@ class PullRequestActionsMixin(EngineeringAnalyticsViewSetBase):
},
description=(
"Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. "
- "Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux "
+ "Billable self-hosted Linux runners only: provider-hosted (free GitHub-hosted) and non-Linux "
"jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level "
"source isn't synced yet. `llm_spend` carries the agent LLM token spend attributed to the PR "
"by git branch, or null when no `$ai_generation` event matched."
diff --git a/products/engineering_analytics/backend/presentation/views/sources.py b/products/engineering_analytics/backend/presentation/views/sources.py
index 684fbbd87cb0..b8265f49ac17 100644
--- a/products/engineering_analytics/backend/presentation/views/sources.py
+++ b/products/engineering_analytics/backend/presentation/views/sources.py
@@ -17,7 +17,7 @@ class SourcesMixin(EngineeringAnalyticsViewSetBase):
operation_id="engineering_analytics_sources",
responses={200: GitHubSourceSerializer(many=True)},
description=(
- "The team's selectable GitHub repositories, oldest source first — one entry per repository a "
+ "The team's selectable GitHub repositories, oldest source first: one entry per repository a "
"source is configured to sync, so a source syncing several repositories appears once per repo. "
"Populate a repo picker from this and pass a chosen entry's `id` back as `source_id` and its "
"`repo` back as `repo` to the other endpoints. Includes repositories whose tables aren't fully "
diff --git a/products/engineering_analytics/backend/presentation/views/suite_health.py b/products/engineering_analytics/backend/presentation/views/suite_health.py
index bbc913199a7b..3c74880be145 100644
--- a/products/engineering_analytics/backend/presentation/views/suite_health.py
+++ b/products/engineering_analytics/backend/presentation/views/suite_health.py
@@ -121,15 +121,15 @@ class SuiteHealthActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"The broken-tests triage panel: live CI failures over the last 2 days grouped into distinct "
"failures (by test id + normalized error signature) and classified by how each is behaving right "
- "now — breaking trunk, blocking the merge queue, a new failure spreading across branches, "
- "probably-resolved, flaky, or one PR's own problem — ranked with the most urgent first. A "
+ "now: breaking trunk, blocking the merge queue, a new failure spreading across branches, "
+ "probably-resolved, flaky, or one PR's own problem: ranked with the most urgent first. A "
"blocking_merge_queue row is a failure on a merge-queue gate branch that never hit trunk: the "
"commit had already passed the PR's own CI, so it is the semantic conflict the queue exists to "
"catch, and it is holding up landings. Also returns breaking_master_jobs, the "
"default-branch jobs whose latest run is red. Reach for this to answer 'what CI failures should I "
"care about right now'; expand a row's latest_run_id via run_failure_logs for the failing lines. "
"Fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and "
- "the breaking/resolved distinction needs the job-level source synced — without it those failures "
+ "the breaking/resolved distinction needs the job-level source synced: without it those failures "
"fall through to flaky/pr_only rather than being misreported."
),
)
@@ -167,7 +167,7 @@ class SuiteHealthActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"The repository's checked-in .test_quarantine.json: flaky tests temporarily quarantined with a hard "
"expiry, classified by urgency (overdue, in grace, expiring soon, active). `available` is false when "
- "the repo has no quarantine file — that is not an error. Parsing is fail-open: malformed entries are "
+ "the repo has no quarantine file: that is not an error. Parsing is fail-open: malformed entries are "
"reported in parse_errors while well-formed ones are kept."
),
)
@@ -197,7 +197,7 @@ class SuiteHealthActionsMixin(EngineeringAnalyticsViewSetBase):
"suppressed in CI), attributed to the team that owns its file in the repository, aged against a "
"TTL, and rolled up per team with the most indebted first. A quarantine only masks a test; it "
"never fixes it, so this is the work queue of tests someone still has to repair or delete. "
- "`available` is false when no TrunkIo source has the QuarantinedTests endpoint synced — that "
+ "`available` is false when no TrunkIo source has the QuarantinedTests endpoint synced: that "
"is not an error."
),
)
@@ -229,8 +229,9 @@ class SuiteHealthActionsMixin(EngineeringAnalyticsViewSetBase):
},
summary="Quarantine, extend, or unquarantine a flaky test",
description=(
- "Opens a pull request that edits the repository's checked-in .test_quarantine.json — and, for a new "
- "quarantine, a tracking issue the PR links but does not close. The file stays the source of truth that "
+ "Opens a pull request that edits the repository's checked-in .test_quarantine.json and, for a new "
+ "quarantine, opens a tracking issue that the PR links but does not close. The file stays the source of "
+ "truth that "
"CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges."
),
)
diff --git a/products/engineering_analytics/backend/presentation/views/workflows.py b/products/engineering_analytics/backend/presentation/views/workflows.py
index 095cbaca4ce8..fb99179202e6 100644
--- a/products/engineering_analytics/backend/presentation/views/workflows.py
+++ b/products/engineering_analytics/backend/presentation/views/workflows.py
@@ -67,7 +67,9 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
"rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed "
"by hour/day/week to fit the window. Success rate covers runs that succeeded or ended in a decisive "
"failure. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over "
- "successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. "
+ "successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Runs "
+ "under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast "
+ "workflow uses every successful run. "
"Optionally scope to a single git branch via `branch`, to one workflow via `workflow_name`, "
"or to one run group via `run_scope` "
"(default_branch, pull_request, merge_queue). Use this for 'is CI getting slower' "
@@ -112,7 +114,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
},
description=(
"A single workflow run: status, conclusion, duration, branch, attempt, and the attributed pull "
- "request. Run-level only — per-job and per-step detail are not tracked yet."
+ "request. Run-level only: per-job and per-step detail are not tracked yet."
),
)
@action(detail=False, methods=["get"], pagination_class=None)
@@ -161,7 +163,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"Runs of a single workflow within a repo over a window (date_from default -30d), newest first. "
"Optionally scope to a single git branch via `branch` or to one run group via `run_scope`. "
- "Each row is run-level — per-job and per-step detail are not tracked yet. Use this as the "
+ "Each row is run-level: per-job and per-step detail are not tracked yet. Use this as the "
"GitHub 'workflow' page between the workflow list and a single run."
),
)
@@ -358,7 +360,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
location=OpenApiParameter.QUERY,
required=False,
description="Set false to skip the chart series (cost_series, time_to_green_series, "
- "success_rate_series, open_to_merge_series return empty) and their query cost — for "
+ "success_rate_series, open_to_merge_series return empty) and their query cost: for "
"headline-only consumers like the weekly digest. Defaults to true.",
),
_SOURCE_ID,
@@ -371,9 +373,9 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"Repo-level headline aggregates over a window (default -30d): run count, conclusive-run success rate, re-run "
"cycles, merged-PR count (bots included), median PR open-to-merge (bots and drafts excluded; "
- "coarse — draft and ready time fused), median time-to-green, billable minutes + estimated cost "
+ "coarse: draft and ready time fused), median time-to-green, billable minutes + estimated cost "
"(with the merge-queue slice of billable minutes broken out), and merge-queue landing stats "
- "(queue-landed merges, first-gate-to-merge median and p90, gate attempts, failed-gate share) — "
+ "(queue-landed merges, first-gate-to-merge median and p90, gate attempts, failed-gate share): "
"each with its equal-length previous-window twin so a "
"caller can render honest deltas. Also carries the "
"detected default branch and its completed-run history series (skippable via include_series=false). "
@@ -480,7 +482,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
description=(
"Default-branch failures over a window (default -24h), grouped error-tracking style by "
"(workflow, de-sharded failing job) with a run count and first/last seen, newest group first. "
- "`branch` overrides the detected default branch. PR-branch failures are deliberately excluded — "
+ "`branch` overrides the detected default branch. PR-branch failures are deliberately excluded: "
"at monorepo volume a flat feed is a firehose; those surface per PR. Groups degrade to workflow "
"level (failed_job '') when the job-level source isn't synced."
),
@@ -519,7 +521,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
400: OpenApiResponse(description="Missing or non-integer run_id, or invalid source_id."),
},
description=(
- "The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of "
+ "The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of "
"ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). "
"logs_available is false when the run didn't fail or its logs aged out of the short Logs retention."
),
@@ -564,7 +566,7 @@ class WorkflowActionsMixin(EngineeringAnalyticsViewSetBase):
"name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure "
"rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Optionally "
"scope to a single git branch via `branch` or one run group via `run_scope`. Jobs always "
- "need their run as context — this is the aggregate view; use workflow_jobs for one run's jobs. "
+ "need their run as context: this is the aggregate view; use workflow_jobs for one run's jobs. "
"Empty when the job-level source isn't synced."
),
)
diff --git a/products/engineering_analytics/frontend/components/JobAggregatesTable.tsx b/products/engineering_analytics/frontend/components/JobAggregatesTable.tsx
index a66fad438a64..bb998907a228 100644
--- a/products/engineering_analytics/frontend/components/JobAggregatesTable.tsx
+++ b/products/engineering_analytics/frontend/components/JobAggregatesTable.tsx
@@ -119,7 +119,8 @@ export function JobAggregatesTable({
title: 'Failure rate',
key: 'failureRate',
align: 'right',
- tooltip: 'Decisive failures (failure / timed out) over completed job instances.',
+ tooltip:
+ 'Job instances that failed, timed out, failed to start, or went stale, out of instances that passed or failed. Skipped and canceled instances are left out.',
sorter: (a, b) => (a.failure_rate ?? -1) - (b.failure_rate ?? -1),
render: (_, row) => (
<span
diff --git a/products/engineering_analytics/frontend/components/PullRequestTable.tsx b/products/engineering_analytics/frontend/components/PullRequestTable.tsx
index 24aad203b72c..11da4684eb7b 100644
--- a/products/engineering_analytics/frontend/components/PullRequestTable.tsx
+++ b/products/engineering_analytics/frontend/components/PullRequestTable.tsx
@@ -166,7 +166,7 @@ export function PullRequestTable({
width: 130,
align: 'right',
tooltip:
- 'Billable minutes + estimated cost across this PR’s jobs (self-hosted runners) over its full history — not the selected window. Excludes still-running jobs, so it can rise as they settle. "—" when the job-level source isn’t synced.',
+ 'Billable minutes + estimated cost across this PR’s jobs (self-hosted runners) over its full history, not the selected window. Excludes still-running jobs, so it can rise as they settle. No figure appears when the job-level source isn’t synced.',
sorter: (a, b) => (a.estimatedCostUsd ?? -1) - (b.estimatedCostUsd ?? -1),
render: (_, row) => <BillableBadge minutes={row.billableMinutes} costUsd={row.estimatedCostUsd} />,
},
diff --git a/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx b/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
index ba365ba5d903..484c778d911d 100644
--- a/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
+++ b/products/engineering_analytics/frontend/components/WorkflowHealthTable.tsx
@@ -206,7 +206,8 @@ export function WorkflowHealthTable({
key: 'p50Seconds',
width: 88,
align: 'right',
- tooltip: 'Median run duration (wall-clock) over successful runs.',
+ tooltip:
+ 'Median duration over successful runs. Runs under 10 seconds are excluded when longer samples exist. All-fast workflows use every successful run.',
sorter: (a, b) => (a.p50Seconds ?? -1) - (b.p50Seconds ?? -1),
render: (_, row) => (
<span className="text-xs tabular-nums whitespace-nowrap">{formatSeconds(row.p50Seconds)}</span>
@@ -217,7 +218,8 @@ export function WorkflowHealthTable({
key: 'p95Seconds',
width: 88,
align: 'right',
- tooltip: '95th-percentile run duration (wall-clock) over successful runs.',
+ tooltip:
+ '95th-percentile duration over successful runs. Runs under 10 seconds are excluded when longer samples exist. All-fast workflows use every successful run.',
sorter: (a, b) => (a.p95Seconds ?? -1) - (b.p95Seconds ?? -1),
render: (_, row) => (
<span className="text-xs tabular-nums whitespace-nowrap text-secondary">
diff --git a/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx b/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
index 4446f679662f..c2ae7fee9b51 100644
--- a/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
+++ b/products/engineering_analytics/frontend/components/WorkflowsHealthHeader.tsx
@@ -79,16 +79,16 @@ export function WorkflowsHealthHeader({
: summary.flakyNow > 0
? `${summary.flakyNow} flaky · below 90% pass rate`
: truncated
- ? `Top ${summary.workflowCount} by runs · all passing`
+ ? `Top ${summary.workflowCount} by runs · none failing`
: `All ${summary.workflowCount} workflows healthy`}
</span>
</div>
<div className="flex flex-col border-l border-primary pl-6">
<Tooltip
- title={`Share of workflows whose latest run passed, of the ${summary.settledWorkflows} with a completed run. Workflow-level and current — distinct from the volume-weighted Run pass rate.`}
+ title={`Share of workflows whose latest run did not fail, of the ${summary.settledWorkflows} with a completed run. A cancelled, skipped or neutral latest run counts as not failing. This is per workflow and current, unlike the run pass rate, which weighs every run.`}
>
- <span className="self-start cursor-default text-xs text-tertiary">Passing now</span>
+ <span className="self-start cursor-default text-xs text-tertiary">Not failing now</span>
</Tooltip>
<span className="text-2xl font-semibold leading-7 tabular-nums">{passingRateLabel}</span>
</div>
diff --git a/products/engineering_analytics/frontend/generated/api.schemas.ts b/products/engineering_analytics/frontend/generated/api.schemas.ts
index af09c1b5802a..1e23d78543b1 100644
--- a/products/engineering_analytics/frontend/generated/api.schemas.ts
+++ b/products/engineering_analytics/frontend/generated/api.schemas.ts
@@ -47,7 +47,7 @@ export const BrokenTestRowStateEnumApi = {
export interface BrokenTestRowApi {
/** Stable identity of this distinct failure: the failing test's node id plus a normalized error signature, so the same failure across runs groups into one row. */
fingerprint: string
- /** The pytest node id from the CI 'FAILED <id>' line — the failing test. */
+ /** The pytest node id from the CI 'FAILED <id>' line: the failing test. */
test_id: string
/** The trailing failure detail with volatile bits (numbers, hashes) normalized, shared across runs of the same failure. Empty when the FAILED line carried no detail. */
error_signature: string
@@ -55,7 +55,7 @@ export interface BrokenTestRowApi {
job_name: string
/** 'owner/name' repository the failure belongs to. */
repo: string
- /** The classifier's verdict on how this failure is behaving right now: 'breaking_master' (failing on trunk, latest trunk run still red), 'blocking_merge_queue' (stopped a merge on a commit that already passed the PR's own CI, trunk still green), 'novel_burst' (new within a day and spreading across branches, not on trunk yet), 'potentially_resolved' (hit trunk but trunk is green again), 'flaky' (sporadic across branches over more than a day), or 'pr_only' (confined to one branch — one PR's own problem).
+ /** The classifier's verdict on how this failure is behaving right now: 'breaking_master' (failing on trunk, latest trunk run still red), 'blocking_merge_queue' (stopped a merge on a commit that already passed the PR's own CI, trunk still green), 'novel_burst' (new within a day and spreading across branches, not on trunk yet), 'potentially_resolved' (hit trunk but trunk is green again), 'flaky' (sporadic across branches over more than a day), or 'pr_only' (confined to one branch: one PR's own problem).
*
* * `breaking_master` - BREAKING_MASTER
* * `blocking_merge_queue` - BLOCKING_MERGE_QUEUE
@@ -68,13 +68,13 @@ export interface BrokenTestRowApi {
first_seen: string
/** Most recent failure line for this fingerprint in the analysis window. */
last_seen: string
- /** Total failure lines for this fingerprint in the window. An absolute count, never a rate — passing runs aren't in this data. */
+ /** Total failure lines for this fingerprint in the window. An absolute count, never a rate: passing runs aren't in this data. */
occurrences: number
/** Distinct branches the failure appeared on in the window. */
branches: number
/** Failure lines on the default branch (master/main). 0 means it never reached trunk. */
master_hits: number
- /** The most recent failing workflow run for this fingerprint — pass it to run_failure_logs to fetch the actual failing log lines. */
+ /** The most recent failing workflow run for this fingerprint: pass it to run_failure_logs to fetch the actual failing log lines. */
latest_run_id: number
/** The branch of the most recent failing run. */
latest_branch: string
@@ -83,9 +83,9 @@ export interface BrokenTestRowApi {
}
export interface BrokenTestsResultApi {
- /** Classified failures ranked by triage urgency — breaking trunk first, single-PR failures last. */
+ /** Classified failures ranked by triage urgency: breaking trunk first, single-PR failures last. */
rows: BrokenTestRowApi[]
- /** Default-branch job names whose latest completed run is failing — the 'what's on fire right now' summary. Empty when the job-level source isn't synced or trunk is green. */
+ /** Default-branch job names whose latest completed run is failing: the 'what's on fire right now' summary. Empty when the job-level source isn't synced or trunk is green. */
breaking_master_jobs: string[]
/** Length in days of the analysis window the counts cover. */
window_days: number
@@ -184,7 +184,7 @@ export interface CIFailureLogsApi {
pr_number: number
/** Workflow runs attributed to the PR (across all its pushes) that were searched for logs. */
runs_attributed: number
- /** False when no failure logs were found — CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR carries no run association to resolve. */
+ /** False when no failure logs were found: CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR carries no run association to resolve. */
logs_available: boolean
/** True when the overall line cap across all jobs was hit. */
truncated: boolean
@@ -483,7 +483,7 @@ export interface LeadTimeBucketApi {
*/
min_seconds: number | null
/**
- * 5th percentile of the stage's duration, in seconds — the lower whisker when outliers are excluded. Null when nothing deployed.
+ * 5th percentile of the stage's duration, in seconds: the lower whisker when outliers are excluded. Null when nothing deployed.
* @nullable
*/
p05_seconds: number | null
@@ -508,7 +508,7 @@ export interface LeadTimeBucketApi {
*/
p75_seconds: number | null
/**
- * 95th percentile of the stage's duration, in seconds — the upper whisker when outliers are excluded. Null when nothing deployed.
+ * 95th percentile of the stage's duration, in seconds: the upper whisker when outliers are excluded. Null when nothing deployed.
* @nullable
*/
p95_seconds: number | null
@@ -522,7 +522,7 @@ export interface LeadTimeBucketApi {
export interface DoraOverviewApi {
/** Successful deployments per bucket across the window, oldest first, zero-filled, bucketed by series_granularity. Empty when the deploy tables aren't synced. */
deployment_frequency_series: DeploymentFrequencyBucketApi[]
- /** Merge-to-deploy distribution per bucket across the window, oldest first — the box-plot series (min/p5/p25/p50/mean/p75/p95/max seconds per bucket). Empty when the deploy tables aren't synced, or when github_team was passed without membership data synced. */
+ /** Merge-to-deploy distribution per bucket across the window, oldest first: the box-plot series (min/p5/p25/p50/mean/p75/p95/max seconds per bucket). Empty when the deploy tables aren't synced, or when github_team was passed without membership data synced. */
merge_to_deploy_series: LeadTimeBucketApi[]
/** Open-to-merge distribution over the SAME deployed PRs and buckets as merge_to_deploy_series, so the two stages compare bucket by bucket. Not the all-merged-PRs cycle time. Empty in the same cases as merge_to_deploy_series. */
open_to_merge_series: LeadTimeBucketApi[]
@@ -538,7 +538,7 @@ export interface DoraOverviewApi {
selected_environments: string[]
/** True when the optional team-membership snapshot is synced. When false, a github_team filter cannot be honored and the merge-to-deploy figures go empty rather than silently unfiltered. */
has_membership_data: boolean
- /** Distinct GitHub team slugs from the membership snapshot, sorted — the team picker's options. Empty when membership isn't synced. */
+ /** Distinct GitHub team slugs from the membership snapshot, sorted: the team picker's options. Empty when membership isn't synced. */
github_teams: string[]
/** Deployments whose first success status landed in the window, within the environment scope. */
deployment_count: number
@@ -565,7 +565,7 @@ export interface DoraOverviewApi {
*/
median_merge_to_deploy_seconds_prev: number | null
/**
- * Median seconds from a PR's open to the first successful deployment containing it — the full open-to-deploy lead time over the same deployed-PR population as median_merge_to_deploy_seconds. Null when nothing deployed in the window.
+ * Median seconds from a PR's open to the first successful deployment containing it: the full open-to-deploy lead time over the same deployed-PR population as median_merge_to_deploy_seconds. Null when nothing deployed in the window.
* @nullable
*/
median_open_to_deploy_seconds: number | null
@@ -574,7 +574,7 @@ export interface DoraOverviewApi {
* @nullable
*/
median_open_to_deploy_seconds_prev: number | null
- /** PRs first deployed in the window — the population behind the merge-to-deploy median and box plot. */
+ /** PRs first deployed in the window: the population behind the merge-to-deploy median and box plot. */
deployed_pr_count: number
/** Previous-window twin of deployed_pr_count. */
deployed_pr_count_prev: number
@@ -602,7 +602,7 @@ export interface DoraOverviewApi {
* @nullable
*/
median_failed_deploy_to_next_success_seconds_prev: number | null
- /** PRs merged in the window (bots and drafts excluded; narrowed by github_team when given) — the denominator behind unattributed_merged_pr_share. */
+ /** PRs merged in the window (bots and drafts excluded; narrowed by github_team when given): the denominator behind unattributed_merged_pr_share. */
merged_pr_count: number
/**
* Share of merged_pr_count no successful in-scope deployment attributed: recent merges still waiting for their deploy, plus merges whose deploy the scope or scan bounds miss. Null when nothing merged in the window.
@@ -610,7 +610,7 @@ export interface DoraOverviewApi {
*/
unattributed_merged_pr_share: number | null
/**
- * The newest deployment status row synced, any environment — how fresh the deploy data is. Windows ending after this instant undercount. Null when the deploy tables are empty.
+ * The newest deployment status row synced, any environment: how fresh the deploy data is. Windows ending after this instant undercount. Null when the deploy tables are empty.
* @nullable
*/
latest_deploy_status_at: string | null
@@ -702,12 +702,12 @@ export interface WorkflowJobAggregateApi {
*/
queue_p50_seconds: number | null
/**
- * Median duration of successful job instances, in seconds — cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
+ * Median duration of successful job instances, in seconds: cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
* @nullable
*/
p50_seconds: number | null
/**
- * 95th-percentile duration of successful job instances, in seconds — cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
+ * 95th-percentile duration of successful job instances, in seconds: cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
* @nullable
*/
p95_seconds: number | null
@@ -735,7 +735,7 @@ export interface MasterFailureGroupApi {
repo: RepoRefApi
/** GitHub Actions workflow name the failing runs belong to. */
workflow_name: string
- /** De-sharded failing job name (matrix '(G/N)' suffix stripped) — the group's failure signature together with the workflow. '' when the job-level source isn't synced and the group degrades to workflow level. */
+ /** De-sharded failing job name (matrix '(G/N)' suffix stripped): the group's failure signature together with the workflow. '' when the job-level source isn't synced and the group degrades to workflow level. */
failed_job: string
/** Distinct failing default-branch runs in this group within the window. */
run_count: number
@@ -743,7 +743,7 @@ export interface MasterFailureGroupApi {
first_seen: string
/** When the newest failing run in the group started. */
last_seen: string
- /** Run id of the newest failing run — the drill-down anchor. */
+ /** Run id of the newest failing run: the drill-down anchor. */
latest_run_id: number
}
@@ -777,9 +777,9 @@ export interface PRCostSummaryApi {
by_workflow: WorkflowCostApi[]
/** Same spend broken down per workflow run, keyed by (run_id, run_attempt). */
by_run: RunCostApi[]
- /** Agent LLM token spend attributed to this PR by git branch ($ai_git_branch), or null when no generation matched — independent of the CI cost figures, so it can be present even when jobs_available is false. The UI hides the row when null. */
+ /** Agent LLM token spend attributed to this PR by git branch ($ai_git_branch), or null when no generation matched: independent of the CI cost figures, so it can be present even when jobs_available is false. The UI hides the row when null. */
llm_spend?: PRLLMSpendApi | null
- /** False when the job-level source (github_workflow_jobs) isn't synced — every figure is then zero/null and the cost cards should be hidden. */
+ /** False when the job-level source (github_workflow_jobs) isn't synced: every figure is then zero/null and the cost cards should be hidden. */
jobs_available: boolean
/** Billable CI minutes: each costed (self-hosted) job's elapsed time, summed. Parallel jobs add up, so this is compute time spent, not wall-clock run duration. */
billable_minutes: number
@@ -790,9 +790,9 @@ export interface PRCostSummaryApi {
estimated_cost_usd: number | null
/** Jobs counted in the estimate (billable Linux runner, finished). */
costed_jobs: number
- /** Billable Linux jobs still queued/running (no elapsed) — excluded from the estimate. */
+ /** Billable Linux jobs still queued/running (no elapsed): excluded from the estimate. */
unsettled_jobs: number
- /** Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners — outside the estimate. */
+ /** Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners: outside the estimate. */
excluded_jobs: number
}
@@ -918,7 +918,7 @@ export interface PRLifecycleApi {
pull_request: PullRequestApi
/** Lifecycle events ordered by time. */
events: PRLifecycleEventApi[]
- /** Always 'partial' — CI events only; reviews and comments are not yet available.
+ /** Always 'partial': CI events only; reviews and comments are not yet available.
*
* * `precise` - PRECISE
* * `coarse` - COARSE
@@ -1504,7 +1504,7 @@ export interface RepoOverviewApi {
ready_to_merge_series: ReadyToMergeBucketApi[]
/** Workflow runs started in the window, all branches and workflows. */
run_count: number
- /** Same count over the equal-length window immediately before date_from — the delta baseline. */
+ /** Same count over the equal-length window immediately before date_from: the delta baseline. */
run_count_prev: number
/**
* Fraction of conclusive runs that succeeded (0-1) in the window. Skipped, cancelled, neutral, and action_required runs are excluded. Null if no run reached a verdict.
@@ -1520,7 +1520,7 @@ export interface RepoOverviewApi {
rerun_cycles: number
/** Re-run cycles over the previous window. */
rerun_cycles_prev: number
- /** PRs merged in the window, all authors and bots included — the merge population that triggered the CI spend, so it divides cleanly into billable_minutes and estimated_cost_usd. */
+ /** PRs merged in the window, all authors and bots included. billable_minutes and estimated_cost_usd cover every run in the window, including default-branch and unmerged PR runs, so dividing them by this count spreads all CI spend over the merges. */
merged_pr_count: number
/** Merged-PR count over the previous window. */
merged_pr_count_prev: number
@@ -1565,7 +1565,7 @@ export interface RepoOverviewApi {
*/
estimated_cost_usd_prev: number | null
/**
- * estimated_cost_usd divided by merged_pr_count — the window's CI cost per merged PR. Null when the job-level source isn't synced or nothing merged.
+ * estimated_cost_usd divided by merged_pr_count: the window's CI cost per merged PR. Null when the job-level source isn't synced or nothing merged.
* @nullable
*/
cost_per_merge_usd: number | null
@@ -1584,7 +1584,7 @@ export interface RepoOverviewApi {
* @nullable
*/
merge_queue_billable_minutes_prev: number | null
- /** PRs merged in the window with at least one corroborated merge-queue gate run — the population behind every merge_queue_* landing stat. All authors, bots included. */
+ /** PRs merged in the window with at least one corroborated merge-queue gate run: the population behind every merge_queue_* landing stat. All authors, bots included. */
merge_queue_merged_pr_count: number
/** Queue-landed merges over the previous window. */
merge_queue_merged_pr_count_prev: number
@@ -1599,7 +1599,7 @@ export interface RepoOverviewApi {
*/
merge_queue_median_first_gate_to_merge_seconds_prev: number | null
/**
- * p90 of the same first-gate-run-to-merge measure — the tail, where queue pain concentrates. Null when no queue-landed merges.
+ * p90 of the same first-gate-run-to-merge measure: the tail, where queue pain concentrates. Null when no queue-landed merges.
* @nullable
*/
merge_queue_p90_first_gate_to_merge_seconds: number | null
@@ -1681,7 +1681,7 @@ export interface RepoOverviewApi {
*/
merge_queue_skip_the_line_count_prev: number | null
/**
- * Median wall clock for a PR push round to settle fully green over the window — the window-level twin of time_to_green_series, same population and exclusions. Null when no fully green rounds.
+ * Median wall clock for a PR push round to settle fully green over the window: the window-level twin of time_to_green_series, same population and exclusions. Null when no fully green rounds.
* @nullable
*/
median_time_to_green_seconds: number | null
@@ -1741,7 +1741,7 @@ export interface WorkflowRunActivityApi {
export interface BranchPRMatchApi {
/** Repository the pull request belongs to, as 'owner/name'. */
repo: string
- /** Pull request number within the repository — pair with `repo` to link to it. */
+ /** Pull request number within the repository: pair with `repo` to link to it. */
number: number
/**
* Pull request title, or null when the snapshot carries no title.
@@ -1760,16 +1760,16 @@ export interface RunFailureLogsApi {
jobs: CIJobFailureLogApi[]
/** Workflow run id the failure logs are for. */
run_id: number
- /** False when no failure logs were found — the run didn't fail, or its logs aged out of the short Logs retention. */
+ /** False when no failure logs were found: the run didn't fail, or its logs aged out of the short Logs retention. */
logs_available: boolean
/** True when the overall line cap across all jobs was hit. */
truncated: boolean
}
export interface GitHubSourceApi {
- /** Source id — pass back as `source_id` (with `repo`) to read this repository. */
+ /** Source id: pass back as `source_id` (with `repo`) to read this repository. */
id: string
- /** Repository as 'owner/name' — pass back as `repo` to scope to it. One entry per repository a source syncs; '' if unknown. */
+ /** Repository as 'owner/name': pass back as `repo` to scope to it. One entry per repository a source syncs; '' if unknown. */
repo: string
/** User-chosen warehouse table-name prefix for this source, or '' when none. */
prefix: string
@@ -1982,12 +1982,12 @@ export interface WorkflowHealthItemApi {
*/
success_rate: number | null
/**
- * Median duration in seconds over successful runs only — cancelled (superseded) and failed runs end early and would bias the percentile. Null if no run succeeded in the window.
+ * Median duration in seconds over successful runs only: cancelled (superseded) and failed runs end early and would bias the percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Null if no run succeeded in the window.
* @nullable
*/
p50_seconds: number | null
/**
- * 95th-percentile duration in seconds over successful runs only — cancelled (superseded) and failed runs end early and would bias the percentile. Null if no run succeeded in the window.
+ * 95th-percentile duration in seconds over successful runs only: cancelled (superseded) and failed runs end early and would bias the percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Null if no run succeeded in the window.
* @nullable
*/
p95_seconds: number | null
@@ -2029,7 +2029,7 @@ export interface WorkflowHealthItemApi {
* @nullable
*/
success_rate_prev?: number | null
- /** Successful runs that did real CI work. This is the p50/p95 sample count. */
+ /** Successful runs lasting at least 10 seconds. Zero when p50/p95 fall back to shorter successful runs. */
percentile_run_count?: number
/** Runs on merge-queue gate branches (trunk-merge/**) in the window, counted regardless of branch or run_scope. Non-zero marks a workflow the queue runs before a merge lands, the closest available proxy for a required check. */
merge_queue_run_count?: number
@@ -2475,7 +2475,7 @@ export type EngineeringAnalyticsRepoOverviewParams = {
*/
date_to?: string
/**
- * Set false to skip the chart series (cost_series, time_to_green_series, success_rate_series, open_to_merge_series return empty) and their query cost — for headline-only consumers like the weekly digest. Defaults to true.
+ * Set false to skip the chart series (cost_series, time_to_green_series, success_rate_series, open_to_merge_series return empty) and their query cost: for headline-only consumers like the weekly digest. Defaults to true.
*/
include_series?: boolean
/**
diff --git a/products/engineering_analytics/frontend/generated/api.ts b/products/engineering_analytics/frontend/generated/api.ts
index 13582bf0072d..094163847219 100644
--- a/products/engineering_analytics/frontend/generated/api.ts
+++ b/products/engineering_analytics/frontend/generated/api.ts
@@ -128,7 +128,7 @@ export const getEngineeringAnalyticsBrokenTestsUrl = (
}
/**
- * The broken-tests triage panel: live CI failures over the last 2 days grouped into distinct failures (by test id + normalized error signature) and classified by how each is behaving right now — breaking trunk, blocking the merge queue, a new failure spreading across branches, probably-resolved, flaky, or one PR's own problem — ranked with the most urgent first. A blocking_merge_queue row is a failure on a merge-queue gate branch that never hit trunk: the commit had already passed the PR's own CI, so it is the semantic conflict the queue exists to catch, and it is holding up landings. Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Reach for this to answer 'what CI failures should I care about right now'; expand a row's latest_run_id via run_failure_logs for the failing lines. Fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced — without it those failures fall through to flaky/pr_only rather than being misreported.
+ * The broken-tests triage panel: live CI failures over the last 2 days grouped into distinct failures (by test id + normalized error signature) and classified by how each is behaving right now: breaking trunk, blocking the merge queue, a new failure spreading across branches, probably-resolved, flaky, or one PR's own problem: ranked with the most urgent first. A blocking_merge_queue row is a failure on a merge-queue gate branch that never hit trunk: the commit had already passed the PR's own CI, so it is the semantic conflict the queue exists to catch, and it is holding up landings. Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Reach for this to answer 'what CI failures should I care about right now'; expand a row's latest_run_id via run_failure_logs for the failing lines. Fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced: without it those failures fall through to flaky/pr_only rather than being misreported.
*/
export const engineeringAnalyticsBrokenTests = async (
projectId: string,
@@ -366,7 +366,7 @@ export const getEngineeringAnalyticsDoraUrl = (projectId: string, params?: Engin
}
/**
- * DORA-style deploy metrics over the GitHub deployments + deployment_statuses warehouse pair, each headline with its previous-window twin: deployment frequency, merge-to-deploy lead time (with a per-bucket box-plot series), and honest proxies for change failure rate and time to restore (deploy-status based — no incident data is linked). deploy_data_available is false when the deploy tables aren't synced.
+ * DORA-style deploy metrics over the GitHub deployments + deployment_statuses warehouse pair, each headline with its previous-window twin: deployment frequency, merge-to-deploy lead time (with a per-bucket box-plot series), and honest proxies for change failure rate and time to restore (deploy-status based: no incident data is linked). deploy_data_available is false when the deploy tables aren't synced.
*/
export const engineeringAnalyticsDora = async (
projectId: string,
@@ -432,7 +432,7 @@ export const getEngineeringAnalyticsJobAggregatesUrl = (
}
/**
- * Per-job aggregates for one workflow over a window (default -30d), one row per de-sharded job name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Optionally scope to a single git branch via `branch` or one run group via `run_scope`. Jobs always need their run as context — this is the aggregate view; use workflow_jobs for one run's jobs. Empty when the job-level source isn't synced.
+ * Per-job aggregates for one workflow over a window (default -30d), one row per de-sharded job name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Optionally scope to a single git branch via `branch` or one run group via `run_scope`. Jobs always need their run as context: this is the aggregate view; use workflow_jobs for one run's jobs. Empty when the job-level source isn't synced.
*/
export const engineeringAnalyticsJobAggregates = async (
projectId: string,
@@ -465,7 +465,7 @@ export const getEngineeringAnalyticsMasterFailuresUrl = (
}
/**
- * Default-branch failures over a window (default -24h), grouped error-tracking style by (workflow, de-sharded failing job) with a run count and first/last seen, newest group first. `branch` overrides the detected default branch. PR-branch failures are deliberately excluded — at monorepo volume a flat feed is a firehose; those surface per PR. Groups degrade to workflow level (failed_job '') when the job-level source isn't synced.
+ * Default-branch failures over a window (default -24h), grouped error-tracking style by (workflow, de-sharded failing job) with a run count and first/last seen, newest group first. `branch` overrides the detected default branch. PR-branch failures are deliberately excluded: at monorepo volume a flat feed is a firehose; those surface per PR. Groups degrade to workflow level (failed_job '') when the job-level source isn't synced.
*/
export const engineeringAnalyticsMasterFailures = async (
projectId: string,
@@ -495,7 +495,7 @@ export const getEngineeringAnalyticsPrCostUrl = (projectId: string, params: Engi
}
/**
- * Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet. `llm_spend` carries the agent LLM token spend attributed to the PR by git branch, or null when no `$ai_generation` event matched.
+ * Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only: provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet. `llm_spend` carries the agent LLM token spend attributed to the PR by git branch, or null when no `$ai_generation` event matched.
*/
export const engineeringAnalyticsPrCost = async (
projectId: string,
@@ -624,7 +624,7 @@ export const getEngineeringAnalyticsPullRequestsUrl = (
}
/**
- * Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse — it fuses draft and ready-for-review time; CI counts can lag until late completions settle.
+ * Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse: it fuses draft and ready-for-review time; CI counts can lag until late completions settle.
*/
export const engineeringAnalyticsPullRequests = async (
projectId: string,
@@ -657,7 +657,7 @@ export const getEngineeringAnalyticsQuarantineUrl = (
}
/**
- * The repository's checked-in .test_quarantine.json: flaky tests temporarily quarantined with a hard expiry, classified by urgency (overdue, in grace, expiring soon, active). `available` is false when the repo has no quarantine file — that is not an error. Parsing is fail-open: malformed entries are reported in parse_errors while well-formed ones are kept.
+ * The repository's checked-in .test_quarantine.json: flaky tests temporarily quarantined with a hard expiry, classified by urgency (overdue, in grace, expiring soon, active). `available` is false when the repo has no quarantine file: that is not an error. Parsing is fail-open: malformed entries are reported in parse_errors while well-formed ones are kept.
* @summary Flaky-test quarantine file
*/
export const engineeringAnalyticsQuarantine = async (
@@ -676,7 +676,7 @@ export const getEngineeringAnalyticsQuarantineRequestUrl = (projectId: string) =
}
/**
- * Opens a pull request that edits the repository's checked-in .test_quarantine.json — and, for a new quarantine, a tracking issue the PR links but does not close. The file stays the source of truth that CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges.
+ * Opens a pull request that edits the repository's checked-in .test_quarantine.json and, for a new quarantine, opens a tracking issue that the PR links but does not close. The file stays the source of truth that CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges.
* @summary Quarantine, extend, or unquarantine a flaky test
*/
export const engineeringAnalyticsQuarantineRequest = async (
@@ -712,7 +712,7 @@ export const getEngineeringAnalyticsRepoOverviewUrl = (
}
/**
- * Repo-level headline aggregates over a window (default -30d): run count, conclusive-run success rate, re-run cycles, merged-PR count (bots included), median PR open-to-merge (bots and drafts excluded; coarse — draft and ready time fused), median time-to-green, billable minutes + estimated cost (with the merge-queue slice of billable minutes broken out), and merge-queue landing stats (queue-landed merges, first-gate-to-merge median and p90, gate attempts, failed-gate share) — each with its equal-length previous-window twin so a caller can render honest deltas. Also carries the detected default branch and its completed-run history series (skippable via include_series=false). Cost figures are null until the job-level source is synced.
+ * Repo-level headline aggregates over a window (default -30d): run count, conclusive-run success rate, re-run cycles, merged-PR count (bots included), median PR open-to-merge (bots and drafts excluded; coarse: draft and ready time fused), median time-to-green, billable minutes + estimated cost (with the merge-queue slice of billable minutes broken out), and merge-queue landing stats (queue-landed merges, first-gate-to-merge median and p90, gate attempts, failed-gate share): each with its equal-length previous-window twin so a caller can render honest deltas. Also carries the detected default branch and its completed-run history series (skippable via include_series=false). Cost figures are null until the job-level source is synced.
*/
export const engineeringAnalyticsRepoOverview = async (
projectId: string,
@@ -778,7 +778,7 @@ export const getEngineeringAnalyticsResolveBranchUrl = (
}
/**
- * Resolve a git branch to the pull request(s) it belongs to — the cross-product link seam so another product (the LLM analytics UI) can turn a git branch into a PR detail link. Matches the PR's head ref, open PRs first then most recently updated. Pass `timestamp` (the trace's capture time) to prefer the PR that was active at that moment when a branch name has been reused across PRs. `branch` is required. Returns a possibly-empty, possibly-multi list — an empty list is a valid 200 (the caller renders a plain chip).
+ * Resolve a git branch to the pull request(s) it belongs to: the cross-product link seam so another product (the LLM analytics UI) can turn a git branch into a PR detail link. Matches the PR's head ref, open PRs first then most recently updated. Pass `timestamp` (the trace's capture time) to prefer the PR that was active at that moment when a branch name has been reused across PRs. `branch` is required. Returns a possibly-empty, possibly-multi list: an empty list is a valid 200 (the caller renders a plain chip).
*/
export const engineeringAnalyticsResolveBranch = async (
projectId: string,
@@ -811,7 +811,7 @@ export const getEngineeringAnalyticsRunFailureLogsUrl = (
}
/**
- * The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
+ * The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
*/
export const engineeringAnalyticsRunFailureLogs = async (
projectId: string,
@@ -829,7 +829,7 @@ export const getEngineeringAnalyticsSourcesUrl = (projectId: string) => {
}
/**
- * The team's selectable GitHub repositories, oldest source first — one entry per repository a source is configured to sync, so a source syncing several repositories appears once per repo. Populate a repo picker from this and pass a chosen entry's `id` back as `source_id` and its `repo` back as `repo` to the other endpoints. Includes repositories whose tables aren't fully synced yet.
+ * The team's selectable GitHub repositories, oldest source first: one entry per repository a source is configured to sync, so a source syncing several repositories appears once per repo. Populate a repo picker from this and pass a chosen entry's `id` back as `source_id` and its `repo` back as `repo` to the other endpoints. Includes repositories whose tables aren't fully synced yet.
*/
export const engineeringAnalyticsSources = async (
projectId: string,
@@ -960,7 +960,7 @@ export const getEngineeringAnalyticsTrunkQuarantineUrl = (
}
/**
- * The standing Trunk quarantine debt: every test Trunk currently quarantines (failures suppressed in CI), attributed to the team that owns its file in the repository, aged against a TTL, and rolled up per team with the most indebted first. A quarantine only masks a test; it never fixes it, so this is the work queue of tests someone still has to repair or delete. `available` is false when no TrunkIo source has the QuarantinedTests endpoint synced — that is not an error.
+ * The standing Trunk quarantine debt: every test Trunk currently quarantines (failures suppressed in CI), attributed to the team that owns its file in the repository, aged against a TTL, and rolled up per team with the most indebted first. A quarantine only masks a test; it never fixes it, so this is the work queue of tests someone still has to repair or delete. `available` is false when no TrunkIo source has the QuarantinedTests endpoint synced: that is not an error.
* @summary Trunk quarantine debt by owning team
*/
export const engineeringAnalyticsTrunkQuarantine = async (
@@ -994,7 +994,7 @@ export const getEngineeringAnalyticsWorkflowHealthUrl = (
}
/**
- * Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. Success rate covers runs that succeeded or ended in a decisive failure. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Optionally scope to a single git branch via `branch`, to one workflow via `workflow_name`, or to one run group via `run_scope` (default_branch, pull_request, merge_queue). Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend.
+ * Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. Success rate covers runs that succeeded or ended in a decisive failure. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Optionally scope to a single git branch via `branch`, to one workflow via `workflow_name`, or to one run group via `run_scope` (default_branch, pull_request, merge_queue). Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend.
*/
export const engineeringAnalyticsWorkflowHealth = async (
projectId: string,
@@ -1060,7 +1060,7 @@ export const getEngineeringAnalyticsWorkflowRunUrl = (
}
/**
- * A single workflow run: status, conclusion, duration, branch, attempt, and the attributed pull request. Run-level only — per-job and per-step detail are not tracked yet.
+ * A single workflow run: status, conclusion, duration, branch, attempt, and the attributed pull request. Run-level only: per-job and per-step detail are not tracked yet.
*/
export const engineeringAnalyticsWorkflowRun = async (
projectId: string,
@@ -1159,7 +1159,7 @@ export const getEngineeringAnalyticsWorkflowRunsUrl = (
}
/**
- * Runs of a single workflow within a repo over a window (date_from default -30d), newest first. Optionally scope to a single git branch via `branch` or to one run group via `run_scope`. Each row is run-level — per-job and per-step detail are not tracked yet. Use this as the GitHub 'workflow' page between the workflow list and a single run.
+ * Runs of a single workflow within a repo over a window (date_from default -30d), newest first. Optionally scope to a single git branch via `branch` or to one run group via `run_scope`. Each row is run-level: per-job and per-step detail are not tracked yet. Use this as the GitHub 'workflow' page between the workflow list and a single run.
*/
export const engineeringAnalyticsWorkflowRuns = async (
projectId: string,
diff --git a/products/engineering_analytics/frontend/generated/api.zod.ts b/products/engineering_analytics/frontend/generated/api.zod.ts
index 7483e287ddaf..185836a5a290 100644
--- a/products/engineering_analytics/frontend/generated/api.zod.ts
+++ b/products/engineering_analytics/frontend/generated/api.zod.ts
@@ -17,7 +17,7 @@ export const EngineeringAnalyticsCiSignalsConfigUpdateBody = /* @__PURE__ */ zod
})
/**
- * Opens a pull request that edits the repository's checked-in .test_quarantine.json — and, for a new quarantine, a tracking issue the PR links but does not close. The file stays the source of truth that CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges.
+ * Opens a pull request that edits the repository's checked-in .test_quarantine.json and, for a new quarantine, opens a tracking issue that the PR links but does not close. The file stays the source of truth that CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges.
* @summary Quarantine, extend, or unquarantine a flaky test
*/
export const EngineeringAnalyticsQuarantineRequestBody = /* @__PURE__ */ zod.object({
diff --git a/products/engineering_analytics/frontend/scenes/DeliverySections.tsx b/products/engineering_analytics/frontend/scenes/DeliverySections.tsx
index cfed12f2271d..f599fd3833ee 100644
--- a/products/engineering_analytics/frontend/scenes/DeliverySections.tsx
+++ b/products/engineering_analytics/frontend/scenes/DeliverySections.tsx
@@ -85,7 +85,7 @@ export function DeliverySections({
/>
<ScopeComparisonCard
title="Cost per push"
- tooltip="CI cost divided by pushes. A push is a new commit and the CI it started: the price of one iteration, so a high figure points at heavy workflows rather than many pushes."
+ tooltip="CI cost of merged pull requests, merge queue runs included, divided by their pushes. A push is a new head commit and the CI it started. A high figure points at heavy workflows rather than many pushes."
scopeLabel={scopeLabel}
figure={summary?.cost_per_push_usd}
formatValue={compactUsd}
@@ -123,7 +123,7 @@ export function DeliverySections({
</div>
<ScopeComparisonCard
title="Pushes after approval"
- tooltip="Average new commits pushed after the first approval, per merged pull request that had an approval."
+ tooltip="Average pushes after the first approval, per merged pull request that had an approval. A push is a new head commit that started CI."
scopeLabel={scopeLabel}
figure={summary?.pushes_after_approval_per_merged_pr}
formatValue={formatRatio}
diff --git a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx
index 862fc3854733..92bd08115f07 100644
--- a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx
@@ -150,7 +150,7 @@ export function EngineeringAnalyticsTeamScene(): JSX.Element {
>
<div className="grid grid-cols-1 gap-2 md:grid-cols-2">
<WindowComparisonCard
- title="Tests owned"
+ title="Test files owned"
tooltip="Test files this team owns per the daily owners.yaml census."
value={healthRow?.testFileCount}
previousValue={healthRow?.testFileCountPrior}
diff --git a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeams.tsx b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeams.tsx
index 29b23d1c294c..acb9492e520d 100644
--- a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeams.tsx
+++ b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeams.tsx
@@ -53,7 +53,7 @@ export function EngineeringAnalyticsTeams(): JSX.Element {
),
},
{
- title: 'Tests',
+ title: 'Test files',
key: 'testFileCount',
width: 120,
align: 'right',
diff --git a/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx b/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
index ef72059c3821..647a34a1152a 100644
--- a/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
@@ -116,12 +116,12 @@ export function RepoOverviewScene(): JSX.Element {
formatValue={formatAxisMinutes}
goodWhenDown
loading={overviewPending}
- tooltip="Median time from a push until every workflow on it is green. Only fully green pushes count."
+ tooltip="Median time from a push to a pull request until every workflow on it is green. Only pushes that went fully green count."
emptyText="No fully green PR pushes in the window yet."
/>
<WindowComparisonCard
- title="CI cost per merged PR"
+ title="CI spend per merged PR"
value={overview?.cost_per_merge_usd}
previousValue={overview?.cost_per_merge_usd_prev}
formatValue={compactUsd}
@@ -134,7 +134,7 @@ export function RepoOverviewScene(): JSX.Element {
? 'Nothing merged in the window.'
: 'No costable jobs in the window.'
}
- tooltip="Estimated Depot CI cost per merged PR. Per-workflow spend is in Workflows below."
+ tooltip="Estimated CI cost of every run in the window, divided by the pull requests merged in it. Includes runs on the default branch and on pull requests that never merged. Per-workflow spend is in Workflows below."
/>
</div>
</Section>
diff --git a/products/engineering_analytics/frontend/scenes/WorkflowRunsScene.tsx b/products/engineering_analytics/frontend/scenes/WorkflowRunsScene.tsx
index e3244dfdac4c..402fd1d7de39 100644
--- a/products/engineering_analytics/frontend/scenes/WorkflowRunsScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/WorkflowRunsScene.tsx
@@ -350,7 +350,7 @@ export function WorkflowRunsScene(): JSX.Element {
/>
<MetricTile
label="Duration p50"
- tooltip="Median wall-clock duration over successful runs, excluding runs that settled in under 10 seconds without doing work."
+ tooltip="Median duration over successful runs. Runs under 10 seconds with no work are excluded when longer samples exist. All-fast workflows use every successful run."
value={
healthSummary.medianSeconds != null
? humanFriendlyDuration(healthSummary.medianSeconds)
@@ -364,8 +364,8 @@ export function WorkflowRunsScene(): JSX.Element {
loading={workflowHealthLoading}
/>
<MetricTile
- label="Queue time p50"
- tooltip="From job created to started, weighted across the workflow's jobs."
+ label="Estimated median queue time"
+ tooltip="Estimated median wait from job created to started: each job's median, weighted by how often the job ran."
value={queueP50Seconds != null ? humanFriendlyDuration(queueP50Seconds) : '—'}
loading={jobAggregatesLoading}
/>
diff --git a/products/engineering_analytics/mcp/tools.yaml b/products/engineering_analytics/mcp/tools.yaml
index 8721ec42d01a..6afa315f0ba8 100644
--- a/products/engineering_analytics/mcp/tools.yaml
+++ b/products/engineering_analytics/mcp/tools.yaml
@@ -29,13 +29,13 @@ tools:
queue (which ranks week-long unreliability). Each row's state is the verdict: breaking_master (failing on
the default branch and that job's latest run is still red, so trunk is broken now), blocking_merge_queue
(failing only on merge-queue gate branches, so it stopped a merge on a commit that had already passed the
- PR's own CI — the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day
+ PR's own CI: the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day
and already spreading across branches, not on trunk yet), potentially_resolved (hit trunk but that job is
green again), flaky (sporadic across two or more branches over more than a day), or pr_only (confined to one
- branch — one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run
+ branch: one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run
is red. Pass a row's latest_run_id to run-failure-logs to read the actual failing lines. Caveats:
fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the
- breaking/resolved distinction needs the job-level source synced — without it those failures fall through to
+ breaking/resolved distinction needs the job-level source synced: without it those failures fall through to
flaky/pr_only rather than being misreported. Counts are absolute, never rates (passing runs aren't in this
data).
feature_flag: engineering-analytics
@@ -53,7 +53,7 @@ tools:
idempotent: true
title: CI failure logs for a PR
description: >
- The thinned CI failure logs for a pull request, grouped by failed job — reach for this to answer "why did
+ The thinned CI failure logs for a pull request, grouped by failed job: reach for this to answer "why did
this PR's CI fail". Each failed job returns its failure region (the error lines plus surrounding context,
with "... N lines omitted ..." markers) as ordered lines, and every line carries its original 1-based line
number in the full pre-thinning log so you can locate it in the raw GitHub log. The PR is resolved to ALL
@@ -91,22 +91,23 @@ tools:
DORA-style deploy metrics over the GitHub deployments + deployment_statuses warehouse pair, each headline
with its previous-window twin: deployment frequency (deploys whose first success status landed in the
window, per-day normalized, with a bucketed series), and lead time across three stages over the same
- deployed-PR population and buckets — open_to_merge_series (PR open to merge), merge_to_deploy_series (median
- seconds from a PR's merge to the first successful deployment at or after it, bots/drafts excluded), and
- open_to_deploy_series (the full open-to-deploy span the other two compose into) — each a per-bucket
- min/p5/p25/p50/mean/p75/p95/max box-plot series, bucketed by series_granularity (pass granularity to pin
- hour/day/week, otherwise it's chosen to fit the window), and two honest proxies: failed_deployment_share
- (deployments with a failure/error status over deployments that reached an outcome — NOT true change failure
- rate, since no incident data is linked) and median_failed_deploy_to_next_success_seconds (first failure
- status to the next successful deploy in the same environment — NOT true time-to-restore, since recovery by
- anything other than a deploy is invisible). Environments default to all persistent production-marked or
- production-named environments (including regional suffixes), falling back to the busiest persistent one when
- none match; ephemeral per-PR preview environments never join a default scope. selected_environments lists
- the exact names used. Repeat environment to scope to exact names; the API trims and deduplicates them, keeps
- real transient names, and rejects blank or unknown names with a 400 response. Pass github_team (a slug from
- github_teams) to narrow the PR-scoped lead-time figures to that team's authors — deploy counts stay
- repo-wide. deploy_data_available is false when the deployments endpoints aren't synced on the GitHub source;
- the fix is enabling them, not re-querying.
+ deployed-PR population and buckets: open_to_merge_series (PR open to merge), merge_to_deploy_series
+ (per-bucket distribution of seconds from a PR's merge to the first successful deployment that contains it,
+ bots and drafts excluded), and open_to_deploy_series (the full open-to-deploy span the other two compose
+ into): each a per-bucket min/p5/p25/p50/mean/p75/p95/max box-plot series, bucketed by series_granularity
+ (pass granularity to pin hour/day/week, otherwise it's chosen to fit the window), and two honest proxies:
+ failed_deployment_share (deployments with a failure/error status over deployments that reached an outcome:
+ NOT true change failure rate, since no incident data is linked) and
+ median_failed_deploy_to_next_success_seconds (first failure status to the next successful deploy in the same
+ environment: NOT true time-to-restore, since recovery by anything other than a deploy is invisible).
+ Environments default to all persistent production-marked or production-named environments (including
+ regional suffixes), falling back to the busiest persistent one when none match; ephemeral per-PR preview
+ environments never join a default scope. selected_environments lists the exact names used. Repeat
+ environment to scope to exact names; the API trims and deduplicates them, keeps real transient names, and
+ rejects blank or unknown names with a 400 response. Pass github_team (a slug from github_teams) to narrow
+ the PR-scoped lead-time figures to that team's authors: deploy counts stay repo-wide. deploy_data_available
+ is false when the deployments endpoints aren't synced on the GitHub source; the fix is enabling them, not
+ re-querying.
engineering-analytics-flaky-tests:
operation: engineering_analytics_flaky_tests
enabled: true
@@ -157,7 +158,7 @@ tools:
per workflow (by_workflow) and per run (by_run). Reach for this instead of summing runner minutes by hand:
the estimate already classifies runners (billable self-hosted Linux vs free GitHub-hosted), applies the
per-vCPU price ladder, and excludes non-Linux and provider-hosted jobs. jobs_available is false when the
- job-level source isn't synced yet — every figure is then zero/null, so check it before trusting a $0.00.
+ job-level source isn't synced yet: every figure is then zero/null, so check it before trusting a $0.00.
estimated_cost_usd is null (not zero) when nothing was costable, and unsettled_jobs counts billable jobs
still running that are left out of the estimate.
feature_flag: engineering-analytics
@@ -193,7 +194,7 @@ tools:
idempotent: true
title: CI failure logs for a run
description: >
- The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of
+ The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of
ci-failure-logs, for when you have a run id rather than a PR (default-branch failures, the broken-tests
panel's latest_run_id, the run page). Each failed job returns its failure region (error lines plus
surrounding context, with "... N lines omitted ..." markers) as ordered lines, every line carrying its
@@ -213,19 +214,19 @@ tools:
list: true
title: List connected GitHub sources
description: >
- The team's selectable GitHub repositories, oldest source first — one entry per repository a source syncs,
+ The team's selectable GitHub repositories, oldest source first: one entry per repository a source syncs,
each with its source id, repo (owner/name), table prefix, and a synced flag. A source can sync several
repositories, so entries can share an id and differ only by repo. Call this first when a team may have more
than one source or repo, then pass a chosen entry's id as source_id AND its repo as repo to the
- pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo — omitting repo
- on a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo
- you can skip it — the other tools default to the oldest connected source. The prefix also names the
- underlying warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions
- when the named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests /
- github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified —
- the name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__',
+ pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo: omitting repo on
+ a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo you
+ can skip it: the other tools default to the oldest connected source. The prefix also names the underlying
+ warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions when the
+ named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests /
+ github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified: the
+ name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__',
lower-cased), e.g. posthog/posthog.com's pull_requests is prefix +
- github_posthog_posthog__com__pull_requests — so pick the table for the repo you mean (timestamps land as
+ github_posthog_posthog__com__pull_requests: so pick the table for the repo you mean (timestamps land as
strings; parse with parseDateTimeBestEffort).
feature_flag: engineering-analytics
engineering-analytics-team-ci-activity:
@@ -326,11 +327,11 @@ tools:
title: PR lifecycle timeline
description: >
The timeline of a single pull request: a header (number, title, author, state, draft, timestamps) plus
- ordered events — opened, ready for review, converted to draft, CI started, CI finished, and merged or
- closed. Use this to answer "where is this PR stuck and what happened to it". Draft/ready transitions appear
- only when the issue-events table is synced and cover a bounded recent window. metric_quality is "partial" —
- review and comment events are not yet available. For aggregate questions use the pull-requests and
- workflow-health tools.
+ ordered events: opened, ready for review, converted to draft, CI started, CI finished, and merged or closed.
+ Use this to answer "where is this PR stuck and what happened to it". Draft/ready transitions appear only
+ when the issue-events table is synced and cover a bounded recent window. metric_quality is "partial": review
+ and comment events are not yet available. For aggregate questions use the pull-requests and workflow-health
+ tools.
feature_flag: engineering-analytics
pull-requests:
operation: engineering_analytics_pull_requests
@@ -346,7 +347,7 @@ tools:
description: >
Open pull requests plus any merged or closed within the window, newest first, each with its head-SHA CI
rollup (runs / passing / failing / pending). Use this for "which PRs are stuck", "which open PRs have
- failing or pending CI", and per-author or per-repo PR triage. open_to_merge_seconds is coarse — it is
+ failing or pending CI", and per-author or per-repo PR triage. open_to_merge_seconds is coarse: it is
merged_at minus created_at and fuses draft and ready-for-review time, so report it as "open to merge", never
"cycle time". ready_to_merge_seconds is the true cycle time: merged_at minus the last observed
ready-for-review transition (only the last draft/ready switch counts), or minus created_at for a merged PR
@@ -357,7 +358,7 @@ tools:
param_overrides:
date_from:
description: >
- Recency floor for merged/closed PRs — relative ('-30d', '-8w') or ISO8601. Open PRs are always
+ Recency floor for merged/closed PRs: relative ('-30d', '-8w') or ISO8601. Open PRs are always
included regardless of age. Defaults to -30d.
feature_flag: engineering-analytics
workflow-health:
@@ -376,14 +377,15 @@ tools:
this for "is CI getting faster or slower", "which GitHub Actions workflow is the slow or flaky long pole",
and CI duration trends. Success rate covers runs that succeeded or ended in failure, timeout, startup
failure, or staleness. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over
- successful runs only, so superseded cancels and failed runs never bias the duration percentile. Pass
- run_scope to report on one group of runs: default_branch, pull_request (PR branches only, same-repo PRs —
- fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over two adjacent windows
- and compare.
+ successful runs only, so superseded cancels and failed runs never bias the duration percentile. Runs under
+ 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every
+ successful run. Pass run_scope to report on one group of runs: default_branch, pull_request (PR branches
+ only, same-repo PRs: fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over
+ two adjacent windows and compare.
param_overrides:
date_from:
- description: Window start — relative ('-24h', '-7d') or ISO8601. Defaults to -24h.
+ description: "Window start: relative ('-24h', '-7d') or ISO8601. Defaults to -24h."
date_to:
- description: Window end — relative or ISO8601. Defaults to now.
+ description: 'Window end: relative or ISO8601. Defaults to now.'
feature_flag: engineering-analytics
url_prefix: /engineering-analytics/workflows
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 9d56fca6fd1a..a8cc09c8b2d6 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -3776,7 +3776,7 @@
}
},
"engineering-analytics-broken-tests": {
- "description": "Live CI failures over the last 2 days, grouped into distinct failures (by failing test id + a normalized error signature) and classified by how each is behaving right now, most urgent first. Reach for this to answer \"what CI failures should I care about right now\": it is the triage counterpart to the test-health queue (which ranks week-long unreliability). Each row's state is the verdict: breaking_master (failing on the default branch and that job's latest run is still red, so trunk is broken now), blocking_merge_queue (failing only on merge-queue gate branches, so it stopped a merge on a commit that had already passed the PR's own CI — the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day and already spreading across branches, not on trunk yet), potentially_resolved (hit trunk but that job is green again), flaky (sporadic across two or more branches over more than a day), or pr_only (confined to one branch — one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Pass a row's latest_run_id to run-failure-logs to read the actual failing lines. Caveats: fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced — without it those failures fall through to flaky/pr_only rather than being misreported. Counts are absolute, never rates (passing runs aren't in this data).",
+ "description": "Live CI failures over the last 2 days, grouped into distinct failures (by failing test id + a normalized error signature) and classified by how each is behaving right now, most urgent first. Reach for this to answer \"what CI failures should I care about right now\": it is the triage counterpart to the test-health queue (which ranks week-long unreliability). Each row's state is the verdict: breaking_master (failing on the default branch and that job's latest run is still red, so trunk is broken now), blocking_merge_queue (failing only on merge-queue gate branches, so it stopped a merge on a commit that had already passed the PR's own CI: the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day and already spreading across branches, not on trunk yet), potentially_resolved (hit trunk but that job is green again), flaky (sporadic across two or more branches over more than a day), or pr_only (confined to one branch: one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Pass a row's latest_run_id to run-failure-logs to read the actual failing lines. Caveats: fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced: without it those failures fall through to flaky/pr_only rather than being misreported. Counts are absolute, never rates (passing runs aren't in this data).",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Broken tests triage",
@@ -3791,7 +3791,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-ci-failure-logs": {
- "description": "The thinned CI failure logs for a pull request, grouped by failed job — reach for this to answer \"why did this PR's CI fail\". Each failed job returns its failure region (the error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, and every line carries its original 1-based line number in the full pre-thinning log so you can locate it in the raw GitHub log. The PR is resolved to ALL its workflow runs across every push (via the pull_requests association, not the latest commit), so earlier pushes' failures are included too. logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association to resolve. Use pr-runs or workflow-jobs for the run/job metadata behind these logs.",
+ "description": "The thinned CI failure logs for a pull request, grouped by failed job: reach for this to answer \"why did this PR's CI fail\". Each failed job returns its failure region (the error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, and every line carries its original 1-based line number in the full pre-thinning log so you can locate it in the raw GitHub log. The PR is resolved to ALL its workflow runs across every push (via the pull_requests association, not the latest commit), so earlier pushes' failures are included too. logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association to resolve. Use pr-runs or workflow-jobs for the run/job metadata behind these logs.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "CI failure logs for a PR",
@@ -3821,7 +3821,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-pr-cost": {
- "description": "Estimated CI dollar cost of one pull request, summed over the jobs of all its workflow runs, with breakdowns per workflow (by_workflow) and per run (by_run). Reach for this instead of summing runner minutes by hand: the estimate already classifies runners (billable self-hosted Linux vs free GitHub-hosted), applies the per-vCPU price ladder, and excludes non-Linux and provider-hosted jobs. jobs_available is false when the job-level source isn't synced yet — every figure is then zero/null, so check it before trusting a $0.00. estimated_cost_usd is null (not zero) when nothing was costable, and unsettled_jobs counts billable jobs still running that are left out of the estimate.",
+ "description": "Estimated CI dollar cost of one pull request, summed over the jobs of all its workflow runs, with breakdowns per workflow (by_workflow) and per run (by_run). Reach for this instead of summing runner minutes by hand: the estimate already classifies runners (billable self-hosted Linux vs free GitHub-hosted), applies the per-vCPU price ladder, and excludes non-Linux and provider-hosted jobs. jobs_available is false when the job-level source isn't synced yet: every figure is then zero/null, so check it before trusting a $0.00. estimated_cost_usd is null (not zero) when nothing was costable, and unsettled_jobs counts billable jobs still running that are left out of the estimate.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Estimated CI cost of a PR",
@@ -3836,7 +3836,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-run-failure-logs": {
- "description": "The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci-failure-logs, for when you have a run id rather than a PR (default-branch failures, the broken-tests panel's latest_run_id, the run page). Each failed job returns its failure region (error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, every line carrying its original 1-based line number in the full pre-thinning log. logs_available is false when the run didn't fail or its logs aged out of the short Logs retention. Use ci-failure-logs instead when you have a PR number and want all its runs' failures.",
+ "description": "The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of ci-failure-logs, for when you have a run id rather than a PR (default-branch failures, the broken-tests panel's latest_run_id, the run page). Each failed job returns its failure region (error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, every line carrying its original 1-based line number in the full pre-thinning log. logs_available is false when the run didn't fail or its logs aged out of the short Logs retention. Use ci-failure-logs instead when you have a PR number and want all its runs' failures.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "CI failure logs for a run",
@@ -3851,7 +3851,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-sources": {
- "description": "The team's selectable GitHub repositories, oldest source first — one entry per repository a source syncs, each with its source id, repo (owner/name), table prefix, and a synced flag. A source can sync several repositories, so entries can share an id and differ only by repo. Call this first when a team may have more than one source or repo, then pass a chosen entry's id as source_id AND its repo as repo to the pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo — omitting repo on a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo you can skip it — the other tools default to the oldest connected source. The prefix also names the underlying warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions when the named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests / github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified — the name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__', lower-cased), e.g. posthog/posthog.com's pull_requests is prefix + github_posthog_posthog__com__pull_requests — so pick the table for the repo you mean (timestamps land as strings; parse with parseDateTimeBestEffort).",
+ "description": "The team's selectable GitHub repositories, oldest source first: one entry per repository a source syncs, each with its source id, repo (owner/name), table prefix, and a synced flag. A source can sync several repositories, so entries can share an id and differ only by repo. Call this first when a team may have more than one source or repo, then pass a chosen entry's id as source_id AND its repo as repo to the pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo: omitting repo on a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo you can skip it: the other tools default to the oldest connected source. The prefix also names the underlying warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions when the named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests / github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified: the name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__', lower-cased), e.g. posthog/posthog.com's pull_requests is prefix + github_posthog_posthog__com__pull_requests: so pick the table for the repo you mean (timestamps land as strings; parse with parseDateTimeBestEffort).",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "List connected GitHub sources",
@@ -9087,7 +9087,7 @@
"feature_flag": "posthog-connect"
},
"pr-lifecycle": {
- "description": "The timeline of a single pull request: a header (number, title, author, state, draft, timestamps) plus ordered events — opened, ready for review, converted to draft, CI started, CI finished, and merged or closed. Use this to answer \"where is this PR stuck and what happened to it\". Draft/ready transitions appear only when the issue-events table is synced and cover a bounded recent window. metric_quality is \"partial\" — review and comment events are not yet available. For aggregate questions use the pull-requests and workflow-health tools.",
+ "description": "The timeline of a single pull request: a header (number, title, author, state, draft, timestamps) plus ordered events: opened, ready for review, converted to draft, CI started, CI finished, and merged or closed. Use this to answer \"where is this PR stuck and what happened to it\". Draft/ready transitions appear only when the issue-events table is synced and cover a bounded recent window. metric_quality is \"partial\": review and comment events are not yet available. For aggregate questions use the pull-requests and workflow-health tools.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "PR lifecycle timeline",
@@ -9242,7 +9242,7 @@
}
},
"pull-requests": {
- "description": "Open pull requests plus any merged or closed within the window, newest first, each with its head-SHA CI rollup (runs / passing / failing / pending). Use this for \"which PRs are stuck\", \"which open PRs have failing or pending CI\", and per-author or per-repo PR triage. open_to_merge_seconds is coarse — it is merged_at minus created_at and fuses draft and ready-for-review time, so report it as \"open to merge\", never \"cycle time\". ready_to_merge_seconds is the true cycle time: merged_at minus the last observed ready-for-review transition (only the last draft/ready switch counts), or minus created_at for a merged PR verifiably never drafted. Null means \"not observed\" (the issue-events window is bounded), never zero. CI counts come from the latest run per workflow on the head SHA and can lag until the workflow_run webhook settles a late completion. Bots and drafts are present; exclude them (is_bot, is_draft) for throughput questions.",
+ "description": "Open pull requests plus any merged or closed within the window, newest first, each with its head-SHA CI rollup (runs / passing / failing / pending). Use this for \"which PRs are stuck\", \"which open PRs have failing or pending CI\", and per-author or per-repo PR triage. open_to_merge_seconds is coarse: it is merged_at minus created_at and fuses draft and ready-for-review time, so report it as \"open to merge\", never \"cycle time\". ready_to_merge_seconds is the true cycle time: merged_at minus the last observed ready-for-review transition (only the last draft/ready switch counts), or minus created_at for a merged PR verifiably never drafted. Null means \"not observed\" (the issue-events window is bounded), never zero. CI counts come from the latest run per workflow on the head SHA and can lag until the workflow_run webhook settles a late completion. Bots and drafts are present; exclude them (is_bot, is_draft) for throughput questions.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "List pull requests with CI status",
@@ -13138,7 +13138,7 @@
}
},
"workflow-health": {
- "description": "Per-workflow CI health over a window: run count, success rate, p50/p95 duration, and last failure time. Use this for \"is CI getting faster or slower\", \"which GitHub Actions workflow is the slow or flaky long pole\", and CI duration trends. Success rate covers runs that succeeded or ended in failure, timeout, startup failure, or staleness. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so superseded cancels and failed runs never bias the duration percentile. Pass run_scope to report on one group of runs: default_branch, pull_request (PR branches only, same-repo PRs — fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over two adjacent windows and compare.",
+ "description": "Per-workflow CI health over a window: run count, success rate, p50/p95 duration, and last failure time. Use this for \"is CI getting faster or slower\", \"which GitHub Actions workflow is the slow or flaky long pole\", and CI duration trends. Success rate covers runs that succeeded or ended in failure, timeout, startup failure, or staleness. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so superseded cancels and failed runs never bias the duration percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Pass run_scope to report on one group of runs: default_branch, pull_request (PR branches only, same-repo PRs: fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over two adjacent windows and compare.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Per-workflow CI health",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index af76618ad459..dfe8235711ee 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -3805,7 +3805,7 @@
}
},
"engineering-analytics-broken-tests": {
- "description": "Live CI failures over the last 2 days, grouped into distinct failures (by failing test id + a normalized error signature) and classified by how each is behaving right now, most urgent first. Reach for this to answer \"what CI failures should I care about right now\": it is the triage counterpart to the test-health queue (which ranks week-long unreliability). Each row's state is the verdict: breaking_master (failing on the default branch and that job's latest run is still red, so trunk is broken now), blocking_merge_queue (failing only on merge-queue gate branches, so it stopped a merge on a commit that had already passed the PR's own CI — the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day and already spreading across branches, not on trunk yet), potentially_resolved (hit trunk but that job is green again), flaky (sporadic across two or more branches over more than a day), or pr_only (confined to one branch — one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Pass a row's latest_run_id to run-failure-logs to read the actual failing lines. Caveats: fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced — without it those failures fall through to flaky/pr_only rather than being misreported. Counts are absolute, never rates (passing runs aren't in this data).",
+ "description": "Live CI failures over the last 2 days, grouped into distinct failures (by failing test id + a normalized error signature) and classified by how each is behaving right now, most urgent first. Reach for this to answer \"what CI failures should I care about right now\": it is the triage counterpart to the test-health queue (which ranks week-long unreliability). Each row's state is the verdict: breaking_master (failing on the default branch and that job's latest run is still red, so trunk is broken now), blocking_merge_queue (failing only on merge-queue gate branches, so it stopped a merge on a commit that had already passed the PR's own CI: the conflict-with-trunk class the queue exists to catch), novel_burst (first seen within a day and already spreading across branches, not on trunk yet), potentially_resolved (hit trunk but that job is green again), flaky (sporadic across two or more branches over more than a day), or pr_only (confined to one branch: one PR's own problem). Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Pass a row's latest_run_id to run-failure-logs to read the actual failing lines. Caveats: fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced: without it those failures fall through to flaky/pr_only rather than being misreported. Counts are absolute, never rates (passing runs aren't in this data).",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Broken tests triage",
@@ -3820,7 +3820,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-ci-failure-logs": {
- "description": "The thinned CI failure logs for a pull request, grouped by failed job — reach for this to answer \"why did this PR's CI fail\". Each failed job returns its failure region (the error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, and every line carries its original 1-based line number in the full pre-thinning log so you can locate it in the raw GitHub log. The PR is resolved to ALL its workflow runs across every push (via the pull_requests association, not the latest commit), so earlier pushes' failures are included too. logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association to resolve. Use pr-runs or workflow-jobs for the run/job metadata behind these logs.",
+ "description": "The thinned CI failure logs for a pull request, grouped by failed job: reach for this to answer \"why did this PR's CI fail\". Each failed job returns its failure region (the error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, and every line carries its original 1-based line number in the full pre-thinning log so you can locate it in the raw GitHub log. The PR is resolved to ALL its workflow runs across every push (via the pull_requests association, not the latest commit), so earlier pushes' failures are included too. logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association to resolve. Use pr-runs or workflow-jobs for the run/job metadata behind these logs.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "CI failure logs for a PR",
@@ -3850,7 +3850,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-pr-cost": {
- "description": "Estimated CI dollar cost of one pull request, summed over the jobs of all its workflow runs, with breakdowns per workflow (by_workflow) and per run (by_run). Reach for this instead of summing runner minutes by hand: the estimate already classifies runners (billable self-hosted Linux vs free GitHub-hosted), applies the per-vCPU price ladder, and excludes non-Linux and provider-hosted jobs. jobs_available is false when the job-level source isn't synced yet — every figure is then zero/null, so check it before trusting a $0.00. estimated_cost_usd is null (not zero) when nothing was costable, and unsettled_jobs counts billable jobs still running that are left out of the estimate.",
+ "description": "Estimated CI dollar cost of one pull request, summed over the jobs of all its workflow runs, with breakdowns per workflow (by_workflow) and per run (by_run). Reach for this instead of summing runner minutes by hand: the estimate already classifies runners (billable self-hosted Linux vs free GitHub-hosted), applies the per-vCPU price ladder, and excludes non-Linux and provider-hosted jobs. jobs_available is false when the job-level source isn't synced yet: every figure is then zero/null, so check it before trusting a $0.00. estimated_cost_usd is null (not zero) when nothing was costable, and unsettled_jobs counts billable jobs still running that are left out of the estimate.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Estimated CI cost of a PR",
@@ -3865,7 +3865,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-run-failure-logs": {
- "description": "The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci-failure-logs, for when you have a run id rather than a PR (default-branch failures, the broken-tests panel's latest_run_id, the run page). Each failed job returns its failure region (error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, every line carrying its original 1-based line number in the full pre-thinning log. logs_available is false when the run didn't fail or its logs aged out of the short Logs retention. Use ci-failure-logs instead when you have a PR number and want all its runs' failures.",
+ "description": "The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of ci-failure-logs, for when you have a run id rather than a PR (default-branch failures, the broken-tests panel's latest_run_id, the run page). Each failed job returns its failure region (error lines plus surrounding context, with \"... N lines omitted ...\" markers) as ordered lines, every line carrying its original 1-based line number in the full pre-thinning log. logs_available is false when the run didn't fail or its logs aged out of the short Logs retention. Use ci-failure-logs instead when you have a PR number and want all its runs' failures.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "CI failure logs for a run",
@@ -3880,7 +3880,7 @@
"feature_flag": "engineering-analytics"
},
"engineering-analytics-sources": {
- "description": "The team's selectable GitHub repositories, oldest source first — one entry per repository a source syncs, each with its source id, repo (owner/name), table prefix, and a synced flag. A source can sync several repositories, so entries can share an id and differ only by repo. Call this first when a team may have more than one source or repo, then pass a chosen entry's id as source_id AND its repo as repo to the pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo — omitting repo on a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo you can skip it — the other tools default to the oldest connected source. The prefix also names the underlying warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions when the named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests / github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified — the name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__', lower-cased), e.g. posthog/posthog.com's pull_requests is prefix + github_posthog_posthog__com__pull_requests — so pick the table for the repo you mean (timestamps land as strings; parse with parseDateTimeBestEffort).",
+ "description": "The team's selectable GitHub repositories, oldest source first: one entry per repository a source syncs, each with its source id, repo (owner/name), table prefix, and a synced flag. A source can sync several repositories, so entries can share an id and differ only by repo. Call this first when a team may have more than one source or repo, then pass a chosen entry's id as source_id AND its repo as repo to the pull-requests, workflow-health, ci-cards, or pr-lifecycle tools to read that specific repo: omitting repo on a multi-repo source reads the source's default repo, not the one you picked. With a single source/repo you can skip it: the other tools default to the oldest connected source. The prefix also names the underlying warehouse tables, which you can query directly with SQL or save as SQL insights and subscriptions when the named tools don't fit. The source's original repo uses bare names (prefix + github_pull_requests / github_workflow_runs / github_workflow_jobs); every other repo of a multi-repo source is repo-qualified: the name `owner/repo.endpoint` is flattened for the table (each '/' becomes '_' and each '.' becomes '__', lower-cased), e.g. posthog/posthog.com's pull_requests is prefix + github_posthog_posthog__com__pull_requests: so pick the table for the repo you mean (timestamps land as strings; parse with parseDateTimeBestEffort).",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "List connected GitHub sources",
@@ -9617,7 +9617,7 @@
"feature_flag": "posthog-connect"
},
"pr-lifecycle": {
- "description": "The timeline of a single pull request: a header (number, title, author, state, draft, timestamps) plus ordered events — opened, ready for review, converted to draft, CI started, CI finished, and merged or closed. Use this to answer \"where is this PR stuck and what happened to it\". Draft/ready transitions appear only when the issue-events table is synced and cover a bounded recent window. metric_quality is \"partial\" — review and comment events are not yet available. For aggregate questions use the pull-requests and workflow-health tools.",
+ "description": "The timeline of a single pull request: a header (number, title, author, state, draft, timestamps) plus ordered events: opened, ready for review, converted to draft, CI started, CI finished, and merged or closed. Use this to answer \"where is this PR stuck and what happened to it\". Draft/ready transitions appear only when the issue-events table is synced and cover a bounded recent window. metric_quality is \"partial\": review and comment events are not yet available. For aggregate questions use the pull-requests and workflow-health tools.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "PR lifecycle timeline",
@@ -9800,7 +9800,7 @@
}
},
"pull-requests": {
- "description": "Open pull requests plus any merged or closed within the window, newest first, each with its head-SHA CI rollup (runs / passing / failing / pending). Use this for \"which PRs are stuck\", \"which open PRs have failing or pending CI\", and per-author or per-repo PR triage. open_to_merge_seconds is coarse — it is merged_at minus created_at and fuses draft and ready-for-review time, so report it as \"open to merge\", never \"cycle time\". ready_to_merge_seconds is the true cycle time: merged_at minus the last observed ready-for-review transition (only the last draft/ready switch counts), or minus created_at for a merged PR verifiably never drafted. Null means \"not observed\" (the issue-events window is bounded), never zero. CI counts come from the latest run per workflow on the head SHA and can lag until the workflow_run webhook settles a late completion. Bots and drafts are present; exclude them (is_bot, is_draft) for throughput questions.",
+ "description": "Open pull requests plus any merged or closed within the window, newest first, each with its head-SHA CI rollup (runs / passing / failing / pending). Use this for \"which PRs are stuck\", \"which open PRs have failing or pending CI\", and per-author or per-repo PR triage. open_to_merge_seconds is coarse: it is merged_at minus created_at and fuses draft and ready-for-review time, so report it as \"open to merge\", never \"cycle time\". ready_to_merge_seconds is the true cycle time: merged_at minus the last observed ready-for-review transition (only the last draft/ready switch counts), or minus created_at for a merged PR verifiably never drafted. Null means \"not observed\" (the issue-events window is bounded), never zero. CI counts come from the latest run per workflow on the head SHA and can lag until the workflow_run webhook settles a late completion. Bots and drafts are present; exclude them (is_bot, is_draft) for throughput questions.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "List pull requests with CI status",
@@ -13783,7 +13783,7 @@
}
},
"workflow-health": {
- "description": "Per-workflow CI health over a window: run count, success rate, p50/p95 duration, and last failure time. Use this for \"is CI getting faster or slower\", \"which GitHub Actions workflow is the slow or flaky long pole\", and CI duration trends. Success rate covers runs that succeeded or ended in failure, timeout, startup failure, or staleness. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so superseded cancels and failed runs never bias the duration percentile. Pass run_scope to report on one group of runs: default_branch, pull_request (PR branches only, same-repo PRs — fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over two adjacent windows and compare.",
+ "description": "Per-workflow CI health over a window: run count, success rate, p50/p95 duration, and last failure time. Use this for \"is CI getting faster or slower\", \"which GitHub Actions workflow is the slow or flaky long pole\", and CI duration trends. Success rate covers runs that succeeded or ended in failure, timeout, startup failure, or staleness. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so superseded cancels and failed runs never bias the duration percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Pass run_scope to report on one group of runs: default_branch, pull_request (PR branches only, same-repo PRs: fork PRs carry no PR attribution), merge_queue, or all. To get a trend, call this over two adjacent windows and compare.",
"category": "Engineering analytics",
"feature": "engineering_analytics",
"summary": "Per-workflow CI health",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index fb8581b3c365..4686f21af890 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -16053,7 +16053,7 @@ export namespace Schemas {
export interface BranchPRMatch {
/** Repository the pull request belongs to, as 'owner/name'. */
repo: string;
- /** Pull request number within the repository — pair with `repo` to link to it. */
+ /** Pull request number within the repository: pair with `repo` to link to it. */
number: number;
/**
* Pull request title, or null when the snapshot carries no title.
@@ -16280,7 +16280,7 @@ export namespace Schemas {
export interface BrokenTestRow {
/** Stable identity of this distinct failure: the failing test's node id plus a normalized error signature, so the same failure across runs groups into one row. */
fingerprint: string;
- /** The pytest node id from the CI 'FAILED <id>' line — the failing test. */
+ /** The pytest node id from the CI 'FAILED <id>' line: the failing test. */
test_id: string;
/** The trailing failure detail with volatile bits (numbers, hashes) normalized, shared across runs of the same failure. Empty when the FAILED line carried no detail. */
error_signature: string;
@@ -16288,7 +16288,7 @@ export namespace Schemas {
job_name: string;
/** 'owner/name' repository the failure belongs to. */
repo: string;
- /** The classifier's verdict on how this failure is behaving right now: 'breaking_master' (failing on trunk, latest trunk run still red), 'blocking_merge_queue' (stopped a merge on a commit that already passed the PR's own CI, trunk still green), 'novel_burst' (new within a day and spreading across branches, not on trunk yet), 'potentially_resolved' (hit trunk but trunk is green again), 'flaky' (sporadic across branches over more than a day), or 'pr_only' (confined to one branch — one PR's own problem).
+ /** The classifier's verdict on how this failure is behaving right now: 'breaking_master' (failing on trunk, latest trunk run still red), 'blocking_merge_queue' (stopped a merge on a commit that already passed the PR's own CI, trunk still green), 'novel_burst' (new within a day and spreading across branches, not on trunk yet), 'potentially_resolved' (hit trunk but trunk is green again), 'flaky' (sporadic across branches over more than a day), or 'pr_only' (confined to one branch: one PR's own problem).
*
* * `breaking_master` - BREAKING_MASTER
* * `blocking_merge_queue` - BLOCKING_MERGE_QUEUE
@@ -16301,13 +16301,13 @@ export namespace Schemas {
first_seen: string;
/** Most recent failure line for this fingerprint in the analysis window. */
last_seen: string;
- /** Total failure lines for this fingerprint in the window. An absolute count, never a rate — passing runs aren't in this data. */
+ /** Total failure lines for this fingerprint in the window. An absolute count, never a rate: passing runs aren't in this data. */
occurrences: number;
/** Distinct branches the failure appeared on in the window. */
branches: number;
/** Failure lines on the default branch (master/main). 0 means it never reached trunk. */
master_hits: number;
- /** The most recent failing workflow run for this fingerprint — pass it to run_failure_logs to fetch the actual failing log lines. */
+ /** The most recent failing workflow run for this fingerprint: pass it to run_failure_logs to fetch the actual failing log lines. */
latest_run_id: number;
/** The branch of the most recent failing run. */
latest_branch: string;
@@ -16316,9 +16316,9 @@ export namespace Schemas {
}
export interface BrokenTestsResult {
- /** Classified failures ranked by triage urgency — breaking trunk first, single-PR failures last. */
+ /** Classified failures ranked by triage urgency: breaking trunk first, single-PR failures last. */
rows: BrokenTestRow[];
- /** Default-branch job names whose latest completed run is failing — the 'what's on fire right now' summary. Empty when the job-level source isn't synced or trunk is green. */
+ /** Default-branch job names whose latest completed run is failing: the 'what's on fire right now' summary. Empty when the job-level source isn't synced or trunk is green. */
breaking_master_jobs: string[];
/** Length in days of the analysis window the counts cover. */
window_days: number;
@@ -16864,7 +16864,7 @@ export namespace Schemas {
pr_number: number;
/** Workflow runs attributed to the PR (across all its pushes) that were searched for logs. */
runs_attributed: number;
- /** False when no failure logs were found — CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR carries no run association to resolve. */
+ /** False when no failure logs were found: CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR carries no run association to resolve. */
logs_available: boolean;
/** True when the overall line cap across all jobs was hit. */
truncated: boolean;
@@ -33106,7 +33106,7 @@ export namespace Schemas {
*/
min_seconds: number | null;
/**
- * 5th percentile of the stage's duration, in seconds — the lower whisker when outliers are excluded. Null when nothing deployed.
+ * 5th percentile of the stage's duration, in seconds: the lower whisker when outliers are excluded. Null when nothing deployed.
* @nullable
*/
p05_seconds: number | null;
@@ -33131,7 +33131,7 @@ export namespace Schemas {
*/
p75_seconds: number | null;
/**
- * 95th percentile of the stage's duration, in seconds — the upper whisker when outliers are excluded. Null when nothing deployed.
+ * 95th percentile of the stage's duration, in seconds: the upper whisker when outliers are excluded. Null when nothing deployed.
* @nullable
*/
p95_seconds: number | null;
@@ -33145,7 +33145,7 @@ export namespace Schemas {
export interface DoraOverview {
/** Successful deployments per bucket across the window, oldest first, zero-filled, bucketed by series_granularity. Empty when the deploy tables aren't synced. */
deployment_frequency_series: DeploymentFrequencyBucket[];
- /** Merge-to-deploy distribution per bucket across the window, oldest first — the box-plot series (min/p5/p25/p50/mean/p75/p95/max seconds per bucket). Empty when the deploy tables aren't synced, or when github_team was passed without membership data synced. */
+ /** Merge-to-deploy distribution per bucket across the window, oldest first: the box-plot series (min/p5/p25/p50/mean/p75/p95/max seconds per bucket). Empty when the deploy tables aren't synced, or when github_team was passed without membership data synced. */
merge_to_deploy_series: LeadTimeBucket[];
/** Open-to-merge distribution over the SAME deployed PRs and buckets as merge_to_deploy_series, so the two stages compare bucket by bucket. Not the all-merged-PRs cycle time. Empty in the same cases as merge_to_deploy_series. */
open_to_merge_series: LeadTimeBucket[];
@@ -33161,7 +33161,7 @@ export namespace Schemas {
selected_environments: string[];
/** True when the optional team-membership snapshot is synced. When false, a github_team filter cannot be honored and the merge-to-deploy figures go empty rather than silently unfiltered. */
has_membership_data: boolean;
- /** Distinct GitHub team slugs from the membership snapshot, sorted — the team picker's options. Empty when membership isn't synced. */
+ /** Distinct GitHub team slugs from the membership snapshot, sorted: the team picker's options. Empty when membership isn't synced. */
github_teams: string[];
/** Deployments whose first success status landed in the window, within the environment scope. */
deployment_count: number;
@@ -33188,7 +33188,7 @@ export namespace Schemas {
*/
median_merge_to_deploy_seconds_prev: number | null;
/**
- * Median seconds from a PR's open to the first successful deployment containing it — the full open-to-deploy lead time over the same deployed-PR population as median_merge_to_deploy_seconds. Null when nothing deployed in the window.
+ * Median seconds from a PR's open to the first successful deployment containing it: the full open-to-deploy lead time over the same deployed-PR population as median_merge_to_deploy_seconds. Null when nothing deployed in the window.
* @nullable
*/
median_open_to_deploy_seconds: number | null;
@@ -33197,7 +33197,7 @@ export namespace Schemas {
* @nullable
*/
median_open_to_deploy_seconds_prev: number | null;
- /** PRs first deployed in the window — the population behind the merge-to-deploy median and box plot. */
+ /** PRs first deployed in the window: the population behind the merge-to-deploy median and box plot. */
deployed_pr_count: number;
/** Previous-window twin of deployed_pr_count. */
deployed_pr_count_prev: number;
@@ -33225,7 +33225,7 @@ export namespace Schemas {
* @nullable
*/
median_failed_deploy_to_next_success_seconds_prev: number | null;
- /** PRs merged in the window (bots and drafts excluded; narrowed by github_team when given) — the denominator behind unattributed_merged_pr_share. */
+ /** PRs merged in the window (bots and drafts excluded; narrowed by github_team when given): the denominator behind unattributed_merged_pr_share. */
merged_pr_count: number;
/**
* Share of merged_pr_count no successful in-scope deployment attributed: recent merges still waiting for their deploy, plus merges whose deploy the scope or scan bounds miss. Null when nothing merged in the window.
@@ -33233,7 +33233,7 @@ export namespace Schemas {
*/
unattributed_merged_pr_share: number | null;
/**
- * The newest deployment status row synced, any environment — how fresh the deploy data is. Windows ending after this instant undercount. Null when the deploy tables are empty.
+ * The newest deployment status row synced, any environment: how fresh the deploy data is. Windows ending after this instant undercount. Null when the deploy tables are empty.
* @nullable
*/
latest_deploy_status_at: string | null;
@@ -47184,9 +47184,9 @@ export namespace Schemas {
}
export interface GitHubSource {
- /** Source id — pass back as `source_id` (with `repo`) to read this repository. */
+ /** Source id: pass back as `source_id` (with `repo`) to read this repository. */
id: string;
- /** Repository as 'owner/name' — pass back as `repo` to scope to it. One entry per repository a source syncs; '' if unknown. */
+ /** Repository as 'owner/name': pass back as `repo` to scope to it. One entry per repository a source syncs; '' if unknown. */
repo: string;
/** User-chosen warehouse table-name prefix for this source, or '' when none. */
prefix: string;
@@ -58409,7 +58409,7 @@ export namespace Schemas {
repo: RepoRef;
/** GitHub Actions workflow name the failing runs belong to. */
workflow_name: string;
- /** De-sharded failing job name (matrix '(G/N)' suffix stripped) — the group's failure signature together with the workflow. '' when the job-level source isn't synced and the group degrades to workflow level. */
+ /** De-sharded failing job name (matrix '(G/N)' suffix stripped): the group's failure signature together with the workflow. '' when the job-level source isn't synced and the group degrades to workflow level. */
failed_job: string;
/** Distinct failing default-branch runs in this group within the window. */
run_count: number;
@@ -58417,7 +58417,7 @@ export namespace Schemas {
first_seen: string;
/** When the newest failing run in the group started. */
last_seen: string;
- /** Run id of the newest failing run — the drill-down anchor. */
+ /** Run id of the newest failing run: the drill-down anchor. */
latest_run_id: number;
}
@@ -60922,9 +60922,9 @@ export namespace Schemas {
by_workflow: WorkflowCost[];
/** Same spend broken down per workflow run, keyed by (run_id, run_attempt). */
by_run: RunCost[];
- /** Agent LLM token spend attributed to this PR by git branch ($ai_git_branch), or null when no generation matched — independent of the CI cost figures, so it can be present even when jobs_available is false. The UI hides the row when null. */
+ /** Agent LLM token spend attributed to this PR by git branch ($ai_git_branch), or null when no generation matched: independent of the CI cost figures, so it can be present even when jobs_available is false. The UI hides the row when null. */
llm_spend?: PRLLMSpend | null;
- /** False when the job-level source (github_workflow_jobs) isn't synced — every figure is then zero/null and the cost cards should be hidden. */
+ /** False when the job-level source (github_workflow_jobs) isn't synced: every figure is then zero/null and the cost cards should be hidden. */
jobs_available: boolean;
/** Billable CI minutes: each costed (self-hosted) job's elapsed time, summed. Parallel jobs add up, so this is compute time spent, not wall-clock run duration. */
billable_minutes: number;
@@ -60935,9 +60935,9 @@ export namespace Schemas {
estimated_cost_usd: number | null;
/** Jobs counted in the estimate (billable Linux runner, finished). */
costed_jobs: number;
- /** Billable Linux jobs still queued/running (no elapsed) — excluded from the estimate. */
+ /** Billable Linux jobs still queued/running (no elapsed): excluded from the estimate. */
unsettled_jobs: number;
- /** Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners — outside the estimate. */
+ /** Jobs on provider-hosted (GitHub-hosted, free) or non-Linux runners: outside the estimate. */
excluded_jobs: number;
}
@@ -61026,7 +61026,7 @@ export namespace Schemas {
pull_request: PullRequest;
/** Lifecycle events ordered by time. */
events: PRLifecycleEvent[];
- /** Always 'partial' — CI events only; reviews and comments are not yet available.
+ /** Always 'partial': CI events only; reviews and comments are not yet available.
*
* * `precise` - PRECISE
* * `coarse` - COARSE
@@ -83540,7 +83540,7 @@ export namespace Schemas {
ready_to_merge_series: ReadyToMergeBucket[];
/** Workflow runs started in the window, all branches and workflows. */
run_count: number;
- /** Same count over the equal-length window immediately before date_from — the delta baseline. */
+ /** Same count over the equal-length window immediately before date_from: the delta baseline. */
run_count_prev: number;
/**
* Fraction of conclusive runs that succeeded (0-1) in the window. Skipped, cancelled, neutral, and action_required runs are excluded. Null if no run reached a verdict.
@@ -83556,7 +83556,7 @@ export namespace Schemas {
rerun_cycles: number;
/** Re-run cycles over the previous window. */
rerun_cycles_prev: number;
- /** PRs merged in the window, all authors and bots included — the merge population that triggered the CI spend, so it divides cleanly into billable_minutes and estimated_cost_usd. */
+ /** PRs merged in the window, all authors and bots included. billable_minutes and estimated_cost_usd cover every run in the window, including default-branch and unmerged PR runs, so dividing them by this count spreads all CI spend over the merges. */
merged_pr_count: number;
/** Merged-PR count over the previous window. */
merged_pr_count_prev: number;
@@ -83601,7 +83601,7 @@ export namespace Schemas {
*/
estimated_cost_usd_prev: number | null;
/**
- * estimated_cost_usd divided by merged_pr_count — the window's CI cost per merged PR. Null when the job-level source isn't synced or nothing merged.
+ * estimated_cost_usd divided by merged_pr_count: the window's CI cost per merged PR. Null when the job-level source isn't synced or nothing merged.
* @nullable
*/
cost_per_merge_usd: number | null;
@@ -83620,7 +83620,7 @@ export namespace Schemas {
* @nullable
*/
merge_queue_billable_minutes_prev: number | null;
- /** PRs merged in the window with at least one corroborated merge-queue gate run — the population behind every merge_queue_* landing stat. All authors, bots included. */
+ /** PRs merged in the window with at least one corroborated merge-queue gate run: the population behind every merge_queue_* landing stat. All authors, bots included. */
merge_queue_merged_pr_count: number;
/** Queue-landed merges over the previous window. */
merge_queue_merged_pr_count_prev: number;
@@ -83635,7 +83635,7 @@ export namespace Schemas {
*/
merge_queue_median_first_gate_to_merge_seconds_prev: number | null;
/**
- * p90 of the same first-gate-run-to-merge measure — the tail, where queue pain concentrates. Null when no queue-landed merges.
+ * p90 of the same first-gate-run-to-merge measure: the tail, where queue pain concentrates. Null when no queue-landed merges.
* @nullable
*/
merge_queue_p90_first_gate_to_merge_seconds: number | null;
@@ -83717,7 +83717,7 @@ export namespace Schemas {
*/
merge_queue_skip_the_line_count_prev: number | null;
/**
- * Median wall clock for a PR push round to settle fully green over the window — the window-level twin of time_to_green_series, same population and exclusions. Null when no fully green rounds.
+ * Median wall clock for a PR push round to settle fully green over the window: the window-level twin of time_to_green_series, same population and exclusions. Null when no fully green rounds.
* @nullable
*/
median_time_to_green_seconds: number | null;
@@ -85504,7 +85504,7 @@ export namespace Schemas {
jobs: CIJobFailureLog[];
/** Workflow run id the failure logs are for. */
run_id: number;
- /** False when no failure logs were found — the run didn't fail, or its logs aged out of the short Logs retention. */
+ /** False when no failure logs were found: the run didn't fail, or its logs aged out of the short Logs retention. */
logs_available: boolean;
/** True when the overall line cap across all jobs was hit. */
truncated: boolean;
@@ -98925,12 +98925,12 @@ export namespace Schemas {
*/
success_rate: number | null;
/**
- * Median duration in seconds over successful runs only — cancelled (superseded) and failed runs end early and would bias the percentile. Null if no run succeeded in the window.
+ * Median duration in seconds over successful runs only: cancelled (superseded) and failed runs end early and would bias the percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Null if no run succeeded in the window.
* @nullable
*/
p50_seconds: number | null;
/**
- * 95th-percentile duration in seconds over successful runs only — cancelled (superseded) and failed runs end early and would bias the percentile. Null if no run succeeded in the window.
+ * 95th-percentile duration in seconds over successful runs only: cancelled (superseded) and failed runs end early and would bias the percentile. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Null if no run succeeded in the window.
* @nullable
*/
p95_seconds: number | null;
@@ -98972,7 +98972,7 @@ export namespace Schemas {
* @nullable
*/
success_rate_prev?: number | null;
- /** Successful runs that did real CI work. This is the p50/p95 sample count. */
+ /** Successful runs lasting at least 10 seconds. Zero when p50/p95 fall back to shorter successful runs. */
percentile_run_count?: number;
/** Runs on merge-queue gate branches (trunk-merge/**) in the window, counted regardless of branch or run_scope. Non-zero marks a workflow the queue runs before a merge lands, the closest available proxy for a required check. */
merge_queue_run_count?: number;
@@ -99038,12 +99038,12 @@ export namespace Schemas {
*/
queue_p50_seconds: number | null;
/**
- * Median duration of successful job instances, in seconds — cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
+ * Median duration of successful job instances, in seconds: cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
* @nullable
*/
p50_seconds: number | null;
/**
- * 95th-percentile duration of successful job instances, in seconds — cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
+ * 95th-percentile duration of successful job instances, in seconds: cancelled and failed instances end early and would bias the percentile. Null if none succeeded.
* @nullable
*/
p95_seconds: number | null;
@@ -105829,7 +105829,7 @@ export namespace Schemas {
*/
date_to?: string;
/**
- * Set false to skip the chart series (cost_series, time_to_green_series, success_rate_series, open_to_merge_series return empty) and their query cost — for headline-only consumers like the weekly digest. Defaults to true.
+ * Set false to skip the chart series (cost_series, time_to_green_series, success_rate_series, open_to_merge_series return empty) and their query cost: for headline-only consumers like the weekly digest. Defaults to true.
*/
include_series?: boolean;
/**
diff --git a/services/mcp/src/generated/engineering_analytics/api.ts b/services/mcp/src/generated/engineering_analytics/api.ts
index 7e203917e5f4..9fbca244b1c1 100644
--- a/services/mcp/src/generated/engineering_analytics/api.ts
+++ b/services/mcp/src/generated/engineering_analytics/api.ts
@@ -9,7 +9,7 @@
import * as zod from 'zod'
/**
- * The broken-tests triage panel: live CI failures over the last 2 days grouped into distinct failures (by test id + normalized error signature) and classified by how each is behaving right now — breaking trunk, blocking the merge queue, a new failure spreading across branches, probably-resolved, flaky, or one PR's own problem — ranked with the most urgent first. A blocking_merge_queue row is a failure on a merge-queue gate branch that never hit trunk: the commit had already passed the PR's own CI, so it is the semantic conflict the queue exists to catch, and it is holding up landings. Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Reach for this to answer 'what CI failures should I care about right now'; expand a row's latest_run_id via run_failure_logs for the failing lines. Fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced — without it those failures fall through to flaky/pr_only rather than being misreported.
+ * The broken-tests triage panel: live CI failures over the last 2 days grouped into distinct failures (by test id + normalized error signature) and classified by how each is behaving right now: breaking trunk, blocking the merge queue, a new failure spreading across branches, probably-resolved, flaky, or one PR's own problem: ranked with the most urgent first. A blocking_merge_queue row is a failure on a merge-queue gate branch that never hit trunk: the commit had already passed the PR's own CI, so it is the semantic conflict the queue exists to catch, and it is holding up landings. Also returns breaking_master_jobs, the default-branch jobs whose latest run is red. Reach for this to answer 'what CI failures should I care about right now'; expand a row's latest_run_id via run_failure_logs for the failing lines. Fingerprinting is pytest-only for now (jest/playwright/cargo failures aren't grouped yet), and the breaking/resolved distinction needs the job-level source synced: without it those failures fall through to flaky/pr_only rather than being misreported.
*/
export const EngineeringAnalyticsBrokenTestsParams = () => zod.object({
project_id: zod
@@ -98,7 +98,7 @@ export const EngineeringAnalyticsFlakyTestsQueryParams = () => zod.object({
})
/**
- * Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet. `llm_spend` carries the agent LLM token spend attributed to the PR by git branch, or null when no `$ai_generation` event matched.
+ * Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only: provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet. `llm_spend` carries the agent LLM token spend attributed to the PR by git branch, or null when no `$ai_generation` event matched.
*/
export const EngineeringAnalyticsPrCostParams = () => zod.object({
project_id: zod
@@ -142,7 +142,7 @@ export const EngineeringAnalyticsPrLifecycleQueryParams = () => zod.object({
})
/**
- * Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse — it fuses draft and ready-for-review time; CI counts can lag until late completions settle.
+ * Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse: it fuses draft and ready-for-review time; CI counts can lag until late completions settle.
*/
export const EngineeringAnalyticsPullRequestsParams = () => zod.object({
project_id: zod
@@ -170,7 +170,7 @@ export const EngineeringAnalyticsPullRequestsQueryParams = () => zod.object({
})
/**
- * The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
+ * The thinned CI failure logs of one workflow run, grouped by failed job: the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
*/
export const EngineeringAnalyticsRunFailureLogsParams = () => zod.object({
project_id: zod
@@ -197,7 +197,7 @@ export const EngineeringAnalyticsRunFailureLogsQueryParams = () => zod.object({
})
/**
- * The team's selectable GitHub repositories, oldest source first — one entry per repository a source is configured to sync, so a source syncing several repositories appears once per repo. Populate a repo picker from this and pass a chosen entry's `id` back as `source_id` and its `repo` back as `repo` to the other endpoints. Includes repositories whose tables aren't fully synced yet.
+ * The team's selectable GitHub repositories, oldest source first: one entry per repository a source is configured to sync, so a source syncing several repositories appears once per repo. Populate a repo picker from this and pass a chosen entry's `id` back as `source_id` and its `repo` back as `repo` to the other endpoints. Includes repositories whose tables aren't fully synced yet.
*/
export const EngineeringAnalyticsSourcesParams = () => zod.object({
project_id: zod
@@ -248,7 +248,7 @@ export const EngineeringAnalyticsTeamCiHealthQueryParams = () => zod.object({
})
/**
- * Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. Success rate covers runs that succeeded or ended in a decisive failure. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Optionally scope to a single git branch via `branch`, to one workflow via `workflow_name`, or to one run group via `run_scope` (default_branch, pull_request, merge_queue). Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend.
+ * Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. Success rate covers runs that succeeded or ended in a decisive failure. Skipped, cancelled, neutral, and action-required runs are excluded. p50/p95 are over successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Runs under 10 seconds that did no work are excluded when longer successful runs exist. An all-fast workflow uses every successful run. Optionally scope to a single git branch via `branch`, to one workflow via `workflow_name`, or to one run group via `run_scope` (default_branch, pull_request, merge_queue). Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend.
*/
export const EngineeringAnalyticsWorkflowHealthParams = () => zod.object({
project_id: zod
diff --git a/services/mcp/src/tools/generated/engineering_analytics.ts b/services/mcp/src/tools/generated/engineering_analytics.ts
index 5caa95c2841c..0259da191ae6 100644
--- a/services/mcp/src/tools/generated/engineering_analytics.ts
+++ b/services/mcp/src/tools/generated/engineering_analytics.ts
@@ -274,7 +274,7 @@ const PullRequestsSchema = () => {
const EngineeringAnalyticsPullRequestsQueryParams = orvalSchemas.EngineeringAnalyticsPullRequestsQueryParams()
return EngineeringAnalyticsPullRequestsQueryParams.extend({
date_from: EngineeringAnalyticsPullRequestsQueryParams.shape['date_from'].describe(
- "Recency floor for merged/closed PRs — relative ('-30d', '-8w') or ISO8601. Open PRs are always included regardless of age. Defaults to -30d."
+ "Recency floor for merged/closed PRs: relative ('-30d', '-8w') or ISO8601. Open PRs are always included regardless of age. Defaults to -30d."
),
})
}
@@ -302,10 +302,10 @@ const WorkflowHealthSchema = () => {
const EngineeringAnalyticsWorkflowHealthQueryParams = orvalSchemas.EngineeringAnalyticsWorkflowHealthQueryParams()
return EngineeringAnalyticsWorkflowHealthQueryParams.extend({
date_from: EngineeringAnalyticsWorkflowHealthQueryParams.shape['date_from'].describe(
- "Window start — relative ('-24h', '-7d') or ISO8601. Defaults to -24h."
+ "Window start: relative ('-24h', '-7d') or ISO8601. Defaults to -24h."
),
date_to: EngineeringAnalyticsWorkflowHealthQueryParams.shape['date_to'].describe(
- 'Window end — relative or ISO8601. Defaults to now.'
+ 'Window end: relative or ISO8601. Defaults to now.'
),
})
}