Skip to content

Resolve latest patches per major Gradle version in CI workflow#11635

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
daniel.mohedano/gradle-latest-patches
Jun 15, 2026
Merged

Resolve latest patches per major Gradle version in CI workflow#11635
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
daniel.mohedano/gradle-latest-patches

Conversation

@daniel-mohedano

Copy link
Copy Markdown
Contributor

What Does This Do

  • The Update smoke test latest versions workflow now also resolves the latest patches available per major release of Gradle
  • This data, stored in latest-tool-versions.properties, is used by Gradle smoke tests to determine the oldest Gradle version that the project's TestKit supports and can be tested.

Motivation

Avoids the need of manually updating the oldest scenario every time the project's Gradle version is bumped to a new major release.

Additional Notes

test-environment-trigger: skip

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels in addition to any other useful labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
    Use solves instead, and assign the PR milestone to the issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors
  • Add your completed PR to the merge queue by commenting /merge. You can also:
    • Customize the commit message associated with the merge with /merge --commit-message "..."
    • Remove your PR from the merge queue with /merge -c
    • Skip all merge queue checks with /merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-level (note: the PR still needs to be mergeable, this will only skip the pre-merge build)
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@datadog-prod-us1-4

This comment has been minimized.

@daniel-mohedano daniel-mohedano added type: feature Enhancements and improvements tag: no release notes Changes to exclude from release notes comp: ci visibility Continuous Integration Visibility labels Jun 12, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

🟢 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 14.00 s 13.93 s [-0.1%; +1.1%] (no difference)
startup:insecure-bank:tracing:Agent 12.96 s 12.98 s [-1.0%; +0.7%] (no difference)
startup:petclinic:appsec:Agent 16.88 s 16.80 s [-0.7%; +1.7%] (no difference)
startup:petclinic:iast:Agent 16.91 s 16.97 s [-1.2%; +0.5%] (no difference)
startup:petclinic:profiling:Agent 16.29 s 16.86 s [-7.7%; +0.9%] (no difference)
startup:petclinic:sca:Agent 16.86 s 16.83 s [-0.8%; +1.2%] (no difference)
startup:petclinic:tracing:Agent 16.08 s 16.08 s [-0.9%; +0.8%] (no difference)

Commit: cd8a66e6 · 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.

@daniel-mohedano daniel-mohedano added the tag: ai generated Largely based on code generated by an AI or LLM label Jun 12, 2026
@daniel-mohedano
daniel-mohedano marked this pull request as ready for review June 15, 2026 09:36
@daniel-mohedano
daniel-mohedano requested review from a team as code owners June 15, 2026 09:36
@daniel-mohedano
daniel-mohedano requested review from PerfectSlayer, bric3 and sarahchen6 and removed request for a team, PerfectSlayer and sarahchen6 June 15, 2026 09:36

@bric3 bric3 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.

I believe this is god to go. Thanks for the improvement!


protected static final String LATEST_GRADLE_VERSION = getLatestGradleVersion();
private static final Properties TOOL_VERSIONS = loadToolVersions();
protected static final String LATEST_GRADLE_VERSION = toolVersion("gradle.version");

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.

suggestion: Maybe rename the property to gradle.latest so it remain consistent with the new properties ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good point! addressed in c96a08c + updated the maven properties also to follow the same structure

// - "oldest": the latest patch of the oldest major the current Gradle TestKit still supports
// Any other value is treated as a concrete version and returned as-is.
private static String resolveVersion(String gradleVersion) {
if ("latest".equals(gradleVersion)) {

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.

note: FYI I didn't see any test using the "latest" marker.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

for the testLegacy scenarios all are either pinned or using oldest, but in the testNew scenarios almost all of them use latest as the Gradle version

@daniel-mohedano

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Jun 15, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-06-15 13:51:23 UTC ℹ️ Start processing command /merge


2026-06-15 13:51:28 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-06-15 14:58:23 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 64fea60 into master Jun 15, 2026
581 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the daniel.mohedano/gradle-latest-patches branch June 15, 2026 14:58
@github-actions github-actions Bot added this to the 1.64.0 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: ci visibility Continuous Integration Visibility tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants