Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

Unexpected behavior in project with enabled configuration cache

Open PStrelchenko opened this issue 3 years ago • 5 comments

We want to send build metrics with Talaiot in our project with enabled Gradle's configuration cache. We noticed that when the project use saved configuration cache entry, talaiot will not send any metrics (no output from any publishers in the log). For me, it is not expected behavior =)

Maybe I've made some mistakes with Talaiot configuration, but I can't find where I was wrong.

I've prepared simple example repo with this behavior.

Thanks in advance.

PStrelchenko avatar Oct 20 '21 08:10 PStrelchenko

Hi @PStrelchenko, I tested locally and I can reproduce it. It's not the expected behaviour. We start the investigation. Thanks for the report.

cdsap avatar Oct 20 '21 14:10 cdsap

Hi @cdsap ! Thanks for quick response! We will wait for news from you! :+1

PStrelchenko avatar Oct 20 '21 15:10 PStrelchenko

@PStrelchenko I have some updates, the issue is we are registering a build listener in the plugin. This is incompatible with Configuration Cache. I've started working on the possible migration to BuildServices(the recommended way to implement it). I hope to have something ready for next week.

cdsap avatar Oct 22 '21 03:10 cdsap

Hi @cdsap ! Great news, thanks 🙏

PStrelchenko avatar Oct 22 '21 06:10 PStrelchenko

Hi @cdsap , am I correct that #315 is not enough to fully support configuration cache? If yes, do you have any list of required actions to do? I'd like to understand if there is something I can help with.

MyDogTom avatar Mar 17 '22 08:03 MyDogTom