Repository navigation
fix: verso breakage from the verso main merge (supersedes #142) - #145
Closed
downstream-lean4[bot] wants to merge 1 commit into
Closed
downstream-lean4[bot] wants to merge 1 commit into
downstream-lean4[bot] wants to merge 1 commit into
Conversation
`downstream: update repo verso` (eff5981) merged verso `main` into the in-tree copy, bringing in [verso#1015](leanprover/verso#1015): the `%example`-based `leanExampleProject` command is gone, and with it the SubVerso `examples` facet that used to build the nested example project's module as a side effect. `{leanExampleModule exampleMod …}` runs `subverso-extract-mod`, which only *imports* the module's `.olean`, so `DemoSite.Blog.Subprojects` failed with error finding highlighted code: unknown module prefix `Examples` error: test-projects/website/DemoSite/Blog/Subprojects.lean:121:15: Subproject 'exampleMod' not loaded Upstream compensates with a `lake build` step in verso's own CI, which `build.py` never runs here. Build the module in `loadModuleContent` before running the extractor, exactly as `Verso.Code.External` already does for anchor-based examples. This is the surviving hunk of the now superseded #142: everything else in that PR was its port of verso#1015, which the bot merge has since brought in from upstream.
Contributor
Author
Build report for fix: verso breakage from the verso main mergeTurned green:
Stayed red
Stayed green
|
This was referenced Oct 8, 2026
Kha
pushed a commit
that referenced
this pull request
Oct 10, 2026
`master` is red on `nightly-2026-10-08` ([run 37811116340](https://github.com/leanprover/downstream-lean4/actions/runs/37811116340)): `verso` fails to build and `reference-manual`, `verso-slides` and `verso-web-components` are skipped behind it. The `verso` failure is unchanged from the last four rounds and is fixed by the still-open #145. Building the skipped repos locally on top of that PR's hunk uncovers one more failure, which CI has never reached — hence this PR. ## reference-manual lean4#15533 (`refactor: implement String.toList in Lean`) reimplements `String.toList` in Lean and, since the deprecation was nearly a year old, removes every trace of `String.data`. The `Palindrome` example in `Manual/Language/InductiveTypes/Structures.lean`, which illustrates a non-default structure constructor name, still phrased its invariant with `text.data`: ``` error: Manual/Language/InductiveTypes/Structures.lean:192:23: Invalid field `data`: The environment does not contain `String.data`, so it is not possible to project the field `data` from an expression error: Manual/Language/InductiveTypes/Structures.lean:189:0: No error expected in code block, one occurred ``` Use `text.toList` instead. `String.toList` is `noncomputable` now, which does not matter here: the field is a `Prop`. ## Verified All on `nightly-2026-10-08`, in a checkout carrying #145's hunk: | repo | result | | --- | --- | | `reference-manual` | `lake build` green, 1583 jobs (no test or lint driver) | | `verso` | `lake build` green, 1294 jobs; `lake test` 768 passed, 0 failed | | `verso-web-components` | `lake build` green, 475 jobs | | `verso-slides` | `lake build` green, 755 jobs; `lake test -- --no-playwright` green | `verso`'s `DemoSite.Blog.Subprojects` was re-elaborated with `test-projects/website-examples/.lake/build` removed, so #145's hunk was genuinely exercised rather than replayed from the artifact cache. ## Not covered This PR alone does not make `master` green: `verso` still needs #145, which has been open since 2026-10-07. Its own CI run here will show `verso` red and `reference-manual` skipped for exactly that reason. <!-- downstream-watch: unattended --> Co-authored-by: downstream-lean4[bot] <downstream-lean4[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <[email protected]>
robsimmons
added a commit
that referenced
this pull request
Oct 12, 2026
#145 proposes a fix and I'm likely to make something similar on lean4-nightly, but silences the problem in the meantime.
Contributor
|
closed (for downstream-lean's purposes) in favor of the unprincipled fix, #157 |
Garmelon
pushed a commit
that referenced
this pull request
Oct 13, 2026
#145 proposes a fix and I'm likely to make something similar on lean4-nightly, but silences the problem in the meantime.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
masteris red atversosince run 37777397573, which takes the criticalreference-manualdown with it through the skip chain, along withverso-slidesandverso-web-components.verso
Root cause.
downstream: update repo verso(eff5981) merged versomaininto the in-tree copy, and so brought in upstream's own verso#1015: the%examplemechanism and theleanExampleProjectcommand are gone.{leanExampleModule exampleMod …}runssubverso-extract-mod, which only imports the example module's.olean— the deletedleanExampleProjectcall had been building it as a side effect through SubVerso'sexamplesfacet. Upstream compensates with alake buildstep in verso's own CI ("Build the website examples subproject"), andbuild.pyruns onlylake build/lake test/lake lintat the subrepo root, so nothing buildsExamples.oleanhere:Fix. Build the module in
loadModuleContentbefore running the extractor, exactly asVerso.Code.Externalalready does for anchor-based examples. That makes theleanExampleModulepath self-contained rather than dependent on a CI step, and is worth having upstream too.This supersedes #142, which carried the same hunk plus a hand port of verso#1015, made back when the in-tree
versostill lagged itsmain-tracked consumers. The bot merge has now brought upstream's own version of every ported hunk, so #142 isCONFLICTINGand this one hunk is all that is left of it; closing it in favour of this PR.Verified on
nightly-2026-10-07, withverso/test-projects/website-examples/.lake/buildremoved first — a warm nested build directory hides the failure:versolake build(1294 jobs, incl.DemoSite.Blog.Subprojects),lake test(768 passed, 0 failed)verso-web-componentslake build(475 jobs) — build-onlyverso-slideslake build(755 jobs),lake test -- --no-playwright(51 + 24 + 36 tests, 17 validation cases)reference-manuallake build(1583 jobs) — build-onlyNote that
lake testinversorunslake update versoin two of the nested test projects, which rewritestest-projects/literate-{config,multi-root}/lake-manifest.jsonin the working copy; those changes are test output and are not part of this PR.Left unfinished
mathlib4(critical), and behind itrepl's test phase andcslib:grindthrows the internal errorring term has not been internalizedat 7 sites in 4 modules —Mathlib.RingTheory.ZMod.UnitsCyclic,Mathlib.NumberTheory.SumTwoSquares,Mathlib.RingTheory.Polynomial.Eisenstein.IsIntegralandArchive.Imo.Imo2025Q3. This is the second regression from lean4#15506, reported on 2026-10-07 with a core-only repro. Mathlib'snightly-testinghas meanwhile adapted the one site that was reported then (Int.sq_emod_four_eq_one_of_odd, now an#adaptation_note+rw), which unblocked the 4728 modules behind it and uncovered these four; everything else in Mathlib builds. Thegrindbug itself cannot be fixed downstream.So
masterdoes not go green on this nightly; this PR takesversoand the three repos skipped behind it out of the red set.