Skip to content

Extend the Lean 4.32 patch to Analyzer/Process.lean - #22

Merged
Gabrielebattimelli merged 1 commit into
mainfrom
fix/lean-4.32-process
Aug 15, 2026
Merged

Extend the Lean 4.32 patch to Analyzer/Process.lean#22
Gabrielebattimelli merged 1 commit into
mainfrom
fix/lean-4.32-process

Conversation

@Gabrielebattimelli

Copy link
Copy Markdown
Member

Why

Run 31915300012 confirmed the patch works — Analyzer.Process.Declaration built successfully, clearing the original blocker — but the build then failed on a second file:

error: Analyzer/Process.lean:86:23: Application type mismatch:
  has type Ident but is expected to have type TSyntax `doElem

My local verification missed this because the build reused cached .olean artifacts for that file. CI built clean and hit it immediately.

What

  • Extend the patch to Analyzer/Process.lean: the nestedAction antiquotation now needs an explicit :term annotation (same fix as jarfo/jixia@v4.33.0-rc2).
  • Re-verified from scratch (rm -rf .lake/build) against v4.32.0: Build completed successfully (40 jobs), including Analyzer.Process.
  • Key the jixia cache on the patch file (jixia-v3-…) so editing the patch can never reuse a build made from the previous version — the precise trap that hid this failure.

Note

The gate correctly failed the run rather than reporting green over a no-op, which is the fail-loudly behavior added in #21 working as intended. Nothing was deployed; the site was unaffected throughout.

The first version of the patch only covered Analyzer/Process/Declaration.lean.
That file built, but the run then failed on Analyzer/Process.lean, which has
its own v4.32 incompatibility: the nestedAction antiquotation now needs an
explicit :term annotation.

Local testing missed this because the build reused cached .olean artifacts for
that file; CI built clean and hit it immediately. Re-verified with a from-
scratch build (rm -rf .lake/build) against v4.32.0: 40/40 jobs, including
Analyzer.Process.

Key the jixia cache on the patch file as well, so editing the patch can never
reuse a build produced by the previous one.
Copilot AI lite review requested due to automatic review settings August 15, 2026 23:47
@Gabrielebattimelli
Gabrielebattimelli merged commit 710fdb2 into main Aug 15, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Extends the existing Lean v4.32.0 compatibility patch for the upstream jixia analyzer to cover an additional compile failure in Analyzer/Process.lean, and updates CI caching to avoid reusing stale build artifacts when the patch changes.

Changes:

  • Update patches/jixia-lean-4.32.patch to include the Analyzer/Process.lean antiquotation fix (explicit :term).
  • Improve the weekly indexing workflow’s jixia cache key by including the patch file hash (so patch edits force a fresh cache key).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
patches/jixia-lean-4.32.patch Adds the missing Analyzer/Process.lean fix and updates patch documentation to reflect both required adjustments.
.github/workflows/weekly-index.yml Updates the jixia cache key to include the patch hash to avoid stale cached .olean reuse across patch edits.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

# a build made from the previous one. A stale cached .olean is exactly
# what hid the Analyzer/Process.lean failure during local testing.
key: jixia-v3-${{ hashFiles('physlib/lean-toolchain') }}-${{ hashFiles('jixia/lakefile.lean', 'jixia/lakefile.toml') }}-${{ hashFiles('patches/jixia-lean-4.32.patch') }}
restore-keys: jixia-v3-${{ hashFiles('physlib/lean-toolchain') }}-
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.

2 participants