[reference] sparkjava-2.3 blind regeneration for #11927#11936
Draft
jordan-wong wants to merge 1 commit into
Draft
[reference] sparkjava-2.3 blind regeneration for #11927#11936jordan-wong wants to merge 1 commit into
jordan-wong wants to merge 1 commit into
Conversation
This branch contains the output of an automated integration-authoring pass on `sparkjava-2.3`, produced against the draft skill in #11927. Opened as a draft PR for reviewer reference during discussion of that skill PR; not intended to be merged as-is. Base: master @ cd03735 Target module deleted before the run so the authoring flow had to generate it from scratch (blind test — output has no visibility of the shipping module). Diff scope: only `dd-java-agent/instrumentation/spark/sparkjava-2.3/` plus entries in `metadata/supported-configurations.json`. All other generation artifacts (`.analysis/**`, workflow state) are excluded.
Contributor
|
❌ New Groovy Files Detected Please avoid introducing new
Instead, rewrite the new file(s) in Java / JUnit. See the How to Test With JUnit Guide for more details. If this PR needs an exception, add the |
Summary
Testing
|
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: a4c5a09 | Docs | Datadog PR Page | Give us feedback! |
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
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.
Reference draft for the skill PR #11927. This diff is the output of an automated integration-authoring pass on
sparkjava-2.3against the draft skill in that PR. Not intended to be merged as-is — opened so reviewers of #11927 can see concrete output the skill drives.What this is
Master's
sparkjava-2.3module was deleted, then the automated authoring flow was run against the draft skill (rules being proposed in #11927). This branch is the resulting output.Base: master @
cd03735159Scope: 15 files, +755/-330 — only inside
dd-java-agent/instrumentation/spark/sparkjava-2.3/and entries inmetadata/supported-configurations.json.Rule adherence — how the output compares to the shipping module
MatcherFilterInstrumentationcallsDECORATE.startSpan(request, parentContext)inside Jetty's activeservlet.requestspan, and instantiates a newSparkJavaDecorator— exactly what this rule was drafted (from @codex on #11708) to prevent. Master's single-class approach only callsHTTP_RESOURCE_DECORATOR.withRoute(activeSpan(), ...).defaultEnabled() = false(sparkjava was intentionally opt-in); dropped the groupDD_TRACE_SPARKJAVA_ENABLEDflag frommetadata/supported-configurations.jsonentirely, silently breaking any customer using it to disable the integration; muzzle narrowed from[2.3,)to[2.3,2.4)super(...)namingsuper("sparkjava", "sparkjava-2.3")where master usessuper("sparkjava", "sparkjava-2.4")(the-2.4reflects the version the code exercises — see thebuild.gradlecomment on master). New instrumentation createdDD_TRACE_SPARKJAVA_2_3_ENABLEDwhere none existed.metadata/supported-configurations.jsonpopulated correctlyDD_TRACE_SPARKJAVA_ENABLEDflag missing (see above)*Advice.javahelperClassNames()completeHelperMethodsanti-pattern absentThread.sleep, no defaultjvmArgs,ForkedTesthas an isolation-reason comment; but embedded server is not astaticfield, and route setup is duplicated acrossSparkJavaTest.groovyandSparkJavaForkedTest.groovyinstead of factored into a baseThe most consequential failure is the framework-in-framework one. That rule was drafted specifically from @codex's #11708 feedback and is one of the highest-signal rules in #11927. The output still violates it — useful data for reviewers thinking about whether the rule wording is strong enough.
Not for merging
This branch supersedes nothing on master and is not a replacement for the existing production module. The shipping
sparkjava-2.3is under separate open PRs (#11708) with its own review track.