Skip to content

Minor tweaks to agent Gradle logic#19711

Closed
andrross wants to merge 1 commit intoopensearch-project:mainfrom
andrross:agent-gradle-configuration
Closed

Minor tweaks to agent Gradle logic#19711
andrross wants to merge 1 commit intoopensearch-project:mainfrom
andrross:agent-gradle-configuration

Conversation

@andrross
Copy link
Member

@andrross andrross commented Oct 21, 2025

While doing some other Gradle changes I ran into some really odd failures that ultimately led me down a rabbit hole that resulted in some changes that better match best practices:

  • Change distribution/build.gradle to use an agent configuration as opposed to taking a direct task dependency. This is how it gets artifacts from other subprojects and is a Gradle best practice.
  • Defer the evalution of the agent jar file until task execution which also makes the logic less brittle to other Gradle changes.
  • Make prepareAgent depend on jar as opposed to the other way around. This removes the need for other projects that need the jar file to depend on anything other than the jar task.

Check List

  • Functionality includes testing.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@andrross andrross requested a review from a team as a code owner October 21, 2025 23:54
@github-actions
Copy link
Contributor

❌ Gradle check result for 86ee553: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@andrross andrross force-pushed the agent-gradle-configuration branch from 86ee553 to 12c6702 Compare October 24, 2025 18:33
@github-actions
Copy link
Contributor

✅ Gradle check result for 12c6702: SUCCESS

@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.19%. Comparing base (2fddcd8) to head (57e3db6).
⚠️ Report is 221 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19711      +/-   ##
============================================
- Coverage     73.25%   73.19%   -0.07%     
+ Complexity    71612    71542      -70     
============================================
  Files          5785     5785              
  Lines        326905   326899       -6     
  Branches      47280    47280              
============================================
- Hits         239480   239264     -216     
- Misses        68220    68376     +156     
- Partials      19205    19259      +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrross andrross force-pushed the agent-gradle-configuration branch from 12c6702 to 2a4cb7a Compare October 24, 2025 20:09
@andrross andrross marked this pull request as draft October 24, 2025 20:09
@github-actions
Copy link
Contributor

❌ Gradle check result for 2a4cb7a: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@andrross andrross force-pushed the agent-gradle-configuration branch from 2a4cb7a to 593dca4 Compare October 31, 2025 20:32
@github-actions
Copy link
Contributor

❌ Gradle check result for 593dca4: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@andrross andrross force-pushed the agent-gradle-configuration branch from 593dca4 to 748e6cc Compare October 31, 2025 21:25
@github-actions
Copy link
Contributor

❌ Gradle check result for 748e6cc: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

While doing some other Gradle changes I ran into some really odd
failures that ultimately led me down a rabbit hole that resulted in some
changes that better match best practices:

- Change distribution/build.gradle to use an agent configuration as
  opposed to taking a direct task dependency. This is how it gets
  artifacts from other subprojects and is a Gradle best practice.
- Defer the evalution of the agent jar file until task execution which
  also makes the logic less brittle to other Gradle changes.
- Make `prepareAgent` depend on `jar` as opposed to the other way
  around. This removes the need for other projects that need the jar
  file to depend on anything other than the `jar` task.

Signed-off-by: Andrew Ross <andrross@amazon.com>
@andrross andrross force-pushed the agent-gradle-configuration branch from 15c5fa9 to 57e3db6 Compare November 13, 2025 00:41
@github-actions
Copy link
Contributor

✅ Gradle check result for 57e3db6: SUCCESS

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Dec 21, 2025
@andrross andrross closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog stalled Issues that have stalled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments