Repository navigation
Conversation
Contributor
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
chojomok
changed the base branch from
master
to
mohammad-islam/java-instrumentation-manifest-pilot
November 20, 2026 18:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Field-level review evidence (continued)Tracer links show the instrumented behavior behind each value and are pinned to the reviewed source revision. Category and system values use the Manifest v1 vocabulary. Package names describe Maven delivery of the instrumented code. Display names use the official product branding. Creation dates use the first functional instrumentation commit.
|
| Field or member | Published value | Derivation authority | Accepted evidence |
|---|---|---|---|
_v |
1 |
Manifest v1 contract | Deterministic schema gate passed. |
name |
robolectric |
Tracer integration identity | source — The only module declaring this name is RobolectricInstrumentation (extends InstrumenterModule.CiVisibility), with super("ci-visibility", "robolectric"). 'ci-visibility' is the product-wide umbrella toggle, so 'robolectric' is the integration-specific name. No other dd-java-agent module declares "robolectric". The validator's grounding check also passed. |
display_name |
Robolectric |
Official product name | source — The Javadoc says the module 'Captures the emulated Android SDK for tests running under Robolectric', using the capitalized product name. The module hooks org.robolectric.internal.TestEnvironment (line 30), so it instruments the Robolectric framework itself, not a broader shared module. |
description |
Instruments Robolectric test lifecycle setup to enrich CI Visibility test spans with emulated Android SDK and Robolectric version metadata. |
Complete Datadog patch-surface inventory | source — The only advice applied is exit advice on TestEnvironment implementations' setUpApplicationState, which is Robolectric's per-test environment setup. It runs on both normal and exceptional exit and calls RobolectricTestAnnotator.annotate(). source — annotate() only tags the active span when its RequestContext carries the CI_VISIBILITY slot, meaning it is a CI Visibility test span (lines 31-40). It does not create spans. It sets test.android.api_level, test.android.release, test.android.codename (emulated SDK metadata, lines 42-47) and test.android.robolectric.version, parsed from the robolectric jar name (lines 48-51, 135-151). Each behavior in the description is in source, with nothing omitted or overstated. source — The tag constants are defined at lines 88-91: TEST_ANDROID_API_LEVEL, TEST_ANDROID_RELEASE, TEST_ANDROID_CODENAME, TEST_ANDROID_ROBOLECTRIC_VERSION. |
packages |
[org.robolectric:robolectric] |
Tracer-to-Maven package mapping | source — The single muzzle pass block names group 'org.robolectric', module 'robolectric', versions '[4.13,)'. android-all is only an extraDependency, not a publication package. The project has no other pass blocks. |
category: test.execution |
test.execution |
Manifest v1 category policy · test.execution definition |
instrumentation source — The integration deliberately hooks Robolectric's per-test lifecycle setup (TestEnvironment#setUpApplicationState). That method runs before every test body under the Robolectric test runner, which fits test.execution's 'test lifecycle hooks through a test framework or runner'. test.execution has signal_scope cross_signal, so the integration need not create its own spans. It enriches the CI Visibility test events of the test being run (RobolectricTestAnnotator.java:36-51). The tagging belongs to the test-execution contract itself, not to a more specific operation, so the applicability reject_when (tagging beneath a more specific contract) does not move it elsewhere. The other categories do not apply: no pipeline orchestration (cicd.pipeline), no HTTP/RPC/DB/messaging/log/serialization boundary, and no task submission. 'other' is excluded because test.execution applies. No qualifying category is omitted. |
systems |
[] |
Manifest v1 system policy | instrumentation source — The whole patch surface is one in-process exit hook plus this helper. The helper reads RuntimeEnvironment.getApiLevel(), Build.VERSION.RELEASE and the robolectric jar location, then tags the active test span. It talks to no database, messaging system, cloud provider/service, platform, GenAI provider or RPC protocol, so no x-system-definitions identity qualifies. Robolectric and Android are a test framework and an emulated SDK, and neither is in the system vocabulary. An empty array is correct. |
creation_date |
2026-07-13 |
first commit adding working instrumentation | instrumentation source — git log --follow on this file shows two commits. the linked commit ('Add Android/Robolectric visibility to Test Optimization spans (#11852)', author date 2026-07-13 17:12:42 +0200) added the module, the advice and the annotator. The later 311e16c (2026-09-29) only removed helper listings. Searching -G'org.robolectric' and -i -G'robolectric' across dd-java-agent finds no earlier commit, only 224bf8a (2026-09-16, version support). This is a functional first add, not a relocation. |
scalatest — accepted field evidence
| Field or member | Published value | Derivation authority | Accepted evidence |
|---|---|---|---|
_v |
1 |
Manifest v1 contract | Deterministic schema gate passed. |
name |
scalatest |
Tracer integration identity | source — super("ci-visibility", "scalatest"): the product-named umbrella toggle 'ci-visibility' comes first, followed by the integration name 'scalatest'. ScalatestForkInstrumentation (line 20) and ScalatestSkipInstrumentation (line 25) use the same names. All four modules are 'declared' under grounding key 'scalatest'. source — super("ci-visibility", "scalatest", "test-retry"). After the umbrella name, 'scalatest' is the shared integration-specific name. 'test-retry' is a cross-framework CI Visibility feature toggle. |
display_name |
ScalaTest |
Official product name | source — The reporter tags suites with TestFrameworkInstrumentation.SCALATEST and test framework 'scalatest' (line 32). This binds the integration to the ScalaTest framework itself, not to a broader shared module. |
description |
Instruments ScalaTest test execution and suite/test lifecycle reporting for CI Visibility, including test selection and retry policies. |
Complete Datadog patch-surface inventory | source — DispatchEventAdvice on DispatchReporter/TestSortingReporter/SuiteSortingReporter.apply(Event) calls DatadogReporter.handle(event). That routes run, suite and test lifecycle events (start, success, failure, ignore, cancel, pending, suite abort) to the CI Visibility TestEventsHandler (DatadogReporter.java lines 35-75, 99-109, 162-173). source — Filter.apply advice rewrites the filter result so a test is marked ignored when runContext.skip(...) returns a skip reason (ITR skipping or disabled tests, RunContext.java lines 119-150). This covers 'test selection'. source — ExecutionAdvice on SuperEngine.runTestImpl wraps test invocation in a TestExecutionWrapper bound to a TestExecutionPolicy. While the policy is applicable it re-invokes runTestImpl, and failures are suppressed for retries (TestExecutionWrapper.java line 27). The advice is gated by isCiVisibilityExecutionPoliciesEnabled. This covers 'retry policies'. The SBT fork monitor only deduplicates reporting and is a mechanism, so leaving it out is not a material omission. |
packages |
[org.scalatest:scalatest_2.12] |
Tracer-to-Maven package mapping | source — The only muzzle block is a pass directive with group 'org.scalatest' and module 'scalatest_2.12' (lines 7-11), versions [3.0.8,). This matches the grounding publication_packages (package_source muzzle). The compileOnly scalatest_2.13 dependency is not a muzzle pass coordinate. |
category: test.execution |
test.execution |
Manifest v1 category policy · test.execution definition |
instrumentation source — The customer-facing contract is the ScalaTest test runner. The advice reports test suite and test case start and finish and results through TestEventsHandler (onTestSuiteStart line 100, onTestStart line 163, onTestFinish line 195). It also controls test case execution through skip (ScalatestSkipInstrumentation, Filter.apply) and retry (ScalatestExecutionInstrumentation, SuperEngine.runTestImpl). This matches test.execution (test case execution, test result), and the integration owns test execution, so reject_when does not apply. No other category qualifies: cicd.pipeline is rejected because this is a test framework outside pipeline orchestration, task.execution does not fit test runs, and there are no HTTP, RPC, DB, messaging, logging or serialization hooks. |
systems |
[] |
Manifest v1 system policy | instrumentation source — Every hooked type is internal to the ScalaTest framework: org.scalatest.DispatchReporter, TestSortingReporter, SuiteSortingReporter, Filter, Args, tools.Framework and SuperEngine. None is a client for a database, messaging system, cloud provider, GenAI provider or RPC protocol in the systems vocabulary. A framework is rejected as a system identity, and Datadog CI Visibility is not an admitted system, so the empty array is correct. |
creation_date |
2023-12-13 |
first commit adding working instrumentation | instrumentation source — git log --diff-filter=A over dd-java-agent/instrumentation/scalatest* returns the linked commit ('Implement Scalatest support (#6331)') as the oldest add. Its author date is 2023-12-13 12:58:49 +0100. It added the functional code (ScalatestInstrumentation, DatadogReporter, RunContext, ScalatestItrInstrumentation) under the predecessor directory instrumentation/scalatest. A case-insensitive --grep for scalatest finds no earlier commit. Later commits only add features or build config. |
selenium — accepted field evidence
| Field or member | Published value | Derivation authority | Accepted evidence |
|---|---|---|---|
_v |
1 |
Manifest v1 contract | Deterministic schema gate passed. |
name |
selenium |
Tracer integration identity | source — The only module, SeleniumInstrumentation (grounding assignment 'declared'), extends InstrumenterModule.CiVisibility and calls super("ci-visibility", "selenium"). 'ci-visibility' is the shared product-named umbrella toggle, so 'selenium' is the integration-specific name. It matches the grounding key 'selenium', whose only member name is 'selenium'. |
display_name |
Selenium |
Official product name | source — The integration hooks org.openqa.selenium.WebDriver implementations, which is the Selenium WebDriver browser-automation API. 'Selenium' is the established product name. It is neither broader nor narrower than what is instrumented. source — The tracer identifies the browser driver as SELENIUM_BROWSER_DRIVER = "selenium". |
description |
Instruments Selenium browser tests to associate test events with browser metadata and correlate them with RUM sessions. |
Complete Datadog patch-surface inventory | source — Advice is applied to four WebDriver methods. The constructor advice registers SeleniumTestListener with InstrumentationTestBridge. The get(String) advice stores the driver in the current TestContext and calls SeleniumUtils.afterPageOpen. The close() and quit() advice call SeleniumUtils.beforePageClose for each window. source — beforePageClose acts only when the active span is a TEST span (lines 143-147). It sets these tags: test type 'browser', browser driver 'selenium', driver version, browser name and browser version. When window.DD_RUM is present it sets TEST_IS_RUM_ACTIVE and calls DD_RUM.stopSession() (lines 164-168), then clears the RUM context cookie. This supports 'associate test events with browser metadata'. source — afterPageOpen runs inside a TEST span. It injects the cookie 'datadog-ci-visibility-test-execution-id' with the test trace ID so RUM sessions can be correlated with the test. This supports 'correlate them with RUM sessions'. source — beforeTestEnd applies the same enrichment when the driver is still open at test end. No behavior in the description is missing from source, and no material operation family is omitted. |
packages |
[org.seleniumhq.selenium:selenium-java] |
Tracer-to-Maven package mapping | source — The muzzle pass block declares group 'org.seleniumhq.selenium', module 'selenium-java', versions '[3.13.0,)'. This matches the grounding publication_packages (package_source muzzle). The htmlunit drivers are test-only dependencies and are correctly excluded. |
category: other |
other |
Manifest v1 category policy · other definition |
instrumentation source — The full patch inventory has four hooks: the WebDriver constructor, get(String), close() and quit(). None creates a span or owns an operation boundary. They tag an existing TEST span created by a separate test framework, propagate a RUM correlation cookie, and stop the RUM session. test.execution was rejected because Selenium is a browser-automation library, not a test framework or runner, and it does not own test discovery or execution; its listener only enriches tests run by other frameworks (reject_when: it does not own test execution). http.client was rejected because get(url) drives a browser, not a general-purpose HTTP client API. cicd.pipeline was rejected because there is no pipeline orchestration. Injecting the cookie or script is propagation/tagging, which the applicability policy excludes. No admitted category applies, so the exclusive value 'other' is correct, and no qualifying category is omitted. |
systems |
[] |
Manifest v1 system policy | instrumentation source — The hierarchy matcher accepts any WebDriver implementation, including RemoteWebDriver, HtmlUnit, Chrome and Firefox drivers. Browsers are selected at runtime, and no admitted system identity (database, messaging, cloud provider, GenAI provider, RPC protocol, FaaS platform) is contacted through a dedicated client. Datadog RUM is reached only through an injected cookie and browser JavaScript, not through an admitted system. 'selenium' is a framework/library label and is not in the systems enum. No definition qualifies, so the empty array is correct. |
creation_date |
2024-04-04 |
first commit adding working instrumentation | instrumentation source — git log --follow --diff-filter=A returns a single add: commit the linked commit 'Implement Selenium support in CI Visibility (#6799)' by Nikita Tkachenko, author date 2024-04-04 12:40:55 +0200. This commit added SeleniumInstrumentation, SeleniumUtils and SeleniumTestListener, so it is functional and not a relocation. A case-insensitive search of commit messages for 'selenium' shows no earlier commit. |
testng — accepted field evidence
| Field or member | Published value | Derivation authority | Accepted evidence |
|---|---|---|---|
_v |
1 |
Manifest v1 contract | Deterministic schema gate passed. |
name |
testng |
Tracer integration identity | source — Declared module TestNGInstrumentation calls super("testng"); TestNGSkipInstrumentation (super("testng","testng-itr")) and the 6.4/7.0 class-listener, execution and order modules (super("ci-visibility","testng",...)) all share 'testng' after the product-wide 'ci-visibility' umbrella toggle. 'testng' is the grounding integrations key. source — super("ci-visibility", "testng", "test-retry") — 'testng' is the integration name shared after the CI Visibility umbrella name. |
display_name |
TestNG |
Official product name | source — Instruments org.testng.TestNG, the TestNG framework entry point; the project's established spelling is 'TestNG' (class name TestNG, package org.testng). POM 'testng' for org.testng:testng:7.0.0 names the same library; 'TestNG' is the correct public capitalization rather than the artifact ID. source — Reports TestFrameworkInstrumentation.TESTNG to the CI Visibility test events handler, binding the integration to the TestNG framework identity. |
description |
Instruments TestNG test execution and lifecycle events for CI Visibility, including conditional test skipping, retry policies, and fail-fast test ordering. |
Complete Datadog patch-surface inventory | source — Constructor advice on org.testng.TestNG registers TracingListener and TestNGSuiteListener, which report test suite start/finish/failure and test start/success/failure/skip to CI Visibility (TracingListener.java lines 39-143) — test execution and lifecycle events. source — invokeMethod advice throws SkipException when the CI Visibility handler returns a SkipReason (ITR/test management), honoring the ITR unskippable group — conditional test skipping. source — When execution policies are enabled, RetryAnnotationTransformer injects RetryAnalyzer and TestInvoker.shouldRetryTestMethod/runTestResultListener advice drives retries and status propagation — retry policies. source — Prepends FailFastOrderInterceptor to TestNG method interceptors when test order is 'FAIL_FAST'; any other configured order throws — fail-fast test ordering. All materially distinct operation families are covered once without invented specifics. |
packages |
[org.testng:testng] |
Tracer-to-Maven package mapping | source — muzzle pass block group 'org.testng', module 'testng', versions '[6.4,7.0.0)'; testng-6.4 includes the shared testng-common project (which has no muzzle block of its own). source — muzzle pass blocks group 'org.testng', module 'testng', versions '[7.0.0,7.6)' and '[7.6,)'; matches grounding publication_packages [org.testng:testng] with package_source muzzle. |
category: test.execution |
test.execution |
Manifest v1 category policy · test.execution definition |
instrumentation source — The integration owns TestNG test-case execution: TracingListener (registered by TestNGInstrumentation constructor advice) reports onTestStart/onTestFinish/onTestFailure/onTestSkip and suite start/finish/failure to the CI Visibility TestEventsHandler; class-listener modules hook TestMethodWorker.invokeBefore/AfterClassMethods (setup/teardown lifecycle). This is the customer-facing test framework contract, matching test.execution's definition; reject_when (benchmark timing or merely running inside CI) does not apply. Skipping, retry and fail-fast ordering are features of that same test-execution capability, not distinct categories. cicd.pipeline is rejected (no pipeline orchestration contract); no HTTP, DB, messaging, RPC, task, or other admitted category is instrumented, so the set is complete. |
systems |
[] |
Manifest v1 system policy | instrumentation source — All six modules extend InstrumenterModule.CiVisibility and hook only in-process TestNG classes (TestNG, MethodInvocationHelper, TestMethodWorker, TestInvoker); no database, messaging, cloud, AI provider, platform, or RPC protocol client is instrumented. TestNG is a framework, which the systems schema rejects as an identity, so no x-system-definitions entry qualifies. |
creation_date |
2020-08-20 |
first commit adding working instrumentation | instrumentation source — git log --follow --diff-filter=A on this file and a reverse add-history search over all testng/TestNG paths both resolve to commit bbc9a6d 'Added TestNG instrumentation.' (author date 2020-08-20 13:15:29 +0200), which added functional TestNGInstrumentation, TracingListener and TestNGDecorator under testng-6.4 plus the gradle project — the first functional add; later commits are relocations and feature additions. |
weaver — accepted field evidence
| Field or member | Published value | Derivation authority | Accepted evidence |
|---|---|---|---|
_v |
1 |
Manifest v1 contract | Deterministic schema gate passed. |
name |
weaver |
Tracer integration identity | source — The single module, WeaverInstrumentation (InstrumenterModule.CiVisibility), calls super("ci-visibility", "weaver"). 'ci-visibility' is the shared product umbrella toggle, so 'weaver' is the integration-specific name. No other module in the weaver-0.9 directory declares a configuration name. |
display_name |
Weaver |
Official product name | source — The instrumented type is weaver.framework.SbtTask, which is part of the Weaver test framework's sbt runner and not specific to the cats binding. The POM 'weaver-cats' is an artifact ID for one Weaver module, so 'Weaver', the framework's established name, is the right label. source — The tracer lists the framework as TestFrameworkInstrumentation.WEAVER, and DatadogWeaverReporter reports test.framework 'weaver'. |
description |
Instruments Weaver test execution to report test-suite and test-case lifecycle events to CI Visibility. |
Complete Datadog patch-surface inventory | source — Constructor advice on SbtTask wraps the SuiteEvent queue (ConcurrentLinkedQueue for 0.8.x, LinkedBlockingQueue for 0.9+) in TaskDefAware proxies. On construction the proxies call DatadogWeaverReporter.start(), and they forward every polled event to processEvent. source — processEvent dispatches SuiteStarted, SuiteFinished, and TestFinished to the CI Visibility TestEventsHandler. That covers onTestSuiteStart/Finish, plus onTestStart, onTestFailure, onTestSkip, and onTestFinish (lines 75-166). This matches the description's suite and test-case lifecycle reporting, with nothing invented or omitted. |
packages |
[com.disneystreaming:weaver-cats_3, org.typelevel:weaver-cats_3] |
Tracer-to-Maven package mapping | source — The muzzle block has two pass directives: com.disneystreaming:weaver-cats_3 [0.8.4,) at lines 8-12 and org.typelevel:weaver-cats_3 [0.9.0,) at lines 14-18. These exactly match the manifest packages. There are no fail blocks and no extra coordinates. |
category: test.execution |
test.execution |
Manifest v1 category policy · test.execution definition |
instrumentation source — The integration owns Weaver's test execution through the SbtTask event queue and reports test-case start, result (failure or skip), and finish, plus suite start and finish. These go through TestEventsHandler (cross_signal CI Visibility test events). That is the customer-facing contract of test.execution. The other categories do not apply: cicd.pipeline is excluded by its reject_when (a test framework outside pipeline orchestration). task.execution does not apply because the queue proxies are an event-observation mechanism, not a task boundary. There are no HTTP, RPC, DB, messaging, logging, or serialization hooks in the patch surface. |
systems |
[] |
Manifest v1 system policy | instrumentation source — The only patch point is the in-process weaver.framework.SbtTask constructor. The advice wraps a local event queue, and the reporter (DatadogWeaverReporter) only calls the in-process CI Visibility TestEventsHandler. No database, messaging, cloud, AI provider, RPC protocol, or platform identity is contacted or bound. Weaver itself is a framework, which the schema rejects as a system, so no x-system-definitions entry qualifies. |
creation_date |
2025-01-20 |
first commit adding working instrumentation | instrumentation source — git log --follow --diff-filter=A on this file shows it was first added in the linked commit, 'Add basic Scala Weaver sbt support (#8189)', author date 2025-01-20 16:30:07 +0100. That commit added the functional module under dd-java-agent/instrumentation/weaver: WeaverInstrumentation, DatadogWeaverReporter, TaskDefAwareQueueProxy, and WeaverUtils. It is also the earliest commit in a case-insensitive 'weaver' history grep. Later commits only add the org migration, version support, and directory refactors. |
This branch has not been deployed
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.
What Does This Do
Adds Manifest v1 integration manifests for Cucumber, Gradle, JaCoCo, JUnit 4, JUnit 5, Karate, Maven, Robolectric, ScalaTest, Selenium, TestNG, and Weaver. This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.
Motivation
Introduces a
.manifest.yamlfile alongside each instrumentation in every dd-trace-* tracer repository, describing its metadata in a structured, machine-readable format. An external service can scrape these files to discover and catalog all integrations supported across all Datadog tracers without parsing language-specific source code. Each manifest represents the latest state of its instrumentation and is meant to be updated as the instrumentation changes over time.Additional Notes
This change adds structured, machine-readable integration manifests for Java test optimization:
cucumber)gradle)jacoco)junit-4)junit-5)karate)maven)robolectric)scalatest)selenium)testng)weaver)This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.
Detailed field-level review evidence for every manifest is provided below.
It has the same information as the changed files, so reviewing this description and its evidence comment is enough to understand the changes being proposed.
cucumbertest.execution2023-08-07gradletest.execution2023-03-28jacocoother2023-06-19junit-4test.execution2020-07-08junit-5test.execution2020-08-19karatetest.execution2023-10-17maventest.execution2023-04-06robolectrictest.execution2026-07-13scalatesttest.execution2023-12-13seleniumother2024-04-04testngtest.execution2020-08-20weavertest.execution2025-01-20Field-level review evidence
Tracer links show the instrumented behavior behind each value and are pinned to the reviewed source revision. Category and system values use the Manifest v1 vocabulary. Package names describe Maven delivery of the instrumented code. Display names use the official product branding. Creation dates use the first functional instrumentation commit.
cucumber— accepted field evidence_v1namecucumberdisplay_nameCucumberdescriptionInstruments Cucumber-JVM step-definition execution, creating CI Visibility spans for each executed step.source — onStepStart starts a 'cucumber.step' span. Its resource is the step pattern, and it carries step.name, step.location, step.type and step.arguments tags. onStepFinish closes the scope and finishes the span. This matches 'a span for each executed step'.
source — CiVisibility.isApplicable returns true only when TargetSystem.CIVISIBILITY is enabled. The step spans therefore exist only under CI Visibility, which supports the 'CI Visibility spans' wording. The single-sentence description covers the integration's only operation family and invents nothing.
packagesio.cucumber:cucumber-core]category: test.executiontest.executiontest.executiondefinitionsystems[]creation_date2023-08-07gradle— accepted field evidence_v1namegradlesource — Legacy (<8.3) module calls super("gradle", "gradle-build-listener"); the gradle-testing-5.1 JUnit4 modules share "gradle" after the product-named "ci-visibility" umbrella toggle, matching the grounding key 'gradle'.
display_nameGradlesource — Test session is started with build system name "gradle" and the Gradle version, confirming the integration identity is the Gradle build tool.
descriptionInstruments Gradle builds to report Test Optimization session, build-task, and test-module events, configuring test and compile tasks for Test Optimization and reordering JUnit 4 test classes run by Gradle when a test order is set.source — Legacy listener emits the same session (47, 84-87), build-task (105, 144-146) and test-module (123, 151-158) events for Gradle < 8.3, and configures projects/tracer (65, 132).
source — Applied plugin configures JavaCompile tasks (178, dd-javac-plugin injection), JaCoCo (181-201), and Test tasks (205) whose applyTo adds tracer JVM arguments: 'configuring test and compile tasks for Test Optimization'.
source — Enabled only when getCiVisibilityTestOrder() != null; wraps Gradle's JUnitTestClassProcessor executor in DDCollectAllTestClassesExecutor (69), which sorts JUnit 4 classes with JUnit4FailFastClassOrderer before execution (DDCollectAllTestClassesExecutor.java:42).
packages[]category: test.executiontest.executiontest.executiondefinitionsystems[]creation_date2023-03-28jacoco— accepted field evidence_v1namejacocosource — super("jacoco") on the second declared module.
source — super("jacoco") on the third declared module; all three share the same single name.
display_nameJaCoCodescriptionInstruments the JaCoCo agent to collect per-test line and percentage coverage data for CI Visibility.source — visitTotalProbeCount advice records each class's total probe count through CoveragePerTestBridge.setTotalProbeCount. This supports per-test line coverage.
source — InstrumenterInstrumentation.instrument advice calls CoverageDataInjector.init. That registers the JaCoCo agent's execution data as a supplier on CoveragePercentageBridge.
source — The CI Visibility child process reads that supplier through JacocoChildProcessCoverageReporter. The data feeds total coverage percentage computation (JacocoCoverageProcessor line 408). This is the percentage coverage.
packagesorg.jacoco:org.jacoco.agent]category: otherotherotherdefinitionsystems[]creation_date2023-06-19junit-4— accepted field evidence_v1namejunit-4display_nameJUnit 4descriptionInstruments JUnit 4 test suites and tests for CI Visibility, including Cucumber and MUnit tests run on the JUnit 4 runner, with test skipping, retries, ordering, and setup/teardown tracing.source — This module instruments the JUnit 4 runner io.cucumber.junit.Cucumber (childrenInvoker), and CucumberTracingListener reports CUCUMBER suite and test events. MUnitInstrumentation.java line 30 instruments munit.MUnitRunner, the JUnit 4 runner, and reports MUNIT events through MUnitTracingListener.
source — Test skipping: runChild advice is gated on isCiVisibilityTestSkippingEnabled and skips tests that the handler marks as skippable. JUnit4CucumberSkipInstrumentation does the same for Cucumber pickles.
source — Retries: runLeaf advice, gated on isCiVisibilityExecutionPoliciesEnabled (line 46), re-invokes the test in a do/while loop while executionPolicy.applicable(). Cucumber4ExecutionInstrumentation and MUnitExecutionInstrumentation provide the same for Cucumber and MUnit.
source — Ordering: Orderer.order exit advice, gated on getCiVisibilityTestOrder() != null, re-sorts the descriptions with FailFastDescriptionComparator. JUnit4TestSorterInstrumentation covers the Sorter path.
source — Setup/teardown tracing: JUnit4BeforeAfterInstrumentation advises invokeMethod(FrameworkMethod), and startTrace creates a 'junit' span per @Before/@After/@BeforeClass/@AfterClass/@BeforeParam/@AfterParam method with a test.callback tag.
packagesio.cucumber:cucumber-junit,junit:junit,org.scalameta:munit_2.13]source — The muzzle pass block has group 'io.cucumber', module 'cucumber-junit', versions [5.4.0,).
source — The muzzle pass block has group 'org.scalameta', module 'munit_2.13', versions [0.7.28,). All three coordinates exactly match the grounding publication_packages (package_source muzzle).
category: test.executiontest.executiontest.executiondefinitionsystems[]creation_date2020-07-08junit-5— accepted field evidence_v1namejunit-5source — super("ci-visibility", "junit-5", "junit-5-cucumber"): the Cucumber-on-JUnit-Platform module declares junit-5 as its shared name too, so this is one integration and should not be split out.
display_nameJUnit 5descriptionInstruments JUnit 5 test executions and lifecycle callbacks for CI Visibility, including Cucumber and Spock tests run on the JUnit Platform, with test skipping, retries, and fail-fast test ordering.source — Lifecycle callbacks: JUnit5BeforeAfterInstrumentation registers this InvocationInterceptor, which starts a 'junit' span for each BeforeAll, BeforeEach, AfterEach and AfterAll method.
source — Cucumber on the JUnit Platform: the CucumberTestEngine execute advice installs CucumberTracingListener. JUnit5SpockInstrumentation does the same for Spock with SpockTracingListener.
source — Test skipping: the shouldBeSkipped advice replaces the SkipResult with a skip when the CI Visibility handler returns a skip reason (ITR or test management). Cucumber and Spock have their own skip modules.
source — Retries: NodeTestTask.execute advice (enabled when execution policies are on) creates retry descriptors and re-executes retry tasks. There is also a Spock parameterized retry module.
source — Fail-fast test ordering: JupiterConfiguration.getDefaultTestClassOrderer and getDefaultTestMethodOrderer return FailFastClassOrderer and FailFastMethodOrderer when the CI Visibility test order is FAIL_FAST. The description invents no extra behavior and omits no distinct operation family.
packagesio.cucumber:cucumber-junit-platform-engine,org.junit.jupiter:junit-jupiter-api,org.junit.jupiter:junit-jupiter-engine,org.junit.platform:junit-platform-launcher,org.spockframework:spock-core]source — The muzzle pass blocks list junit-platform-launcher [1.8.0,), org.junit.jupiter:junit-jupiter-engine [5.8.0,) and junit-jupiter-api [5.8.0,).
source — The muzzle pass block lists io.cucumber:cucumber-junit-platform-engine [5.4.0,).
source — The muzzle pass block lists org.spockframework:spock-core [2.0-groovy-3.0,). The five coordinates match grounding publication_packages exactly, with no versions and no test-only dependencies.
category: test.executiontest.executiontest.executiondefinitionsystems[]creation_date2020-08-19karate— accepted field evidence_v1namekaratesource — super("ci-visibility", "karate", "test-retry"): shares 'karate' after the umbrella; 'test-retry' is a cross-framework feature toggle, not the identity.
source — Karate 2.x module also declares super("ci-visibility", "karate"), so both version projects belong to one 'karate' integration.
display_nameKaratesource — KARATE is a named test-framework identity in the tracer. The supplied POM is '${project.artifactId}' (resolves to artifact ID 'karate-core'), so it is correctly replaced by the established product name 'Karate'.
descriptionInstruments Karate test suites, scenarios, and steps for CI Visibility, including test reporting, skipping, and retries.source — beforeFeature/afterFeature report features as test suites (onTestSuiteStart/Failure/Skip/Finish); beforeScenario/afterScenario report scenarios as tests (onTestStart line 141, onTestFailure/Skip/Finish lines 164-171); beforeStep creates 'karate.step' spans (line 203).
source — When test skipping or test management is enabled, a skipReason causes onTestIgnore and returns false so the scenario is skipped (skipping).
source — RetryAdvice on ScenarioRuntime.run() re-runs the scenario while the TestExecutionPolicy applies; SuppressErrorAdvice on ScenarioResult.addStepResult suppresses failures of retried attempts (retries).
source — Karate 2.x RunListener dispatches FEATURE/SCENARIO/STEP enter/exit events to the same suite/test/step reporting and skipping logic (skip at lines 124-143, step span at 195); karate2.KarateExecutionInstrumentation applies retry and failure-suppression advice to ScenarioRuntime#call and ScenarioResult#addStepResult. The description covers every operation family without invented specifics.
packagescom.intuit.karate:karate-core,io.karatelabs:karate-core]source — muzzle pass group 'io.karatelabs' module 'karate-core' versions [1.5.0,2.0.0).
source — muzzle pass group 'io.karatelabs' module 'karate-core' versions [2.0.0,). Matches grounding publication_packages exactly; karate-junit5 is test-only and correctly excluded.
category: test.executiontest.executiontest.executiondefinitionsystems[]instrumentation source — Karate 2.x modules likewise match only io.karatelabs.core runner/scenario types; no backend-bound boundary exists.
creation_date2023-10-17maven— accepted field evidence_v1namemavensource — Second declared module calls super("ci-visibility", "maven", "surefire", "junit4"); 'maven' is the shared name after the product-named ci-visibility umbrella toggle.
display_nameMavensource — Test session is reported with build-system name "maven" and the Maven version, confirming the user-facing identity is Maven.
descriptionInstruments Maven build and test execution for CI Visibility, including fail-fast ordering of JUnit 4 test classes run by Surefire.source — Non-test mojo executions are reported as build tasks via onBuildTaskStart (build execution); test mojos (Surefire/Failsafe/Tycho) are reported as test modules via onTestModuleStart (line 110) and the tracer is configured into forked test JVMs.
source — On JUnit4Provider/JUnitCoreProvider setTestsToRun, test classes are sorted with JUnit4FailFastClassOrderer when the fail-fast test order is configured; matches the 'fail-fast ordering of JUnit 4 test classes run by Surefire' clause.
packagesorg.apache.maven:maven-embedder,org.apache.maven.surefire:surefire-junit4,org.apache.maven.surefire:surefire-junit47]source — muzzle pass blocks for org.apache.maven.surefire:surefire-junit4 (line 7-8) and org.apache.maven.surefire:surefire-junit47 (line 14-15), versions [3.0.0,); matches grounding publication_packages exactly.
category: test.executiontest.executiontest.executiondefinitionsystems[]creation_date2023-04-06Evidence for
robolectric,scalatest,selenium,testng,weavercontinues in the PR comment "Field-level review evidence (continued)", in the same format.Testing
None. This PR only adds metadata files.
Risks
The added YAML is declarative metadata and introduces no runtime instrumentation or public API change. Metadata can become stale if later instrumentation changes do not update its manifest. Package lists describe Maven delivery and are not a complete list of targeted assemblies or modules.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: IDMPL-594