We have started trying to move toward CI and automation. There's not a lot of cross-talk between teams, and I've discovered that many have developed simple or sophisticated build & test scripts, all in the same language (Python).
None of them have any mutual Git history or significant amount of copied code, but all implement at least a certain set of features (build a
.sln, prep the target device, run built executable on the target device, etc).
We all have been taught the evils of duplicate code, but what about duplicate features and redundant programs?
Should I try to merge or re-use these scripts? There are a handful of them, so it seems daunting. How can I determine the cost/benefit?
If I do decide to merge/re-use, what are some good strategies or best practices for combining repos like this? I'm thinking maybe my best first step is to make one of them into a modular/generic library.