Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

Updating Gradle configuration doesn't update values in Talaiot report

Open wzieba opened this issue 1 year ago • 2 comments

👋 hi there, I think I located an issue in the plugin related to configuration cache.

Actual behavior

When setting a new value of Gradle configuration, like org.gradle.workers.max or org.gradle.configureondemand and running a build that has a configuration cache, Talaiot report shows old values.

Expected behavior

Report from Talaiot always shows correct values of Gradle configuration options.


Here is the reproduction https://github.com/cdsap/Talaiot/compare/master...wzieba:Talaiot:configuration_cache_issue?expand=1

It seems that when a project uses a configuration cache, the values taken from Gradle#startParameters (or maybe other places as well) are not updated.

wzieba avatar Feb 26 '24 11:02 wzieba

Unfortunately, it might not be possible to fix: https://discuss.gradle.org/t/is-there-a-way-to-get-up-to-date-gradle-start-parameters-with-configuration-cache/47806

Maybe there could be a warning logged somewhere or in the README?

wzieba avatar Feb 28 '24 09:02 wzieba

good idea, will update the readme. Thanks for checking this

cdsap avatar Mar 02 '24 02:03 cdsap