Skip to content

[Merged by Bors] - chore(MathlibTest): temporarily disable two slow library suggestion tests - #44318

Closed
marcelolynch wants to merge 2 commits into
leanprover-community:masterfrom
marcelolynch:2026/09/DisableSineQuaNonTests
Closed

marcelolynch wants to merge 2 commits into
leanprover-community:masterfrom
marcelolynch:2026/09/DisableSineQuaNonTests

Conversation

@marcelolynch

@marcelolynch marcelolynch commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR disables two tests until leanprover/lean4#15392 is fixed:

  • MathlibTest/LibrarySuggestions/sineQuaNon.lean
  • MathlibTest/symbolFrequency.lean

Since v4.35.0-rc2 (lean4#15159), Lean builds the Sine Qua Non indexes on the first query in each process. With import Mathlib, this takes minutes on one thread. In CI, sineQuaNon takes about 520 s and symbolFrequency takes about 250 s. All the other test files finish in about 107 s. Thus these two files set the duration of the test mathlib step, and the test and lint job is the slowest part of CI.

Each file keeps its import Mathlib and its original body as comments. An #adaptation_note gives the reason. After the toolchain bump that includes the fix (lean4#15391), uncomment the body to enable the test again.

The two files compile without messages locally.

Discussion: #lean4 > lean4#15159 causes significant regression in MathlibTests

Disable `MathlibTest/LibrarySuggestions/sineQuaNon.lean` and
`MathlibTest/symbolFrequency.lean` until lean4#15392 is fixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the increases-technical-debt Automatically added label for PRs which increase "strong" technical debts label Sep 29, 2026
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

PR summary e3fb1f6a41

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit e3fb1f6).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


Increase in strong tech debt: (relative, absolute) = (2.00, 0.01)
Current number Change Type (strong)
390 2 adaptation notes
No changes to weak technical debt.

Current commit e3fb1f6a41
Reference commit 1b5006ca00

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@marcelolynch marcelolynch changed the title chore(MathlibTest): disable two slow library suggestion tests chore(MathlibTest): temporarily disable two slow library suggestion tests Sep 29, 2026
@ocfnash

ocfnash commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 29, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 29, 2026
…ests (#44318)

This PR disables two tests until leanprover/lean4#15392 is fixed:

- `MathlibTest/LibrarySuggestions/sineQuaNon.lean`
- `MathlibTest/symbolFrequency.lean`

Since v4.35.0-rc2 (lean4#15159), Lean builds the Sine Qua Non indexes on the first query in each process. With `import Mathlib`, this takes minutes on one thread. In CI, `sineQuaNon` takes about 520 s and `symbolFrequency` takes about 250 s. All the other test files finish in about 107 s. Thus these two files set the duration of the `test mathlib` step, and the test and lint job is the slowest part of CI.

Each file keeps its `import Mathlib` and its original body as comments. An `#adaptation_note` gives the reason. After the toolchain bump that includes the fix (lean4#15391), uncomment the body to enable the test again.

The two files compile without messages locally.

Discussion: [#lean4 > lean4#15159 causes significant regression in MathlibTests](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/lean4.2315159.20causes.20significant.20regression.20in.20MathlibTests/with/627571608)
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 29, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 29, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 29, 2026
…ests (#44318)

This PR disables two tests until leanprover/lean4#15392 is fixed:

- `MathlibTest/LibrarySuggestions/sineQuaNon.lean`
- `MathlibTest/symbolFrequency.lean`

Since v4.35.0-rc2 (lean4#15159), Lean builds the Sine Qua Non indexes on the first query in each process. With `import Mathlib`, this takes minutes on one thread. In CI, `sineQuaNon` takes about 520 s and `symbolFrequency` takes about 250 s. All the other test files finish in about 107 s. Thus these two files set the duration of the `test mathlib` step, and the test and lint job is the slowest part of CI.

Each file keeps its `import Mathlib` and its original body as comments. An `#adaptation_note` gives the reason. After the toolchain bump that includes the fix (lean4#15391), uncomment the body to enable the test again.

The two files compile without messages locally.

Discussion: [#lean4 > lean4#15159 causes significant regression in MathlibTests](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/lean4.2315159.20causes.20significant.20regression.20in.20MathlibTests/with/627571608)
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 29, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore(MathlibTest): temporarily disable two slow library suggestion tests [Merged by Bors] - chore(MathlibTest): temporarily disable two slow library suggestion tests Sep 29, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 29, 2026
ooovi pushed a commit to ooovi/mathlib4 that referenced this pull request Oct 12, 2026
…ests (leanprover-community#44318)

This PR disables two tests until leanprover/lean4#15392 is fixed:

- `MathlibTest/LibrarySuggestions/sineQuaNon.lean`
- `MathlibTest/symbolFrequency.lean`

Since v4.35.0-rc2 (lean4#15159), Lean builds the Sine Qua Non indexes on the first query in each process. With `import Mathlib`, this takes minutes on one thread. In CI, `sineQuaNon` takes about 520 s and `symbolFrequency` takes about 250 s. All the other test files finish in about 107 s. Thus these two files set the duration of the `test mathlib` step, and the test and lint job is the slowest part of CI.

Each file keeps its `import Mathlib` and its original body as comments. An `#adaptation_note` gives the reason. After the toolchain bump that includes the fix (lean4#15391), uncomment the body to enable the test again.

The two files compile without messages locally.

Discussion: [#lean4 > lean4#15159 causes significant regression in MathlibTests](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/lean4.2315159.20causes.20significant.20regression.20in.20MathlibTests/with/627571608)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. increases-technical-debt Automatically added label for PRs which increase "strong" technical debts ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants