Skip to content

Conversation

@williamchoe3
Copy link
Contributor

@williamchoe3 williamchoe3 commented Jan 6, 2026

Backport 1/1 commits from #158528 on behalf of @williamchoe3.


Previously, we didn't have an easy way to do full text search across CI test runs across different TC Build Configurations and branches. To do that, you would have to download the artifacts for what you wanted to search for.

This change adds a datadog package that uploads test.log files to Datadog during test cleanup on master and release branches. The implementation scans the log file serially and uses a worker pool to upload log entries in batches of 1000 using the Datadog API client. Each log entry is tagged with test metadata (test name, owner, cloud, platform, version) and includes attributes for higher cardinality fields (cluster name, build number, result, duration). See comments for more details.

The entry point for datadog upload in roachtest will be during the post step test in test_runner.go. Added a new roachtest flag datadog-always-upload for e2e testing on a non release branch. Modified TC build scripts to pass new env vars and the teamcity build properties file.


Release justification: Test only change

Previously, test.log artifacts were only available on TeamCity's UI.

This change adds a datadog package that uploads test.log files to Datadog
during test cleanup on master and release branches. The implementation scans
the log file serially and uses a worker pool to upload log entries in batches
of 1000 using the Datadog API client. Each log entry is tagged with test
metadata (test name, owner, cloud, platform, version) and includes attributes
for higher cardinality fields (cluster name, build number, result, duration).

This enables full-text search across roachtest runs and improves observability
for test triage and failure analysis.

Epic: None
Release note: None
@williamchoe3 williamchoe3 requested review from a team as code owners January 6, 2026 18:42
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Jan 6, 2026
@williamchoe3 williamchoe3 requested review from nameisbhaskar and removed request for a team January 6, 2026 18:42
@blathers-crl
Copy link

blathers-crl bot commented Jan 6, 2026

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added backport Label PR's that are backports to older release branches T-testeng TestEng Team labels Jan 6, 2026
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-testeng TestEng Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants