Repository navigation
[tests] Enable GradleFBProj resolution diagnostics - #13336
Conversation
Context: #13278 GradleFBProj intermittently fails to resolve com.android.application version 9.1.1 from dotnet-public-maven. Builds 1640664 and 1644966 later passed the same configurations unchanged, but their logs do not expose enough request or exception detail to distinguish repository availability, transport, or cache problems. Enable Gradle info logging and stacktraces through the existing per-build environment argument, preserving inherited GRADLE_OPTS. Existing failed-test log and binlog attachments retain the diagnostics without changing the Gradle task, generated projects, or CI pipeline. This is diagnostic only: the historical cause remains unknown, and no retry or repository fallback is introduced. Existing CoreCLR Debug/Release cases pass with both an initially empty and a warm Gradle home. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 60dd9e7a-ed18-4c70-8bb2-a8e60d6ce5e1
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change adding diagnostics for intermittent Gradle plugin-resolution failures.
No open issues 🎉
What changed in this PR
Adds diagnostics to the GradleFBProj integration test to help investigate intermittent Gradle plugin-resolution failures tracked in #13278. This improves failure visibility without attempting to fix the underlying resolution problem.
Changes:
- Enables Gradle info logging and stacktraces through per-build
GRADLE_OPTS. - Preserves inherited
GRADLE_OPTSwithout changing Gradle tasks, wrappers, or attachment handling.
| File | Description |
|---|---|
| tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs | Adds diagnostic Gradle JVM properties to the GradleFBProj build environment. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the complete changed file and the material build-environment, Gradle task/wrapper, pinned logging-property, runtime-configuration, and failed-build log/attachment paths, including a separate final search for independent blockers. The per-build GRADLE_OPTS preserves inherited options and enables the intended diagnostics without changing tasks or repository behavior. No high-confidence blocking issue remains in this bounded static review. This is diagnostic only; no builds, tests, historical-failure reproduction, or end-to-end attachment validation were independently executed.
Context: #13278
GradleFBProjintermittently fails to resolvecom.android.applicationversion9.1.1fromdotnet-public-maven. Builds 1640664 and 1644966 later passed the same configurations unchanged, but their logs do not expose enough request or exception detail to distinguish repository availability, transport, or cache problems.Enable Gradle info logging and stacktraces through the existing per-build environment argument, preserving inherited
GRADLE_OPTS. The wrapper passes these JVM properties to Gradle as the equivalents of--info --stacktrace, and existing failed-test log and binlog attachments retain the output. No Gradle task, generated-project, wrapper, pipeline, or attachment changes are needed.This is diagnostic only, not a fix for the historical resolution failure. It adds no retry, repository fallback, cache invalidation, helper script, or new test case. Gradle may still report a generic plugin-resolution exception without exposing the underlying HTTP failure.
Validation
make prepare CONFIGURATION=Release— passed.make all CONFIGURATION=Release— compiled the solution and test assembly, then failed configuring the local workload because the extra API 37.1 reference assembly had not been built.make leeroy CONFIGURATION=Release— passed, including extra API levels and local workload setup../dotnet-local.sh test bin/TestRelease/MSBuildDeviceIntegration/net10.0/MSBuildDeviceIntegration.dll --filter 'FullyQualifiedName~InstallAndRunTests.GradleFBProj&Name~CoreCLR'— passed 2/2 CoreCLR Debug/Release cases with an initially empty, isolatedGRADLE_USER_HOME, then 2/2 reusing that warm home. Both runs setRUNNINGONCI=true; log/result-file arguments are omitted here../gradlew :Library:item09DiagnosticMissingTask --no-daemon— an intentionally nonexistent task, run in the generated project with the same logging properties, produced info-level project evaluation and aTaskSelectionExceptionstacktrace; exit status 1, as expected.The historical plugin-resolution failure did not reproduce. NativeAOT and the end-to-end failed-test attachment path were not exercised.
Pull Request
title and
description
should follow the
commit-messages.mdworkflow documentation, and in particular should include:The issue above is context, not a closing reference. Validation uses existing integration tests; no new unit tests are added.