Zulip Chat Archive

Stream: maths

Topic: lint test optimization


Arthur Paulino (Nov 05 2021 at 13:11):

Do you guys think it's worth it to try to optimize lint tests by using the result of the previous test and a git diff to see what has changed since then? They're taking ~28 minutes per commit and tend to get larger and larger as mathlib grows and more and more frequent as more people join us

Floris van Doorn (Nov 05 2021 at 13:13):

The simplifier linters (like simp_nf) take almost all of the time, and they are "global" linters. That means that a change to declaration A can cause the linter to fail for declaration B

Yakov Pechersky (Nov 05 2021 at 13:13):

Are you asking for this for faster turn around time to confirm the validity of a commit? Some linters are file-local, thru are solely syntactic. Those are the ones that run first. The linters you're asking about are global linters, like checking if some simp lemma is stated in a form that another upstream simp lemma would simp away.

Yakov Pechersky (Nov 05 2021 at 13:14):

From your diff, you'd have to reconstruct the whole available environment of declarations.

Arthur Paulino (Nov 05 2021 at 13:16):

Are you asking for this for faster turn around time to confirm the validity of a commit?

Not exactly... I'm just wondering if we could lower the computational cost of the process


Last updated: Dec 20 2023 at 11:08 UTC