Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
143b0a2
feat: introduce bazel support to test optimization
daniel-mohedano Apr 17, 2026
19cd3a7
fix: environment variable access
daniel-mohedano Apr 20, 2026
962118d
refactor: extract common dto logic
daniel-mohedano Apr 20, 2026
50ddebd
Merge branch 'master' into daniel.mohedano/bazel-support
daniel-mohedano Apr 20, 2026
178f977
feat: telemetry
daniel-mohedano Apr 20, 2026
827b1c4
fix: TEST_UNDECLARED_OUTPUTS_DIR access
daniel-mohedano Apr 20, 2026
4d1bd27
feat: unit tests
daniel-mohedano Apr 20, 2026
8fc6885
fix: manifest read
daniel-mohedano Apr 20, 2026
35ebb15
feat: lazy start of suites for bazel runner
daniel-mohedano Apr 20, 2026
1ddb2bd
fix: traceId conversion using jsonValue instead of regular value
daniel-mohedano Apr 20, 2026
fc6159d
fix: avoid double reporting due to bazel's custome test runner
daniel-mohedano Apr 20, 2026
35d83fe
fix: consider bazel mode as agentless for span processing and protocols
daniel-mohedano Apr 20, 2026
e7e0828
fix: import
daniel-mohedano Apr 20, 2026
fd0fa85
chore: cleanup comments
daniel-mohedano Apr 21, 2026
da57da8
chore: cleanup
daniel-mohedano Apr 23, 2026
3f4ff17
fix: master changes
daniel-mohedano Apr 27, 2026
215f516
Merge branch 'master' into daniel.mohedano/bazel-support
daniel-mohedano Apr 27, 2026
a9f0f20
feat: bazel provider in telemetry
daniel-mohedano Apr 27, 2026
94036b9
chore: spotless
daniel-mohedano Apr 27, 2026
30c479b
fix: configs
daniel-mohedano Apr 27, 2026
88626ed
Merge branch 'daniel.mohedano/bazel-support' into daniel.mohedano/baz…
daniel-mohedano Apr 27, 2026
d2a99ac
Merge branch 'master' into daniel.mohedano/bazel-telemetry-provider
daniel-mohedano Apr 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package datadog.trace.civisibility.ci;

import datadog.trace.api.civisibility.telemetry.tag.Provider;
import datadog.trace.api.git.GitInfo;
import javax.annotation.Nonnull;

/**
* Provider strategy used when Bazel payload-in-files mode is active. The orchestrating Bazel rule
* is responsible for collecting CI/git information and enriching the test spans downstream (e.g.
* combining with the underlying CI provider to produce {@code bazel/github}). This strategy only
* surfaces {@link Provider#BAZEL} for telemetry so the rule can confirm that the agent detected the
* mode; no environment or git data is read here.
*/
class BazelInfo implements CIProviderInfo {

@Override
public GitInfo buildCIGitInfo() {
return GitInfo.NOOP;
}

@Override
public CIInfo buildCIInfo() {
return CIInfo.NOOP;
}

@Nonnull
@Override
public PullRequestInfo buildPullRequestInfo() {
return PullRequestInfo.EMPTY;
}

@Override
public Provider getProvider() {
return Provider.BAZEL;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package datadog.trace.civisibility.ci;

import datadog.trace.api.Config;
import datadog.trace.api.civisibility.config.BazelMode;
import datadog.trace.civisibility.ci.env.CiEnvironment;
import java.nio.file.Path;

Expand All @@ -21,6 +22,12 @@ public CIProviderInfoFactory(Config config, CiEnvironment environment) {
}

public CIProviderInfo createCIProviderInfo(Path currentPath) {
// bazel rule supplies CI/git data downstream
BazelMode bazelMode = BazelMode.get();
if (bazelMode.isPayloadFilesEnabled() && bazelMode.getPayloadsDir() != null) {
return new BazelInfo();
}

if (!config.isCiVisibilityCiProviderIntegrationEnabled()) {
return new UnknownCIInfo(environment, targetFolder, currentPath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum Provider implements TagValue {
APPVEYOR,
AWS,
AZP,
BAZEL,
BITBUCKET,
BITRISE,
BUILDKITE,
Expand Down
Loading