Repository navigation
Review learning: rule changes from 2026-10-01 to 2026-10-31 - #8577
Closed
dd-apm-ecosystems[bot] wants to merge 5 commits into
Closed
dd-apm-ecosystems[bot] wants to merge 5 commits into
dd-apm-ecosystems[bot] wants to merge 5 commits into
Conversation
Contributor
|
|
robertomonteromiguel
deleted the
review-learning/run-2026-10-01-86175665
branch
November 19, 2026 09:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Monthly review learning. 7 changes to the code review rules, learned from the 336 PRs merged from 2026-10-01 to 2026-10-31.
Review them in Files changed, and answer on each rule:
ok,discard, a suggestion, or a comment. Once a day, a workflow applies the answers and replies.Changes in this PR
META-010META-006INFRA-011INFRA-013LIFE-005TEST-006TEST-0087 more changes with evidence from one PR only. They stay out of the diff. Comment
add <ID>to apply one.INFRA-012LIFE-002LIFE-006TEST-004TEST-005TEST-007TEST-002INFRA-012· new rule: Exclude local build output from the Docker build context. · infrastructure-and-conventionsThe Rust weblog and parametric builds were added without .dockerignore entries for their target/ folders, so the build context reached 18 GB. No rule covers .dockerignore.
Proposed:
Proposed severity: P1. A large build context makes builds slow and large, but it does not change test results.
Evidence:
absence(culprit #7288)LIFE-002· sharpen Detect · lifecycle-and-isolationLIFE-002 already says to use library_interface_timeout for the flush window. Its Detect does not catch a timeout that is too short, so the weblog stops before the SDK emits the final telemetry.
Current:
Proposed:
Evidence:
correction: "Setlibrary_interface_timeout=15here."LIFE-006· new rule: Replace an earlier Remote Config instead of stacking it. · lifecycle-and-isolationTwo Remote Config files stay active at the same time, so the test result depends on the order in which the SDK applies them. This is a state isolation defect between setup steps. LIFE-003 covers config versions, not configs stacked at different paths.
Proposed:
Proposed severity: P0. The SDK applies the configs in an order that depends on the SDK, so the test can pass or fail for the wrong reason.
Evidence:
miss(culprit #7556)TEST-004· sharpen Detect · test-effectivenessMocked responses keyed by trace intake path stopped applying when a tracer moved to /v1.0/traces. Detect only named path filters.
Current:
Proposed:
Evidence:
absence(culprit #6412)TEST-005· sharpen Detect · test-effectivenessAn unconditional fallback that exists only to let one tracer pass weakens the shared assertion in the same way a library branch does.
Current:
Proposed:
Evidence:
correction: "If .NET is the only SDK not adding a timestamp at the root of the payload, why don't we align .NET with the other SDKs"TEST-007· sharpen Detect · test-effectivenessAsserting the gRPC content-type on a capture that the test agent forwards over HTTP could not pass, and a manifest entry hid this.
Current:
Proposed:
Evidence:
miss(culprit #7795)TEST-002· sharpen Detect · test-effectivenessOpt-out tests checked only configured flags, so an SDK that leaked telemetry on the evaluation error path passed.
Current:
Proposed:
Evidence:
correction: "Please add opt-out cases on the evaluation error path."Full evidence of the 7 changes in this PR
META-010· new rule: Gate each test at the version that ships its behavior. · activation-and-metadataNo rule covers activation version boundaries. META-002 and META-007 cover only version syntax and RC matching. Several PRs added class-level gates that turned on methods for releases without the behavior. One PR left a legacy-behavior class unbounded after an SDK change. Another left out an active release line in a version range.
Proposed:
Proposed severity: P0. A gate that is too broad or too narrow makes a test fail for the wrong reason on versions without the behavior.
Evidence:
correction: "This activates the legacydd.serialIdclass for every Go version from v2.10.1."absence(culprit #7794)absence(culprit #7795)correction: "Gate this class atv2.11.0-devfor Go."miss(culprit #7917)META-006· sharpen Detect · activation-and-metadataMETA-006 already says to match the marker to the real cause, but its Detect misses three cases. Some new missing_feature entries had no reason at all. An incomplete_test_app entry hid a test that no library could pass. A flaky marker hid a setup with two Remote Config files active at once.
Current:
Proposed:
Evidence:
correction: "don't carry a reason, so later it might be hard to tell which ones are blocked by"miss(culprit #7795)miss(culprit #7556)INFRA-011· new rule: Authenticate GitHub API calls in image builds. · infrastructure-and-conventionsTwo absences show the same defect. The dotnet parametric and cpp_nginx Dockerfiles got the github_token secret but never mounted it, and the cpp_nginx scripts made ad-hoc unauthenticated calls. No rule in any lens covers build secrets or GitHub API calls.
Proposed:
Proposed severity: P1. Unauthenticated calls hit rate limits and break or slow builds, but they do not by themselves hide a test failure.
Evidence:
absence(culprit #5612)absence(culprit #2455)INFRA-013· new rule: Stop the session when provisioning fails. · infrastructure-and-conventionsIn the AWS SSI flow, unknown provisioning errors were only stored on the VM object, and the CentOS 7 Docker install never checked its result. Failures then showed up later in unrelated steps. LIFE-001 covers only test setup methods, not infrastructure provisioning.
Proposed:
Proposed severity: P0. A broken environment makes every test fail for the wrong reason and hides the real provisioning failure.
Evidence:
miss(culprit #4166)miss(culprit #3420)LIFE-005· new rule: Stop the session when scenario infrastructure fails. · lifecycle-and-isolationBoth candidates show a setup or provisioning failure that is not raised where it happens. It shows up later as unrelated test or step failures. LIFE-001 only allows setup to fail and does not require an early abort. No other rule covers this.
Proposed:
Proposed severity: P0. Tests then fail for the wrong reason, with misleading messages that hide the real provisioning failure.
Evidence:
miss(culprit #4166)miss(culprit #3420)TEST-006· sharpen Detect · test-effectivenessTest apps that invent config defaults, always return OK, or misuse the tracer API produce the result the test expects in place of the SDK.
Current:
Proposed:
Evidence:
miss(culprit #6917)correction: "If we don't support the feature (or it's missing), then shouldn't this beNone?"correction: "Would it make sense to catch onlyInvocationTargetException"TEST-008· new rule: Assert every expectation of each case. · test-effectivenessNo rule names assertion gaps in which some declared expectations are aggregated, skipped, or loosely compared, so wrong output passes.
Proposed:
Proposed severity: P0. Expectations that are summed, skipped, or never asserted let mutated or swapped captures pass, which hides failures.
Evidence:
correction: "Please validate the shared flag separately for the opted-out and allowed subjects."correction: "Route this test through_assert_context_evaluation, as its two siblings do."correction: "The imported split-feature cases includeresult.featuresexpectations for hook, exposure, and evaluation metadata, which this runner doesn’t assert."correction: "Please compare bool-ness in both directions here."8 defects that a rule already describes
META-006· activation-and-metadata: The tracer has a gap in a feature it must support, but the manifest declared it missing_feature instead of bug. #8001META-009· activation-and-metadata: A new end-to-end scenario was added without its step in run-end-to-end.yml. #8080INFRA-005· infrastructure-and-conventions: The tag step follows a junit upload in oneshell: bash(-e) script with no trap. #7945INFRA-006· infrastructure-and-conventions: A new base image that the mirroring job does not pick up is the defect INFRA-006 describes. #8121TEST-001· test-effectiveness: TEST-001 Detect already names a redaction check that searches a whole payload for the short marker 1234. #7937TEST-001· test-effectiveness: TEST-001 Detect already flags comparing x-datadog-tags as a raw ordered string. #8015TEST-002· test-effectiveness: TEST-002 already requires an enabled control for absence checks, which is the fix the reviewer asked for. #8144TEST-006· test-effectiveness: TEST-006 Detect already names a weblog that adds runtime-id or another tag the SDK must produce. #8001How to answer, and run details
How to answer each change
ok,LGTMor a thumbs up: keep the change.discardordiscard: <reason>: put the rule back as it is onmain. Outside a review thread, name the rule:discard LIFE-005.add <ID>: apply a folded change, for example one with evidence from one PR only.Not when:. The next runs read the rules.This PR only edits
.agents/rules/code-review/. It never merges by itself: a person fromsystem-tests-coreapproves it. The next monthly run publishes nothing while it is open.Not applied
INFRA-008Human-only review and outside context: never rule material.
human_only: Reviewer questioned whether a piece of the OTEL_METRIC_EXPORT_INTERVAL parametric test setup was needed; the author applied a change.context: CI: the one-pipeline template include is pinned to a release tag instead of a sha, because the libdatadog-build release workflow updates references and opens PRs in the tracer repositories.context: Manifests: cpp trace filter tests were marked flaky, but the flakiness was already fixed in the dd-trace-cpp repository.human_only: test_the_test: tests added for system-tests test classes (FFE EVP contract), which are already heavily exercised by CI, instead of being reserved for framework internalsCoverage: test-effectiveness 14 · lifecycle-and-isolation 5 · activation-and-metadata 7 · infrastructure-and-conventions 9. 63 candidates went to another lens. 1 candidates had a quote that does not match.
Run: the workflow run in Datadog.