gnag icon indicating copy to clipboard operation
gnag copied to clipboard

Run different tools in parallel

Open szaboa opened this issue 6 years ago • 6 comments

Hi, I am wondering if it's possible to run these different static code analyzers in parallel? One use case would be to define distinct jobs for let's say FindBug, PMD, Android Lint etc. and execute them in parallel inside a CI workflow.

Does this make sense? Or it would help? I assume that right know these tools doesn't share any cache or re-use partial result from each other. Am I right?

How could I separate this one gradle task into smaller ones, to be able to run them in parallel?

szaboa avatar Jan 27 '19 16:01 szaboa

As a data point, what sort of size project are you running Gnag on, how many build variants does it have, and how long does gnagCheck take to run (approximately)?

In theory, I think you're right; it should be possible to run these checks in parallel and speed things up a bunch.

In practice, I don't believe the current architecture of this plugin makes that possible. Neither @btkelly or I have a lot of time to devote to Gnag at the moment, but we'd definitely be happy to consider a proposal in the form of a PR if you want to take a crack at the necessary changes. Let us know if that's something that interests you and we can support where needed.

stkent avatar Jan 28 '19 05:01 stkent

Well this was just a theoretical question, right now I am just experimenting with different CI workflows on Android so I can't say that the current task is slow, but I am pretty sure I will use this this plugin in production apps as well. I will look into this and do a PR if I succeed :)

szaboa avatar Jan 28 '19 07:01 szaboa

Awesome, glad to hear it! :)

stkent avatar Jan 29 '19 02:01 stkent

Pull request is done, waiting some feedback there :)

szaboa avatar Feb 21 '19 13:02 szaboa

Poke @btkelly :)

stkent avatar Feb 21 '19 13:02 stkent

@btkelly, @stkent ping :)

szaboa avatar Mar 06 '19 17:03 szaboa