4 ms·
I.. don't get the gist of the article. It seems to show that the author likes to use the git commit hooks to run linters and unit tests. Which is ... debatable
by _ZeD_ 4y ago
I.. don't get the gist of the article.
It seems to show that the author likes to use the git commit hooks to run linters and unit tests. Which is ... debatable, but the real question is: why does this should affect CI?
I understand that discovering a problem during the tests after the code landed on main branch is ... disconforting, at best.
I also understand the frustation of not being able to commit your changes in a precise way because the git hook required you to also touch other stuff.
What I don't know is why can't we run the CI on a merge-request flow, on the beefy servers, without blocking the local commits, sharing feature branches any time we want, and be checked only "when ready".
FWIW I worked on a project set up this way, with a jenkins job starting each time a MR was made, where the branch is applied "locally" in the main branch and the tests run, and a (needed for actual merge) approvation obtained only if the tests passed.