Skip to content

chore: Declare the diagnostic-events capability in the server contract tests - #284

Merged
joker23 merged 1 commit into
mainfrom
devin/1795208960-diagnostic-events-capability
Nov 23, 2026
Merged

joker23 merged 1 commit into
mainfrom
devin/1795208960-diagnostic-events-capability

Conversation

@joker23

@joker23 joker23 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Declares diagnostic-events in the server SDK contract test service so the new sdk-test-harness test events/diagnostic events runs. The test was added in v3.2.0-alpha.20 and checks that diagnostic-init is sent to /diagnostic and that no diagnostic payload reaches the analytics route.

  • The entity already calls diagnosticOptOut(!enableDiagnostics).
  • DefaultEventProcessor sends diagnostic-init once, and DefaultEventSender posts it to /diagnostic.
Testing

Not run locally, because Maven Central returned HTTP 429 during the Gradle build. CI on this PR is the first run of the test.

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-events to the server SDK contract test service’s advertised CAPABILITIES list in TestService.java.

That lets the sdk-test-harness run the events/diagnostic events conformance case (from v3.2.0-alpha.20), which asserts diagnostic-init is posted to /diagnostic and does not leak onto the analytics route.

Reviewed by Cursor Bugbot for commit 9b637b6. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Steven Zhang <szhang@launchdarkly.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot added the devin-pr Label for PR's created using devin. label Nov 20, 2026
@joker23
joker23 marked this pull request as ready for review November 23, 2026 15:27
@joker23
joker23 requested a review from a team as a code owner November 23, 2026 15:27

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Approved under SDK rules 2 and 3: the author is an SDK team member, and this is not a GitHub Actions workflow change. Cursor Bugbot completed with no findings that need human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver

@cursor cursor Bot added the risk:low label Nov 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low.

Automated risk review (dry run): Low

This PR would be automatically approved.

Why: The only change is adding the diagnostic-events capability string in TestService.java so contract tests advertise existing diagnostic event behavior; Cursor Bugbot reported no issues and this is not infrastructure, auth, schema, or CI.

If you disagree with this review, share this PR in #feedback-agent-approvals or submit a changes-requested review explaining why.

Open in Web View Automation 

Sent by Cursor Approval Agent: Dry-Run PR Approver

@joker23
joker23 merged commit 11edfd9 into main Nov 23, 2026
35 checks passed
@joker23
joker23 deleted the devin/1795208960-diagnostic-events-capability branch November 23, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devin-pr Label for PR's created using devin. risk:low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant