Status Update
Comments
je...@google.com <je...@google.com> #2
Luke - am I right in thinking this already fixed in AGP at head?
au...@google.com <au...@google.com> #3
Yes, all Android resource inputs can now only use relative path sensitivity, apart from custom resource directories located outside the project when data binding is enabled. The mentioned inputs in the stacktrace such as resourcesComputer.resources.fastdev.sourceDirectoriesAbsolute
have been removed at head.
je...@google.com <je...@google.com> #4
Is "head" == AGP 7.3.1?
or 7.3.0?
Could you please look at git history to see which version the fix is in?
je...@google.com <je...@google.com> #5
This change will be present in AGP 8.0.0-alpha01, since this changed happened very recently.
au...@google.com <au...@google.com> #6
any chance it could be cherrypicked to 7.3.1 or 7.4? Would be nice to see better remote cache hit rates.
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #7
After making more upgrades to simplify-build-failure.sh it tells me that with Gradle 6.6.1, some other tasks can be not UP-TO-DATE too, include :publicDocsTask
and :room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest
Potentially even more interesting is that with Gradle 6.6.1, when I run
./cleanBuild.sh -y :room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest
, I get this failure:
Execution failed for task ':room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest'.
> Could not resolve all files for configuration ':room:integration-tests:room-testapp-kotlin:debugAndroidTestRuntimeClasspath'.
> Failed to transform core-testing-2.0.1.aar (androidx.arch.core:core-testing:2.0.1) to match attributes {artifactType=android-dex, dexing-enable-desugaring=true, dexing-incremental-transform=false, dexing-is-debuggable=true, dexing-min-sdk=14, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not resolve all files for configuration ':room:integration-tests:room-testapp-kotlin:debugAndroidTestRuntimeClasspath'.
> Failed to transform core-common.jar (project :arch:core-common) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=7, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for IdentityTransform: /usr/local/google/workspace/aosp-androidx-git/out/androidx/arch/core-common/build/libs/core-common-2.2.0-alpha01.jar.
> File/directory does not exist: /usr/local/google/workspace/aosp-androidx-git/out/androidx/arch/core-common/build/libs/core-common-2.2.0-alpha01.jar
je...@google.com <je...@google.com> #8
The stacktrace in
I don't think that :room:integration-tests:room-testapp-kotlin
is doing anything weird but I'll see if I can find anything suspicious anyway.
If anybody else has any ideas about this, that would be super cool
ga...@google.com <ga...@google.com> #9
From #7, it is interesting that during dexing of androidx.arch.core:core-testing:2.0.1
we need a project artifact project :arch:core-common
(probably due to dependency resolution).
I'll try to create the same setup to reproduce.
Update: Filed this as
je...@google.com <je...@google.com> #10
Thanks a bunch!
simplify-build-failure.sh made some more discoveries last night which seem to suggest that the clean failure in
When I run:
./cleanBuild.sh -y :room:integration-tests:room-testapp-kotlin:packageDebugAndroidTest :room:integration-tests:room-testapp-kotlin:createReleaseCompatibleScreenManifests :room:room-testing:processDebugAndroidTestResources -PverifyUpToDate
I get
Execution failed for task ':room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest'.
> Ran two consecutive builds of the same tasks, and in the second build, observed task ':room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest' to be not UP-TO-DATE. This indicates that task ':room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest executed is below.
:room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest declares 1 output files. This seems fine.
:room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest declares 31 input files. The last modified input file is
/usr/local/google/workspace/aosp-androidx-git/out/.gradle/caches/transforms-2/files-2.1/a4dc446a21cc97f68d8151240995e702/core-testing-2.0.1-runtime
modified at Wed Sep 16 09:15:55 EDT 2020 (this build started at about Wed Sep 16 09:16:52 EDT 2020). This file is not declared as the output of any task in this build.
To reproduce this error you can try running `./gradlew :room:integration-tests:room-testapp-kotlin:mergeExtDexDebugAndroidTest -PverifyUpToDate`
je...@google.com <je...@google.com>
au...@google.com <au...@google.com> #11
au...@google.com <au...@google.com> #12
I tried gradle-6.7-20200923130742+0000 that gradle said has a fix for both
Sadly it still fails with:
Caused by: org.gradle.api.GradleException: Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-runner:dokkaKotlinTipOfTreeDocs' to be not UP-TO-DATE. This indicates that task ':docs-runner:dokkaKotlinTipOfTreeDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-runner:dokkaKotlinTipOfTreeDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-runner:dokkaKotlinTipOfTreeDocs executed is below.
:docs-runner:dokkaKotlinTipOfTreeDocs declares 1 output files. This seems fine.
Added these 1 inputs: $CHECKOUT/prebuilts/androidx/internal/androidx/paging/paging-common-ktx/3.0.0-alpha02/paging-common-ktx-3.0.0-alpha02.jar
Removed these 1 inputs: $CHECKOUT/prebuilts/androidx/internal/androidx/paging/paging-common-ktx/3.0.0-alpha06/paging-common-ktx-3.0.0-alpha06.jar
To reproduce this error you can try running `./gradlew :docs-runner:dokkaKotlinTipOfTreeDocs -PverifyUpToDate`
at androidx.build.uptodatedness.TaskUpToDateValidator$Companion$setup$1.execute(TaskUpToDateValidator.kt:143)
at androidx.build.uptodatedness.TaskUpToDateValidator$Companion$setup$1.execute(TaskUpToDateValidator.kt:107)
at org.gradle...
at jdk.internal.reflect.GeneratedMethodAccessor744.invoke(Unknown Source)
at java.base... at com.sun.proxy.$Proxy74.afterExecute(Unknown Source)
at org.gradle...
je...@google.com <je...@google.com> #13
I've started running ./development/simplify-build-failure/simplify-build-failure.sh --task "buildOnServer -PverifyUpToDate" "to be not UP-TO-DATE" --num-jobs auto
again with gradle-6.7-20200923130742+0000 from
je...@google.com <je...@google.com> #14
Progress so far from simplify-build-failure.sh is that with gradle-6.7-20200923130742+0000 from
./gradlew --no-daemon -PverifyUpToDate :docs-fake:javaPreCompilePublicRelease :distpublicDocs :createDiffArchiveForAndroidxLeanback
ap...@google.com <ap...@google.com> #15
Branch: master
commit 3c071f7f68cdcc02a736740dc017306d80888a68
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Mon Sep 28 14:13:32 2020
Doclava build now making binary identical .jar files across builds
to reduce the number of things that can change across builds and can need worrying about
Bug: 167569304
Test: ./gradlew build
Change-Id: I8b0b0ef8d62c3471b86463a45e9871833d23c448
M build.gradle
ap...@google.com <ap...@google.com> #16
Branch: master
commit fcf21604ce2a6d3bb9088289ed5dbbfd0e0a29c0
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Mon Sep 28 14:12:51 2020
Upgrading Doclava to build with Gradle 6.5.1
this doesn't seem to affect composite builds but should be less confusing in case anyone tries to invoke this build directly
Bug: 167569304
Test: ./gradlew build
Change-Id: Ib31d5ace7456a3d17fd48ea3a5eb9be658f07bd0
M gradle/wrapper/gradle-wrapper.properties
je...@google.com <je...@google.com> #18
Interestingly enough, when I add some logging into the simplification from #17, I find that the prebuiltSources function is getting called (
/usr/local/google/workspace/2-aosp-androidx-git/jeff-work/work (androidx-master-dev)$ diff log.pre.proc log.post.proc
56a57,64
> prebuiltSources searching for androidx.leanback:leanback:1.1.0-alpha04
> prebuiltSources searching for androidx.leanback:leanback-paging:1.1.0-alpha04
> prebuiltSources searching for androidx.leanback:leanback-tab:1.1.0-alpha04
> prebuiltSources searching for androidx.paging:paging-rxjava2-ktx:3.0.0-alpha06
> prebuiltSources searching for androidx.recyclerview:recyclerview:1.2.0-alpha05
> prebuiltSources searching for androidx.room:room-common:2.3.0-alpha02
> prebuiltSources searching for androidx.room:room-runtime:2.3.0-alpha02
> prebuiltSources searching for androidx.room:room-rxjava2:2.3.0-alpha02
je...@google.com <je...@google.com> #19
Also interesting is that if I remove the docs.provider({
wrapper around the call to prebuiltSources
, then I (based on a sample size of about 2) get a successful build with gradle-6.7-20200923130742+0000-bin.zip
, which could be a possible workaround if we need to our Gradle version soonish.
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #20
I haven't been able to narrow the cause down more closely than docs.provider
call in DiffAndDocs.kt )
Should I assume that the priority on this bug isn't high enough to warrant upgrading to a nightly version of Gradle but is high enough to keep investigating the root cause?
au...@google.com <au...@google.com> #21
Do we know which nightly version was it fixed in? Does it work with 6.7-rc-3
? That might be good enough in terms of stability.
je...@google.com <je...@google.com> #22
Good idea, 6.7-rc-3 probably does have a fix for
je...@google.com <je...@google.com> #23
Hmm, the intermittent failures to copy lint.jar have started blocking some other potential fixes for other things: in
Unfortunately we’re also encountering Gradle to hang sometimes with 6.7:
I did end up building my own AGP for local testing that includes ag/12344143 and that was easy enough.
If the biggest reason for upgrading Gradle is to unblock upgrading AGP to get the fix for
au...@google.com <au...@google.com> #24
We want to have a variety of fixes from AGP (including studio fixes for plugin download). I don't like locally build prebuilts.
je...@google.com <je...@google.com> #25
Hmm after doing git bisect run
inside Gradle itself to identify the first commit in Gradle that causes our build to fail, it seems that the first commit that reproduces the ‘not UP-TO-DATE’ error in
Detangle artifact transform nodes from `ResolveableArtifact` so that the initial set of files can be represented in some other way.
I haven’t yet figured out how this relates to the error that we’re seeing. I do notice that at
au...@google.com <au...@google.com> #26
je...@google.com <je...@google.com> #27
Interesting, removing the if
in if (artifact.getId().getComponentIdentifier() instanceof ProjectComponentIdentifier)
at
does seem to make our "not UP-TO-DATE" failure from
ga...@google.com <ga...@google.com> #28
This could be related to ArtifactBackedResolvedVariant.visitLocalArtifacts
and collect some more data. That may provide us with more details to create a sample repro project.
au...@google.com <au...@google.com> #29
It seems that 6.7-rc-5 is still having the same issue.
I think at this point, we should suppress docs tasks in our up to date check and just land the upgrade. We've been stuck on this for too long.
je...@google.com <je...@google.com> #30
Have we double-checked that the generated documentation contains the relevant files? Another option could be to explicitly add the relevant dependency to make sure it shows up deterministically in the docs
je...@google.com <je...@google.com> #31
Re
I found that in our build, (artifact.getId().getComponentIdentifier() instanceof ProjectComponentIdentifier)
is always false
, although I haven’t yet made progress on finding what other data to collect.
Re making a simpler reproduction test case, I’ve made a couple more improvements to simplify-build-failure.sh and it’s binary searching individual lines in buildSrc in hopes of identifying the problem more specifically
je...@google.com <je...@google.com> #32
1. Have a project (paging/runtime) that will be conflict-resolved with a prebuilt (androidx.paging:paging-runtime:3.0.0-alpha02)
2. Have a project (leanback/leanback-paging) that depends on a prebuilt (androidx.paging:paging-runtime:3.0.0-alpha02) that will conflict with the project from #1
3. Have a third project (docs-fake) that tries to depend on different prebuilts that will conflict with the above (androidx.paging:paging-runtime:3.0.0-alpha07) and also the above projects (paging/runtime, and, and leanback/leanback-paging)
I’m still investigating simplifying some other details like extraneous files in buildSrc, along with making sure that it can also reproduce from an empty out/ dir and build/ dirs rather than specific repopulated dirs.
I’m also still investigating whether there’s anything specific about the timing of the calls in DiffAndDocs.kt that are also required for reproducing the error
je...@google.com <je...@google.com> #33
4. Have the third project (docs-fake) specify evaluationDependsOn(the first project (paging/runtime))
je...@google.com <je...@google.com> #34
DiffAndDocs registerPrebuilts extension 'androidx'
paging/runtime evaluation start
paging/runtime evaluation end
docs-fake evaluation start
docs-fake evaluation end
DiffAndDocs registerPrebuilts dependencyText = androidx.paging:paging-runtime:3.0.0-alpha07
DiffAndDocs registerPrebuilts extension 'androidx'
leanback evaluation starting
leanback evaluation ending
BUILD SUCCESSFUL in 1m 7s
docs-fake evaluation start
DiffAndDocs registerPrebuilts extension 'androidx'
paging/runtime evaluation start
paging/runtime evaluation end
docs-fake evaluation end
DiffAndDocs registerPrebuilts dependencyText = androidx.paging:paging-runtime:3.0.0-alpha07
DiffAndDocs registerPrebuilts extension 'androidx'
leanback evaluation starting
leanback evaluation ending
je...@google.com <je...@google.com> #35
It also seems to be the case that eagerly resolving `releaseVariant.getCompileClasspath(null)` is correlated with no longer observing this problem in my smaller example
I'm still investigating whether this makes the original problem stop happening and what other followups there should be. Maybe we can ask Gradle to evaluate projects in either a deterministic or a uniformly random order?
je...@google.com <je...@google.com> #36
Unfortunately, the way that
I started to look into whether we can just exempt :publicDocsTask from out task-up-to-date validation, but then I found that lots of generateApi tasks were also having similar not-up-to-date problems
je...@google.com <je...@google.com> #37
ap...@google.com <ap...@google.com> #38
Branch: androidx-master-dev
commit b487c704a10b8cab90caef7021fa1588468ff25b
Author: Aurimas Liutikas <aurimas@google.com>
Date: Thu Oct 08 08:46:19 2020
Rewrite androidx documentation generation
Move documentation to two standalone projects that uses
artifacts from the projects to build the full docs.
We now have:
:docs-public
:docs-tip-of-tree
with corresponding tasks:
dokkaKotlinDocs
doclavaDocs
Test: build both ./gradlew docs-public:dokkaKotlinDocs dokkaKotlinPublicDocs
meld ../../out/androidx/docs-runner/build/dokkaKotlinPublicDocs/ ../../out/androidx/docs-public/build/dokkaKotlinDocs
build both ./gradlew docs-public:doclavaDocs publicDocsTask
meld ../../out/androidx/build/javadoc/public/online ../../out/androidx/docs-public/build/javadoc
Bug: 167569304
Change-Id: I1d857226c29b24d0ac8ef05d1a6e4612803005d8
M buildSrc/src/main/kotlin/androidx/build/AndroidXRootPlugin.kt
M buildSrc/src/main/kotlin/androidx/build/DiffAndDocs.kt
A buildSrc/src/main/kotlin/androidx/build/docs/AndroidXDocsPlugin.kt
M buildSrc/src/main/kotlin/androidx/build/dokka/Dokka.kt
A buildSrc/src/main/resources/META-INF/gradle-plugins/AndroidXDocsPlugin.properties
M development/build_log_simplifier/messages.ignore
A docs-public/build.gradle
A docs-public/frameworks/support/README
A docs-public/frameworks/support/samples
A docs-public/src/main/AndroidManifest.xml
A docs-tip-of-tree/build.gradle
A docs-tip-of-tree/frameworks/support/README
A docs-tip-of-tree/frameworks/support/samples
A docs-tip-of-tree/src/main/AndroidManifest.xml
M settings.gradle
je...@google.com <je...@google.com> #39
Also interesting is that while still on Gradle 6.5.1, we've managed to reproduce what looks like a similar error in the (new) docs-public project:
Execution failed for task ':docs-public:dokkaKotlinDocs'.
> Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-public:dokkaKotlinDocs' to be not UP-TO-DATE. This indicates that task ':docs-public:dokkaKotlinDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-public:dokkaKotlinDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-public:dokkaKotlinDocs executed is below.
:docs-public:dokkaKotlinDocs declares 1 output files. This seems fine.
Added these 1 inputs: $OUT_DIR/.gradle/caches/transforms-2/files-2.1/101df836280a896f8f52be7764015985/lifecycle-viewmodel-2.3.0-alpha06-runtime.jar
Removed these 1 inputs: $OUT_DIR/.gradle/caches/transforms-2/files-2.1/638cf4bde7dce693a823d4a83475bac3/lifecycle-viewmodel-2.3.0-beta01-runtime.jar
which seems to support the idea that the new version of Gradle may just exacerbate some existing, infrequent problem
ap...@google.com <ap...@google.com> #40
Branch: androidx-master-dev
commit 79d7293d3fa0931179df52191826fec2d032d8b5
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Tue Sep 15 11:23:23 2020
simplify-build-failure finding fewest required tasks before starting to binary search the files
in case the task given by the user isn't the fastest task required to reproduce the error
Bug: 132727976
Bug: 167569304
Test: ./development/simplify-build-failure/simplify-build-failure.sh --task "buildOnServer" "Xlint" --num-jobs auto # and see that it runs more quickly than runing buildOnServer lots of times
Change-Id: I5270500932292e9f3dcdc361e22fd0f208fcaea8
M development/simplify-build-failure/simplify-build-failure.sh
ap...@google.com <ap...@google.com> #41
Branch: androidx-master-dev
commit 31a5fa9bf9d379a775fd5406c4c78d944d2da3e6
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Tue Sep 15 09:53:56 2020
simplify-build-failure.sh adding --clean
Also attempting to autodetect when cleaning is necessary
Bug: 132727976
Bug: 167569304
Test: ./development/simplify-build-failure/simplify-build-failure.sh --task ":core:core:assembleDebug" "Xlint" --clean
Change-Id: Ifbdc2cbaff36b693add384aca7b9c00309781d10
A development/simplify-build-failure/impl/grepOrTail.sh
M development/simplify-build-failure/simplify-build-failure.sh
je...@google.com <je...@google.com> #42
Interestingly enough, presubmit for what looks like an unrelated change: aosp/1478907 failed with a similar error:
> Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-public:dokkaKotlinDocs' to be not UP-TO-DATE. This indicates that task ':docs-public:dokkaKotlinDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-public:dokkaKotlinDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-public:dokkaKotlinDocs executed is below.
:docs-public:dokkaKotlinDocs declares 1 output files. This seems fine.
Added these 1 inputs: $OUT_DIR/.gradle/caches/transforms-2/files-2.1/1d60826cd92f73dde6c3a293aefb5e2f/paging-runtime-ktx-3.0.0-alpha08-runtime.jar
Removed these 1 inputs: $OUT_DIR/.gradle/caches/transforms-2/files-2.1/4ec147f8f8ddd0a8b1e88e31fd38b4ce/paging-rxjava2-ktx-3.0.0-alpha08-runtime.jar
also interesting is that the artifact ids for the added and removed artifacts are different in this case: paging-runtime-ktx-3.0.0-alpha08-runtime.jar vs paging-rxjava2-ktx-3.0.0-alpha08-runtime.jar
au...@google.com <au...@google.com> #43
It seems like the issue is still there. Should we except these docs tasks from up to date validation while we investigate?
ap...@google.com <ap...@google.com> #44
Branch: androidx-master-dev
commit af5a5f9b9dda89be371316c62a16fc2a927d35d6
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Thu Oct 29 12:01:51 2020
Temporary exemption for dokkaKotlinDocs task from TaskUpToDateValidator
Both :docs-tip-of-tree:dokkaKotlinDocs and :docs-tip-of-tree:dokkaKotlinDocs seem to be occasionally no UP-TO-DATE . This change exempts these tasks from this validation until we figure out how to fix it
Bug: 167569304
Test: Treehugger runs busytown/androidx.sh
Change-Id: I829cceb1703ba4aeb343bdff37a14426c523526e
M buildSrc/src/main/kotlin/androidx/build/uptodatedness/TaskUpToDateValidator.kt
ap...@google.com <ap...@google.com> #45
Branch: androidx-master-dev
commit a4f2155e52579fa26b46366d2d9f658627f34ba0
Author: Jeff Gaston <jeffrygaston@google.com>
Date: Wed Nov 18 14:00:05 2020
TaskUpToDateValidator now also enumerating task inputs in the second build
So that we don't need to worry about whether enabling the TaskUpToDateValidator itself is triggering inconsistencies in Gradle
The purpose of the TaskUpToDateValidator is:
More about
Making sure that Gradle is deterministic
Making sure that tasks are up-to-date when a developer reruns them
Less about
Making sure that the inputs of a task don't change when there are changes to build configuration logic,
Even if those changes are simply to enumerate task inputs at another time in the build
Also, even when we detect that enumerating the inputs of a task causes a change in task inputs, we haven't managed to do anything about the inconsistency
Bug: 167569304
Test: Treehugger runs busytown/androidx.sh, it should still pass
Test: cherry-pick aosp/1498949 and its topic, run busytown/androidx.sh, see that there are no TaskUpToDateValidator errors
Test: ./gradlew :help -PverifyUpToDate # and see that this still fails, saying :help is not up-to-date
Change-Id: I1470674fb09341ab7eb7f570e4e024b97bb30e86
M buildSrc/src/main/kotlin/androidx/build/uptodatedness/TaskUpToDateValidator.kt
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #46
Hmm it looks like
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':docs-public:doclavaDocs'.
> Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-public:doclavaDocs' to be not UP-TO-DATE. This indicates that task ':docs-public:doclavaDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-public:doclavaDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-public:doclavaDocs executed is below.
:docs-public:doclavaDocs declares 1 output files. This seems fine.
Added these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/4726cf7e6f295447a9ff3d934342d810/paging-rxjava2-ktx-3.0.0-alpha11-runtime.jar
Removed these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/e978e225a2665a17da44820ffa23604a/paging-runtime-ktx-3.0.0-alpha11-runtime.jar
To reproduce this error you can try running `./gradlew :docs-public:doclavaDocs -PverifyUpToDate`
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':docs-public:doclavaDocs'.
at org.gradle...
Caused by: org.gradle.api.GradleException: Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-public:doclavaDocs' to be not UP-TO-DATE. This indicates that task ':docs-public:doclavaDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-public:doclavaDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-public:doclavaDocs executed is below.
:docs-public:doclavaDocs declares 1 output files. This seems fine.
Added these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/4726cf7e6f295447a9ff3d934342d810/paging-rxjava2-ktx-3.0.0-alpha11-runtime.jar
Removed these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/e978e225a2665a17da44820ffa23604a/paging-runtime-ktx-3.0.0-alpha11-runtime.jar
To reproduce this error you can try running `./gradlew :docs-public:doclavaDocs -PverifyUpToDate`
at androidx.build.uptodatedness.TaskUpToDateValidator$Companion$setup$2.execute(TaskUpToDateValidator.kt:191)
at androidx.build.uptodatedness.TaskUpToDateValidator$Companion$setup$2.execute(TaskUpToDateValidator.kt:138)
at org.gradle...
at jdk.internal.reflect.GeneratedMethodAccessor818.invoke(Unknown Source)
at java.base...
at com.sun.proxy.$Proxy77.afterExecute(Unknown Source)
at org.gradle...
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':docs-tip-of-tree:doclavaDocs'.
> Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-tip-of-tree:doclavaDocs' to be not UP-TO-DATE. This indicates that task ':docs-tip-of-tree:doclavaDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-tip-of-tree:doclavaDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-tip-of-tree:doclavaDocs executed is below.
:docs-tip-of-tree:doclavaDocs declares 1 output files. This seems fine.
Added these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/4726cf7e6f295447a9ff3d934342d810/paging-rxjava2-ktx-3.0.0-alpha11-runtime.jar
Removed these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/e978e225a2665a17da44820ffa23604a/paging-runtime-ktx-3.0.0-alpha11-runtime.jar
To reproduce this error you can try running `./gradlew :docs-tip-of-tree:doclavaDocs -PverifyUpToDate`
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':docs-tip-of-tree:doclavaDocs'.
at org.gradle...
Caused by: org.gradle.api.GradleException: Ran two consecutive builds of the same tasks, and in the second build, observed task ':docs-tip-of-tree:doclavaDocs' to be not UP-TO-DATE. This indicates that task ':docs-tip-of-tree:doclavaDocs' does not declare inputs and/or outputs correctly.
You can check why Gradle executed :docs-tip-of-tree:doclavaDocs by passing the '--info' flag to Gradle and then searching stdout for output generated immediately before the task began to execute.
Our best guess for the reason that :docs-tip-of-tree:doclavaDocs executed is below.
:docs-tip-of-tree:doclavaDocs declares 1 output files. This seems fine.
Added these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/4726cf7e6f295447a9ff3d934342d810/paging-rxjava2-ktx-3.0.0-alpha11-runtime.jar
Removed these 1 inputs: $GRADLE_USER_HOME/caches/transforms-2/files-2.1/e978e225a2665a17da44820ffa23604a/paging-runtime-ktx-3.0.0-alpha11-runtime.jar
It’s interesting that I noticed this (about 5 days) after aosp/1524922 was submitted , as if some parallelism within a project is a prerequisite for reproducing the problem
Description
Aurimas made a bunch of progress athttps://android-review.googlesource.com/c/platform/frameworks/support/+/1412783 but found that it introduced some flakes: