Skip to content

Add rulean check --parse-only and the Arena parse job - #29

Open
tamnd wants to merge 1 commit into
mainfrom
m1/parse-only
Open

tamnd wants to merge 1 commit into
mainfrom
m1/parse-only

Conversation

@tamnd

@tamnd tamnd commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Refers to #2.

Summary

This PR adds rulean check --parse-only. The command parses an export into the term store and prints the counts of names, levels, expressions and declarations, the store memory and the parse time. It does not type check. Without --parse-only, check still declines with exit code 2 until M2.

A parse reject exits with code 4. The error message gives the line and the kind of the error from rulean-format.

Arena parse job

scripts/arena-parse.sh runs rulean check --parse-only on every test of the Lean Kernel Arena and prints one line for each test that does not parse. The new arena parse CI job downloads the Arena with scripts/arena-fetch.sh, runs the script, and then runs the Arena test of rulean-format on the same files. The job depends on arena.lean-lang.org, so it is not a required check.

Checks

  • cargo test --workspace passes.
  • cargo clippy --workspace --all-targets -- -D warnings passes.
  • All 225 Arena tests parse on a local run.

@tamnd tamnd added this to the M1 Store and parser milestone Nov 21, 2026
@tamnd tamnd added area/cli The command line, reports and exit codes area/ci Workflows, releases, policy checks and repository settings type/feature New function labels Nov 21, 2026
The command parses an export into the term store and reports the counts. scripts/arena-parse.sh runs it on every Arena test, and a CI job runs the script on the downloaded Arena.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci Workflows, releases, policy checks and repository settings area/cli The command line, reports and exit codes type/feature New function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant