Piranha: An Open Source Tool to Automatically Delete Stale Code
1–10 of 50 posts
Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#2Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#3Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#4Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#5It sounds pretty fancy. I'd want a very thorough set of unit tests before trusting code to delete code, though.
That still saves the time of: a) remembering that the flag is stale and must be removed, b) actually removing the code and putting the diff up. Piranha diffs for a single flag are also generally small enough to fully read them during code review.
We do have comprehensive unit tests for both the Piranha tool and the target codebase(s), and the majority (65%) of diffs generated by Piranha are landed without changes (and the most common change in those that are changed is to delete extra lines that Piranha couldn't prove as stale). Thus far we haven't had an outage caused by a Piranha deletion, but certainly there have been incorrect diffs generated and caught either by CI or manual reviewers, requiring us to update the tool. We would not recommend landing diffs generated by Piranha - or other stale code removal tools - to master without any reviews right now :)
Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#6However it works for now only with Java, Swift, or Objective-C Code.
Check it out if your projects fit those two conditions
Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#7Are Uber's Android apps written in Java? I would have thought they would be Kotlin.
Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#8One of our internal experimentation systems handles this by capping rollouts to 95%. So the author is forced to clean up their code if they want a full rollout.
Re: Piranha: An Open Source Tool to Automatically Delete Stale Code
#9One of our internal experimentation systems handles this by capping rollouts to 95%. So the author is forced to clean up their code if they want a full rollout.