Comments (6)
👋 @autonomousapps !
I too I am currently experiencing similar issues when running the buildHealth
task. I am working on this woocommerce-android open source project and trying to set-up the plugin. It seems to be taking too long, the computeActualUsage*
per se. Previously, about a year ago, when I tried running the plugin again, everything worked as expected (much faster).
You will find these changes within the build/dependency-analysis-android-gradle-plugin branch, just in case you would like to clone/pull the repo/branch and experienced it for yourself.
Note
Pulling this branch you will also notice that in order to make buildHealth
more efficient, I had to exclude all other variants using a custom configuration (commit). This is because the dependency.analysis.android.ignored.variants=variant1,variant2,variant3
flag is not working as expected for this project. I'll leave another comment about it within #945.
Build scan link (GRADLE_PROFILER
)
https://gradle.com/s/j73i5752pltng
Plugin version
1.32.0
Gradle version
8.2.1
JDK version
openjdk 17.0.11 2024-04-16
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
1.9.22
(Optional) Android Gradle Plugin (AGP) version
8.1.0
You could use gradle-profiler to profile the build for CPU and memory usage and see what seems to be taking so long.
I am also providing you with a profile.log
report, which I generated running the below gradle-profile
command, you'll find the build scans links within:
gradle-profiler --profile buildscan --project-dir ../woocommerce-android buildHealth
I hope all this info will somewhat help you with your investigation, and thank you! 🙏
from dependency-analysis-gradle-plugin.
Thanks for the issue. My first thought was memory, and it still might be the case. Do you have a build scan you can share?
You could use gradle-profiler to profile the build for CPU and memory usage and see what seems to be taking so long. I would run just the task in question to keep the profile useful. I'm happy to take a look if you're willing to share the reports. I have done so in the past.
from dependency-analysis-gradle-plugin.
hey @autonomousapps , I sent you some data by email a few days ago using your email listed on your profile. Did you check that? I will try to find time for a better analyses if it is not enough.
from dependency-analysis-gradle-plugin.
hey @autonomousapps , I sent you some data by email a few days ago using your email listed on your profile. Did you check that? I will try to find time for a better analyses if it is not enough.
I did see the email, thanks!
from dependency-analysis-gradle-plugin.
👋 @autonomousapps !
To follow-up on this, today I was trying older versions on the plugin and the problem persisted till version 1.30.0.
Now, that doesn't mean that version 1.29.0 worked, actually this version produced a could not determine the dependencies of task
kind of failure (see dependency-analysis-failure-v1.29.0.txt).
But then, version 1.28.0 worked as expected, with the buildHealth
task no longer being stuck in computeActualUsage
phase for minutes. 🤔
I hope the above will help you somehow and many thanks for all the work with this plugin! 🥇
from dependency-analysis-gradle-plugin.
--profile buildscan
isn't super userful for investigating this, unfortunately. I need to know what's happening in the CPU -- the build scan is too coarse grained. Can someone run gradle-profiler --profile async-profiler
on their project?
from dependency-analysis-gradle-plugin.
Related Issues (20)
- Upgrade Moshi dependency to avoid CVE-2022-3635
- Plugin creates variant ambiguity errors with JVM Test Suite Plugin + Jacoco Aggregation Plugin HOT 3
- FR: Suggest converting an android project to a JVM-only project if possible HOT 1
- synthesizeDependenciesMain is failing with exception when having a file collection with an absolute file on windows as dependency
- Make FindDeclaredProcsTask use the JDK of the configured Java toolchain to load classes HOT 1
- ClassNotFoundException when adding plugin to project HOT 1
- File-level private vals of a type from an external dependency result in that dependency requiring to be an api dependency HOT 3
- Could not resolve project -> when a submodule is aar artifact HOT 3
- Unable to find method KotlinModuleMetadata.getKmModule() , explodeJarRelease is failing HOT 1
- False positive HOT 2
- Add wildcard support for exclusion rules HOT 11
- Task ':explodeCodeSource' uses this output of task ':kspKotlin' without declaring an explicit or implicit dependency HOT 3
- Run plugin for some specific modules only HOT 1
- Support the latest stable AGP version (8.4.1)
- Feature Request: Advice on modules that could/should be combined
- Add an option to shush the AGP compatibility warning HOT 3
- Adviced to add transitive which is exposed as Kotlin default value in used lib function
- `reason` task only shows used classes if there are no exposed classes
- Support coreLibraryDesugaring configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-analysis-gradle-plugin.