Execution Optimization Enablement via Explicit Cross‑Module Test Result Dependency Modeling #7924
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.
Summary
This change restores and stabilizes Gradle execution optimizations for the aggregated test reporting workflow by explicitly declaring all upstream Test tasks as both inputs and dependencies of the :combineReports TestReport task. It eliminates the prior Gradle validation warning caused by implicit consumption of test result outputs (notably from :geode-old-versions:test) and removes a redundant late graph mutation hook.
Background (Problem)
Gradle emitted a validation warning of the form: Task ':combineReports' uses the output of task ':geode-old-versions:test' without declaring an explicit or implicit dependency. Execution optimizations have been disabled.
Implications
Root Cause
combineReports read binary test result directories generated by multiple subproject Test tasks without declaring a formal task dependency edge and input relationship. Gradle 7+ detects this implicit file coupling and defensively disables optimizations.
What Changed
The combineReports task now:
Removed the redundant trailing gradle.taskGraph.whenReady { ... } block that previously re-applied the same reportOn / dependsOn wiring (no functional value, added noise).
Retained the existing whenReady block.
Outcome
Verification (Performed / Expected)
Risk Assessment
Reviewer Checklist
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
Has your PR been rebased against the latest commit within the target branch (typically
develop
)?Is your initial contribution a single, squashed commit?
Does
gradlew build
run cleanly?Have you written or updated unit tests to verify your changes?
If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?