Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency verification error reporting incorrect task name #20958

Open
mathjeff opened this issue Jun 7, 2022 · 0 comments
Open

dependency verification error reporting incorrect task name #20958

mathjeff opened this issue Jun 7, 2022 · 0 comments
Labels
a:bug in:dependency-verification trustkey truststore checksum signature

Comments

@mathjeff
Copy link
Contributor

mathjeff commented Jun 7, 2022

Expected Behavior

When Gradle observes a dependency verification error and Gradle outputs the name of the failing task, that task should be the failing task

Current Behavior

We've encountered a case where Gradle outputs a different task name than the one required to reproduce the error.
See the repro at https://github.com/mathjeff/gradle-samples/tree/master/signature-verification-reports-wrong-task

Context

When we encounter a dependency verification error, it helps us to investigate it and address it if we can easily reproduce it by running ./gradlew someTask. It was more difficult for us to diagnose this error because the task listed by Gradle wasn't the task required to reproduce the error.

We originally observed this behavior with the change at https://android-review.googlesource.com/c/platform/frameworks/support/+/2105845/5 and build error at https://ci.android.com/builds/pending/P35431944/androidx_incremental/latest/view/logs/build_error.log .

Steps to Reproduce

I've uploaded the simplest repro I could find to https://github.com/mathjeff/gradle-samples/tree/master/signature-verification-reports-wrong-task

Your Environment

Initial problematic scan which printed the wrong task name when running ./gradlew buildOnServer
https://scans.gradle.com/s/lmhmbzzhee7cu

Passing scan when running just the task name mentioned in the previous scan (./gradlew :compose:foundation:foundation-lint:jar)
https://scans.gradle.com/s/ejdnwya45w3u2

Failing scan when instead running :compose:foundation:foundation-lint:ktlint
https://gradle.com/s/6bv45bhs56nto

@h0tk3y h0tk3y added in:dependency-verification trustkey truststore checksum signature and removed to-triage labels Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug in:dependency-verification trustkey truststore checksum signature
Projects
None yet
Development

No branches or pull requests

2 participants