Skip to content

Conversation

@vpellan
Copy link

@vpellan vpellan commented Jan 19, 2026

What does this PR do?

This PR adds config inversion to datadog-ci-rb, without backfilling the configs yet (this will be done in a subsequent PR), nor adding the CI jobs (also in a later PR) nor adding the two custom cops, to prevent direct access to ENV, and to detect unregistered DD_ or OTEL_ env vars.

Motivation

We currently miss all datadog-ci-rb env vars in the config registry.

Additional Notes

This depends on DataDog/dd-trace-rb#5256 to use config inversion, but this should not introduce any breaking change on lower versions of dd-trace-rb.

How to test the change?

I'm unsure how to tell the CI to use a specific branch of dd-trace-rb for the tests. Locally, you can change the Gemfile to use dd-trace-rbvpellan/config-inversion-datadog-ci-rb branch. You also need to bump the version to 1.27.0.

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jan 19, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 93.55%
Overall Coverage: 97.19% (+0.13%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 95e46bc | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@vpellan vpellan marked this pull request as draft January 19, 2026 17:27
@vpellan vpellan force-pushed the vpellan/config-inversion branch from 5a4ce67 to b54ce47 Compare January 20, 2026 11:35
@vpellan vpellan marked this pull request as ready for review January 20, 2026 11:48
@vpellan vpellan force-pushed the vpellan/config-inversion branch from 4239657 to 91e364b Compare January 21, 2026 13:41
@vpellan vpellan force-pushed the vpellan/config-inversion branch from 91e364b to 95e46bc Compare January 21, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants