Zulip Chat Archive

Stream: mathlib4

Topic: CI: github-actions bot and module system


Michael Stoll (Jan 30 2026 at 15:12):

Is the github-actions bot aware of the module system when it computes the import changes?

In a recent PR (#34533) I added a non-public import to a file, and the bot reported import increases for more than a thousand files. But my understanding is that private imports should not affect the number of files imported in downstream files. Am I wrong, or do we need to fix the bot?

Bryan Gin-ge Chen (Jan 30 2026 at 15:22):

This is the PR summary bot. @Damiano Testa can probably answer quickly.

Michael Stoll (Jan 30 2026 at 15:23):

No hurry, I'm just curious.

Damiano Testa (Jan 30 2026 at 16:02):

The PR summary does not take into account any subtlety introduced by the module system: it simply looks at import statements at the beginning of a file and does its count from there.

Damiano Testa (Jan 30 2026 at 16:03):

In particular, it does not wait for the oleans to be available, which would be a way to have some module-aware information.

Michael Stoll (Jan 30 2026 at 16:03):

So I guess that, after introducing the module system, the bot adding the "large-imports" label does not really give useful information anymore? (I.e., it is usually a false positive.)


Last updated: Feb 28 2026 at 14:05 UTC