Skip to content

feat(spring): Spring Boot 4 / Spring Framework 7 — spring-scheduling-3.1 latestDepTest#11598

Draft
wconti27 wants to merge 2 commits into
masterfrom
boot4/spring-scheduling-3.1
Draft

feat(spring): Spring Boot 4 / Spring Framework 7 — spring-scheduling-3.1 latestDepTest#11598
wconti27 wants to merge 2 commits into
masterfrom
boot4/spring-scheduling-3.1

Conversation

@wconti27
Copy link
Copy Markdown
Contributor

@wconti27 wconti27 commented Jun 8, 2026

Summary

Bumps spring-scheduling-3.1 latestDepTest pins from Spring Framework 6.x / Boot 3.x to Spring Framework 7.x / Boot 4.x.

Also migrates all 3 Groovy/Spock test files to JUnit 5 Java (required by CLAUDE.md for any test file edit), and fixes SpannedMethodInvocation compatibility with the updated dependency chain.

Changes

  • build.gradle: spring-context 6.+7.+, spring-boot-starter-data-jpa 3.+4.+
  • gradle.lockfile: regenerated for Boot 4.0.0-RC2 / SF 7.0.x
  • ShedlockTest.groovyShedlockTest.java (Spock → JUnit 5)
  • SpringSchedulingTest.groovySpringSchedulingTest.java + SpringSchedulingErrorTest.java
  • SpringAsyncTest.groovySpringAsyncTest.java + SpringAsyncErrorTest.java
  • SpannedMethodInvocation.java: compatibility fix

Verification

./gradlew :dd-java-agent:instrumentation:spring:spring-scheduling-3.1:latestDepTest -PtestJvm=17BUILD SUCCESSFUL with Spring Framework 7.0.x / Boot 4.0.0-RC2.

Part of: #11597

🤖 Generated with Claude Code

@wconti27 wconti27 requested a review from a team as a code owner June 8, 2026 15:22
@wconti27 wconti27 requested review from ygree and removed request for a team June 8, 2026 15:22
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 8, 2026

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 8, 2026

PR Blocked - Invalid Label

The pull request introduced unexpected labels:

  • ai-generated

This PR is blocked until:

  1. The invalid labels are deleted, and
  2. A maintainer deletes this comment to unblock the PR

Note: Simply removing labels from the pull request is not enough - a maintainer must delete this comment then remove the label to remove the block.

@datadog-prod-us1-5
Copy link
Copy Markdown
Contributor

datadog-prod-us1-5 Bot commented Jun 8, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 3 Pipeline jobs failed

Check pull requests | Check pull requests   View in Datadog   GitHub Actions

DataDog/apm-reliability/dd-trace-java | linux-java-spring-petclinic-sca-load-parallel   View in Datadog   GitLab

Validate PR Label Format | Check pull request labels   View in Datadog   GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8886d2c | Docs | Datadog PR Page | Give us feedback!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8886d2cb4a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

latestDepTestImplementation group: 'org.springframework', name: 'spring-context', version: '6.+'
latestDepTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '3.+'
latestDepTestImplementation group: 'org.springframework', name: 'spring-context', version: '7.+'
latestDepTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '4.+'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Bump the latestDepTest actuator dependency too

With this change latestDepTest now resolves Boot 4 for spring-boot-starter-data-jpa, but the same suite still inherits spring-boot-starter-actuator:2.4.0 from testImplementation (visible in the regenerated lockfile for latestDepTestCompileClasspath). The latest-dep scheduling tests import and instantiate ScheduledTasksEndpoint, so they are still exercising the Boot 2.4 actuator artifact mixed with Boot 4 core/autoconfigure rather than validating the Boot 4 scheduling endpoint; add a latestDepTestImplementation override for the actuator starter/artifact alongside the Boot 4 JPA starter.

Useful? React with 👍 / 👎.

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 8, 2026

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.90 s 13.85 s [-0.8%; +1.5%] (no difference)
startup:insecure-bank:tracing:Agent 12.81 s 12.93 s [-1.7%; -0.1%] (maybe better)
startup:petclinic:appsec:Agent 16.88 s 16.64 s [+0.1%; +2.7%] (maybe worse)
startup:petclinic:iast:Agent 16.82 s 16.92 s [-2.0%; +0.7%] (no difference)
startup:petclinic:profiling:Agent 16.78 s 16.76 s [-1.0%; +1.2%] (no difference)
startup:petclinic:sca:Agent 15.70 s 16.53 s [-13.8%; +3.9%] (unstable)
startup:petclinic:tracing:Agent 16.16 s 16.31 s [-2.2%; +0.3%] (no difference)

Commit: 8886d2cb · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@wconti27 wconti27 marked this pull request as draft June 8, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant