Skip to content

Remove redundant manual proto srcDir from protobuf-3.0 instrumentation - #11343

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
bdu/gradle9-protobuf-30-drop-manual-srcdir
May 11, 2026
Merged

Remove redundant manual proto srcDir from protobuf-3.0 instrumentation#11343
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
bdu/gradle9-protobuf-30-drop-manual-srcdir

Conversation

@bric3

@bric3bric3 commented May 11, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Removes the manual sourceSets block that explicitly added the generated proto sources directory in dd-java-agent/instrumentation/protobuf-3.0/build.gradle. The com.google.protobuf plugin 0.10.0 (upgraded in #11310) automatically registers generated sources into the corresponding source sets, making the manual declaration redundant.

Follow-up to https://github.com/DataDog/dd-trace-java/pull/11310/files#r3204919936

Motivation

The manual srcDir addition was necessary with plugin 0.8.18, which did not auto-wire generated sources. Keeping it alongside the plugin's own auto-registration was actively breaking source set wiring (flagged in a review comment on #11310). Removing it restores correct behaviour and simplifies the build script. Verified with a clean build (no cache) and a second pass using the build cache — both generateTestProto and compileTestJava succeed in all cases.

Additional Notes

Sub-PR of #10402, #11272.

Plugin 0.10.0 automatically registers generated proto sources into the
corresponding source sets. The manual srcDir addition was required for
plugin 0.8.18 but is now redundant — keeping it on top of the plugin's
own wiring actively breaks source set registration (review comment on #11310).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bric3bric3 added tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels May 11, 2026
@bric3bric3 mentioned this pull request May 11, 2026
19 tasks
@bric3bric3 added tag: ai generated Largely based on code generated by an AI or LLM labels May 11, 2026
@bric3
bric3 marked this pull request as ready for review May 11, 2026 14:40
@bric3
bric3 requested review from a team as code ownersMay 11, 2026 14:40
Comment threaddd-java-agent/instrumentation/protobuf-3.0/build.gradle Outdated
@bric3bric3 changed the title Remove redundant manual proto srcDir from protobuf-3.0 instrumentationRemove redundant manual proto srcDir from protobuf-3.0 instrumentationMay 11, 2026
@bric3

Copy link
Copy Markdown
ContributorAuthor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351Bot commented May 11, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-05-11 16:50:17 UTC ℹ️ Start processing command /merge


2026-05-11 16:50:23 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-11 18:02:56 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot merged commit cd95f53 into masterMay 11, 2026
757 of 759 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot deleted the bdu/gradle9-protobuf-30-drop-manual-srcdir branch May 11, 2026 18:02
@github-actionsgithub-actionsBot added this to the 1.63.0 milestone May 11, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: toolingBuild & Toolingtag: ai generatedLargely based on code generated by an AI or LLMtag: no release notesChanges to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bric3@sarahchen6@AlexeyKuznetsov-DD