Collect TeamCity build configs that have no default branch builds #25782
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.68) × (1 − Review Confidence (0.54)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 425 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.362
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #25782"
general
weight: 0.35
iliakur
What does this PR do?
Adds
state:finished,defaultFilter:falseto the TeamCity REST check'slast_buildrequest. This request picks the build the check starts collecting from for each build configuration.Without
defaultFilter:false, TeamCity applies its default build filter, which hides builds outside the default branch as well as personal, canceled, and failed-to-start builds. A build configuration whose builds all fall into that set, such as one that only builds pull request branches, got an empty response. The check never stored a starting build, asked again on every run, and never collected the configuration. The instance still reportedOK.The
new_buildsrequest already usesstate:finished,defaultFilter:false, so the two requests now cover the same builds. Canceled, personal, and failed-to-start builds can now also be picked as the starting build. This does not change which builds are reported, becausenew_buildsalready includes them.A new unit test simulates TeamCity's default filter and build states, and asserts
teamcity.build_durationis reported. It fails if eitherdefaultFilter:falseorstate:finishedis removed. The mock server routes used by the integration tests are updated to the new locator.Motivation
Customer escalation AGENT-17385:
teamcity.build_durationhas no series for one build configuration. The customer confirmed that thelast_buildlocator returnscount=0for it, while the same locator withdefaultFilter:falsereturns its latest build onpull/138180.TeamCity docs: Build locator,
defaultFilter.Checklist before requesting review
<!--
The
pr-descriptionvalidation (Run Validations) fails until every item below is ticked andthe visible description (excluding HTML comments) is at most 3,000 characters. CI, the changelog,
and the QA label have their own checks. Request review only once all checks pass:
gh pr checks <PR> --repo DataDog/integrations-core --watch.-->
<!--
How to verify: run
gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,and compare the final diff with the description above.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- Coding agents: never tick this item. Only the human author may tick it. -->
<!--
QA label: PRs that only change code owned exclusively by @DataDog/agent-integrations (see
.github/CODEOWNERS) always useqa/skip-qa, neverqa/required.-->
🤖 Generated with Claude Code