Skip to content

Centralize smoke app Gradle proxy setup#11575

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits into
masterfrom
bdu/gradle9-smoke-test-app
Jun 5, 2026
Merged

Centralize smoke app Gradle proxy setup#11575
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits into
masterfrom
bdu/gradle9-smoke-test-app

Conversation

@bric3
Copy link
Copy Markdown
Contributor

@bric3 bric3 commented Jun 4, 2026

What Does This Do

Moves the smoke-test app Gradle proxy setup into the smoke app build logic.

The smoke app extension now adds the shared init script only for CI nested builds. The init script is Kotlin, runs early enough to affect plugin resolution, and prepends Maven proxy repositories without replacing project repositories.

It also removes duplicated nested repository and cache wiring from smoke apps that can rely on the shared setup.

Motivation

Gradle 9 exposed a few nested-build assumptions in the smoke apps: plugin repositories, CI proxy repositories, and duplicated boilerplate lived in too many places.

Centralizing that setup keeps the smoke apps consistent while preserving app-specific repositories, including the Tomcat repositories that still belong to those builds.

Additional Notes

This keeps the direction focused on Maven proxy injection. Ivy repository handling remains in app-specific builds for now.

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]

bric3 added 8 commits June 4, 2026 21:37
Exercise the two inputs the native smoke apps rely on: a provider-backed environment variable and a provider-backed file forwarded as a Gradle property. This locks in the Gradle 9 migration support that now replaces the old Exec wiring.
Leave the OpenLiberty smoke apps on the Maven wrapper for now. They are the only Maven nested application builds, so a dedicated NestedMavenBuild task would add API surface before there is a pattern to share.
Move nested smoke-test repository policy into the plugin. Nested Gradle builds now pass root proxy properties and load one init script, so individual application settings files no longer need to repeat the same repository blocks.
Let the smoke-test-app init script own nested repository policy. Application settings files now keep only project-specific settings, with Quarkus retaining its plugin version declaration.
Nested smoke-test builds already pass an explicit build-cache flag from the plugin. Removing the per-application CI cache redirects avoids dead settings and fixes the RUM EAR path that pointed outside the cached workspace.
Keep repository proxy init scripts as a smoke app convention so NestedGradleBuild only passes --init-script when callers provide scripts.

Enable that convention only when CI=true and forward proxy properties from the outer build in that mode.
Use a Kotlin init script that configures plugin repositories in beforeSettings and registers a beforeProject hook to add Maven proxy repositories before project build scripts add their own repositories.

This keeps project repositories available while making the CI proxy repositories first in nested smoke-test builds.
Use Gradle Action callbacks in the Kotlin init script instead of Kotlin DSL closure helpers.

This keeps the script on non-Groovy hook overloads while still running early enough to prepend plugin and project Maven proxy repositories.
@bric3 bric3 added type: refactoring comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release note tag: no release notes Changes to exclude from release notes and removed tag: no release note labels Jun 4, 2026
@bric3 bric3 marked this pull request as ready for review June 4, 2026 21:46
@bric3 bric3 requested review from a team as code owners June 4, 2026 21:46
@bric3 bric3 requested review from AlexeyKuznetsov-DD, amarziali, daniel-romano-DD, jandro996, leoromanovsky, typotter and vandonr and removed request for a team June 4, 2026 21:46
Copy link
Copy Markdown
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD left a comment

Choose a reason for hiding this comment

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

LGTM, but I have a feeling that SmokeTestAppEndToEndTest can be refactored a bit to reuse similar code in tests.

@bric3
Copy link
Copy Markdown
Contributor Author

bric3 commented Jun 5, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

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

View all feedbacks in Devflow UI.

2026-06-05 08:51:51 UTC ℹ️ Start processing command /merge


2026-06-05 08:51:58 UTC ℹ️ MergeQueue: waiting for PR to be ready

This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals. View in MergeQueue UI.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-06-05 12:12:09 UTC ℹ️ MergeQueue: merge request added to the queue

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


2026-06-05 13:20:16 UTC ℹ️ MergeQueue: This merge request was merged

@datadog-datadog-prod-us1-2

This comment has been minimized.

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 5, 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.96 s 13.89 s [-0.7%; +1.7%] (no difference)
startup:insecure-bank:tracing:Agent 12.85 s 13.04 s [-2.4%; -0.6%] (maybe better)
startup:petclinic:appsec:Agent 15.62 s 16.37 s [-12.9%; +3.7%] (unstable)
startup:petclinic:iast:Agent 16.54 s 16.53 s [-0.9%; +1.1%] (no difference)
startup:petclinic:profiling:Agent 15.71 s 16.34 s [-12.3%; +4.6%] (unstable)
startup:petclinic:tracing:Agent 15.82 s 15.70 s [-0.8%; +2.4%] (no difference)

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

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 387355b into master Jun 5, 2026
757 of 759 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the bdu/gradle9-smoke-test-app branch June 5, 2026 13:20
@github-actions github-actions Bot added this to the 1.64.0 milestone Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants