Skip to content

fix(ci): detect core modules outside the root import closure - #1783

Open
chessing234 wants to merge 3 commits into
AlexKontorovich:mainfrom
chessing234:codex/check-core-import-coverage
Open

chessing234 wants to merge 3 commits into
AlexKontorovich:mainfrom
chessing234:codex/check-core-import-coverage

Conversation

@chessing234

@chessing234 chessing234 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Robby955 reported in #1634 that files outside the root import closure escaped CI elaboration and silently broke during toolchain upgrades. Four core modules are currently outside that closure.

Scope

Add a CI coverage check for the core namespace, excluding the intentionally archived Unused namespace and the migrated IEANTN tree. Include CriticalLineDecay, Chebyshev, RiemannZetaHadamard, and Simprocs in the root imports.

Repair the existing closure script so it reads Lean's header grammar: one module per import, public/meta/all modifiers, nested and line comments, Unicode and escaped identifiers, and termination at the first body command. Previously it treated body identifiers such as open and namespace names as imports. Retain the existing JSON reporting interface and stop describing unreachable files as safe to delete.

Test plan

  • Passed: 11 Python regression tests (python3 -m unittest discover -s tests -v).
  • Passed: the coverage check detects the four missing imports on the original root and passes after adding them.
  • Passed: git diff --check.
  • Passed in GitHub CI: full Lean/blueprint build and documentation generation. All four newly included modules compiled without warnings.

Made with OpenAI Codex.

@chessing234
chessing234 marked this pull request as ready for review October 1, 2026 10:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant