Skip to content

[Merged by Bors] - feat(CI): check that Mathlib files have lean or md extension - #25473

Closed
adomani wants to merge 6 commits into
masterfrom
adomani/file_extension_check
Closed

adomani wants to merge 6 commits into
masterfrom
adomani/file_extension_check

Conversation

@adomani

@adomani adomani commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

Twice recently there have been files with an "intended" .lean extension in Mathlib/:

mk_all does not add these files to Mathlib.lean, since they do not end in .lean and this later causes problems.

This CI step checks that all files in Mathlib/ end with .lean or .md.

See #25474 for a test where the new step correctly fails.


Open in Gitpod

@github-actions github-actions Bot added the CI Modifies the continuous integration setup or other automation label Jun 5, 2025
@github-actions

github-actions Bot commented Jun 5, 2025 •

Copy link
Copy Markdown

PR summary 90cc1de77b

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

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.


No changes to strong technical debt.
No changes to weak technical debt.

⚠️ Workflow documentation reminder

This PR modifies files under .github/workflows/.
Please update docs/workflows.md if the workflow inventory, triggers, or behavior changed.

Modified workflow files:

  • .github/workflows/lint_and_suggest_pr.yml

@grunweg grunweg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!
maintainer delegate

@github-actions

github-actions Bot commented Jun 5, 2025

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 5, 2025
@bryangingechen

Copy link
Copy Markdown
Contributor

LGTM, though I wonder if it'd be better to do this in scripts/mk_all.lean instead / in addition? Note that this workflow currently doesn't have to succeed for bors to merge a PR.
bors d+

@mathlib-bors

mathlib-bors Bot commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jun 5, 2025
@grunweg

grunweg commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

Good point - perhaps this can move to another workflow (build.yml?) or into the mk_all step?

@mathlib-bors

mathlib-bors Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

⌛ Existing delegations on this PR (@adomani) will expire on 2026-06-16 14:32 UTC (in 2 weeks) following a default_expiry_sec setting in bors.toml.

@mathlib-bors

mathlib-bors Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

⏳ @adomani, your delegation on this PR expires in less than a week (approximately 6 days, 23 hours, at 2026-06-16 14:32 UTC).

@mathlib-bors

mathlib-bors Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

⏳ @adomani, your delegation on this PR expires in less than 24 hours (approximately 23 hours, 53 minutes, at 2026-06-16 14:32 UTC).

@mathlib-bors

mathlib-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

⌛ Delegation for @adomani on this PR has expired (at 2026-06-16 14:32 UTC). Reply with bors d+ or bors d=adomani with a for= argument to re-delegate.

@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jun 24, 2026
@joneugster

Copy link
Copy Markdown
Member

Thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by joneugster.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 25, 2026
@ocfnash

ocfnash commented Jun 30, 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 Jun 30, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 30, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jun 30, 2026
Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* #24942, ending in `;lean`;
* #25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See #25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jun 30, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(CI): check that Mathlib files have lean or md extension [Merged by Bors] - feat(CI): check that Mathlib files have lean or md extension Jun 30, 2026
@mathlib-bors mathlib-bors Bot closed this Jun 30, 2026
@mathlib-bors
mathlib-bors Bot deleted the adomani/file_extension_check branch June 30, 2026 16:05
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 4, 2026
…ver-community#25473)

Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* leanprover-community#24942, ending in `;lean`;
* leanprover-community#25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See leanprover-community#25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
…ver-community#25473)

Twice recently there have been files with an "intended" `.lean` extension in `Mathlib/`:
* leanprover-community#24942, ending in `;lean`;
* leanprover-community#25457, ending in `.Lean`.

`mk_all` does not add these files to `Mathlib.lean`, since they do not end in `.lean` and this later causes problems.

This CI step checks that all files in `Mathlib/` end with `.lean` or `.md`.

See leanprover-community#25474 for a test where the new step [correctly fails](https://github.com/leanprover-community/mathlib4/actions/runs/15464097783/job/43532018379?pr=25474).
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. CI Modifies the continuous integration setup or other automation ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants