Closed bonjourmauko closed 2 years ago
This is very impressive work @maukoquiroga!
I remember talking about an automated semantic version checker a few weeks ago. I more had in mind a tool to help country packages (by checking the list of exposed parameters and variables) than Core contributors, but this looks fantastic as well.
However, the amount of code is quite large, and I am not sure such an automated semantic version checker should be specific to OpenFisca. Since it seems to (in a very relevant way) compare function signatures, could it maybe be a separate package? Is there not already some similar open-source project? 🙂
@MattiSG
However, the amount of code is quite large, and I am not sure such an automated semantic version checker should be specific to OpenFisca. Since it seems to (in a very relevant way) compare function signatures, could it maybe be a separate package?
Funnily, I was thinking about publishing this standalone this morning, that's why I marked it again as draft. And quite honestly, I'm not quite sure I'd like this to become part of core anymore.
Is there not already some similar open-source project?
None that I'm aware of —there are progress bars, and tools to lift the burden of AST parsing, but semantic validation, nopes.
I remember talking about an automated semantic version checker a few weeks ago. I more had in mind a tool to help country packages (by checking the list of exposed parameters and variables) than Core contributors.
Sure, you'd still have to run the WebAPI loaders with two different git revisions, or run the API with two different versions.
Alright, I'll go forth and close this PR then. I encourage you to ship that as an independent package, I find such a tool very promising!
Depends on #1044
New features
make check-version
Example