autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

ComputeUsagesTask taking 30+ minutes to execute when it used to take 30 seconds for the same project

Open
#1,136 8 comments 0 reactions 0 assignees View on GitHub
more information needed performance toolchain:android
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

**Build scan link**
I have buildscans on company's internal instance if need info.
![CleanShot 2024-02-20 at 12 55 05@2x](https://github.com/autonomousapps/dependency-analysis-gradle-plugin/assets/2845460/9f7f0742-787a-4c9e-a3a0-6af313424895)
![CleanShot 2024-02-20 at 12 55 27@2x](https://github.com/autonomousapps/dependency-analysis-gradle-plugin/assets/2845460/5a180843-9377-4e5c-9cd4-5afe45512b8d)

**Plugin version**
Seeing in 1.29.0 and 1.30.0

**Gradle version**
8.6

**JDK version**
17

**(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version**
1.9.20

**(Optional) Android Gradle Plugin (AGP) version**
8.1.4

**Describe the bug**
When running `projectHealth`, `ComputeUsagesTask` increased from ~30s to ~40m after upgrading to version 1.29.0 on our main `app` module.

**To Reproduce**
Steps to reproduce the behavior:
1. ...

**Expected behavior**

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start with ComputeUsagesTask as invoked by projectHealth, using the reported plugin versions 1.29.0 and 1.30.0, Gradle 8.6, JDK 17, Kotlin 1.9.20, and AGP 8.1.4. Compare execution time for the affected app module with the prior roughly 30-second behavior and use the available internal build scans to identify the regression; done means the same project no longer takes about 40 minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.