8 ms·
Often CI results are not put to use immediately, making build time irrelevant.
by Smar 1y ago
Often CI results are not put to use immediately, making build time irrelevant.
- wiseowise 1y agoSo you're okay with waiting a day to get "linter error, you've put this on a wrong line, dumbass"?
- elric 1y agoWho's talking about a day? The difference between a fast build tool and a slow tool is in the order of seconds, maybe minutes. Larger differences aren't down to the build tool but down to the codebase.
- Tainnor 1y agoThe difference between a tool that leverages incremental compilation effectively and one that almost always has to build from scratch (at least on CI) can be pretty huge and not "in the order of seconds".
- elric 1y agoThat's more a CI issue than a build tool issue. Just about any (Java) build tool supports incremental compilation. But if your CI env doesn't have a place to cache those builds, it's not going to matter. And even then it could be a matter of seconds on a smallish codebase. Nor everyone is building Google sized monorepos.
- Tainnor 1y ago> Just about any (Java) build tool supports incremental compilation I wish that were true. Maven is terrible at this, e.g. here's a bug report that's been open for 12 years: https://issues.apache.org/jira/browse/MCOMPILER-209 https://issues.apache.org/jira/browse/MCOMPILER-209 Even just doing things like "please predownload any dependencies in this one job and cache them, so they can be reused in these 5 other jobs" don't work reliably with maven because certain plugins like surefire download dependencies on the fly. > Nor everyone is building Google sized monorepos. Nor is everyone building "small-ish codebases". You don't have to be Google, I worked at a company with maybe 10 developers in total, but the codebase was over 10 years old and had a gazillion features (plus a lot of tech debt, obviously) and the build times were atrocious. It wasn't all maven's fault, of course (we had really badly written tests, for example), but the broken incremental compilation easily added 5-10 more minutes to each build.