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

0.76.0 breaks when unit tests are disabled for a variant #452

Closed
gabrielittner opened this issue Aug 26, 2021 · 4 comments
Closed

0.76.0 breaks when unit tests are disabled for a variant #452

gabrielittner opened this issue Aug 26, 2021 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@gabrielittner
Copy link
Contributor

Build scan link

The reproducer of #423 can be used after bumping the plugin version there

Plugin version

0.76.0

Gradle version

7.0 and 7.2

(Optional) Android Gradle Plugin (AGP) version

4.2.0 and 7.0.1

Describe the bug

I've disabled the release variant and get:

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':settings:adviceRelease' (type 'AdvicePerVariantTask').
  - Type 'AdvicePerVariantTask' property 'testCompileGraph' specifies file '/Users/gabriel/Downloads/android-test/settings/build/reports/dependency-analysis/release/graph/graph-test-compile.json' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

To Reproduce
Steps to reproduce the behavior:

  1. Disable unit tests for a variant
  2. Run buildHealth

Expected behavior

Succeeds without error.

@autonomousapps
Copy link
Owner

Thanks. I really thought I had fixed that!

@gabrielittner
Copy link
Contributor Author

The original issue was fixed in 0.75, this one then started happening in 0.76

@autonomousapps
Copy link
Owner

autonomousapps commented Aug 28, 2021 via email

@autonomousapps
Copy link
Owner

Resolved via related PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants