From: Eric Sunshine Date: Mon, 13 Dec 2021 17:25:30 GMT Subject: Re: [PATCH 05/15] t/Makefile: optimize chainlint self-test Message-ID: In-Reply-To: On Mon, Dec 13, 2021 at 12:05 PM Eric Sunshine wrote: > On Mon, Dec 13, 2021 at 11:17 AM Ævar Arnfjörð Bjarmason > wrote: > > The reason I looked at this to begin with is that it takes it ~100-150ms > > to run now, which adds up if you're e.g. using "make test T=" in > > "git rebase -i --exec". > > Regarding this last point, one idea I strongly considered (and have > not rejected) is to stop making `check-chainlin` a dependency of > `test` and `prove`. [...] Another less sledge-hammer approach would be to make t/Makefile respect GIT_TEST_CHAIN_LINT so that it doesn't run `check-chainlint` for `test` and `prove` when that variable is `0`. That would allow your `git rebase -i --exec` case to avoid the wasted extra overhead of `check-chainlint` (and chainlint in general).