Repository navigation
chore: Declare the diagnostic-events capability in the contract tests - #507
Merged
Merged
Conversation
Co-Authored-By: Steven Zhang <szhang@launchdarkly.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
keelerm84
approved these changes
Nov 23, 2026
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.


Summary
Declares
diagnostic-eventsin the contract test service so the new sdk-test-harness testevents/diagnostic eventsruns. The test was added in v3.2.0-alpha.20 and checks thatdiagnostic-initis sent to/diagnosticand that no diagnostic payload reaches the analytics route.diagnostic_opt_out = !enableDiagnostics, so the entity needs no other change.Testing
I ran the v3.2.0-alpha.20 harness locally with
-run diagnosticagainst the service (Ruby 3.3), and all 3 diagnostic tests passed.Link to Devin session: https://app.devin.ai/sessions/56b8ade9602745fbba00e59a531bbefa
Open in Devin Desktop: https://app.devin.ai/desktop/session/56b8ade9602745fbba00e59a531bbefa?variant=devin
Requested by: @joker23
Note
Overview
Adds
diagnostic-eventsto the capabilities returned by the contract test service’s root endpoint so the sdk-test-harness diagnostic events suite (v3.2.0-alpha.20+) is selected for this adapter. No other service or entity changes are required because diagnostics opt-out is already driven byenableDiagnosticsin the client entity.Reviewed by Cursor Bugbot for commit b40a9c9. Bugbot is set up for automated code reviews on this repo. Configure here.