Zulip Chat Archive

Stream: sphere eversion

Topic: Documentation build failing on master


Ruben Van de Velde (Oct 07 2024 at 13:38):

Thanks!

I noticed the documentation build is broken on master, but it seems to have been broken since https://github.com/leanprover-community/sphere-eversion/commit/0092b9e50b431cef132e884b03f8022c1d7cca2c

Michael Rothgang (Oct 07 2024 at 13:54):

Indeed, that build has been broken for three months.

Michael Rothgang (Oct 07 2024 at 13:55):

Help fixing it is welcome, but not high priority for me.

Ruben Van de Velde (Oct 07 2024 at 13:57):

Oh, I think I'd need to revert your change to move to lakefile.toml in 9567b65a5232380502b6f0041ce6452decf80823

Michael Rothgang (Oct 07 2024 at 14:39):

So doc-gen doesn't support a lakefile.toml? That's a shame, is there an issue about this already? In any case, feel free to go ahead.

Patrick Massot (Oct 07 2024 at 15:38):

Really? That sounds very weird.

Ruben Van de Velde (Oct 07 2024 at 16:30):

We used to have an optional dependency; I don't know if that's possible with toml

Ruben Van de Velde (Oct 07 2024 at 16:31):

Maybe there is a way that I just don't know, though

Ruben Van de Velde (Oct 07 2024 at 16:31):

I also don't know how important it is for the dependency to be optional

Notification Bot (Oct 07 2024 at 16:32):

9 messages were moved here from #sphere eversion > What is ready for upstreaming? by Ruben Van de Velde.

Kim Morrison (Oct 13 2024 at 10:07):

Ruben Van de Velde said:

We used to have an optional dependency; I don't know if that's possible with toml

It's not possible. We are hoping that everyone will move away from relying on optional dependencies.

Kim Morrison (Oct 13 2024 at 10:08):

For doc-gen, one solution (besides just making it a standard dependency, which is a bit clunky), is to have a 2nd repo which depends on main one, and doc-gen, and handles generating the documation separately without interfering with "normal" users.

Ruben Van de Velde (Oct 13 2024 at 11:02):

Also kinda clunky :)

Kim Morrison (Oct 13 2024 at 11:45):

Just crosslinking to the discussion of this approach at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/How.20does.20build.20.26.20deploy.20document.20for.20Mathlib4.20currently.3F/near/476591680

Filippo A. E. Nuccio (Oct 14 2024 at 14:05):

(I have moved my message to a more appropriate stream).

Michael Rothgang (Jan 17 2025 at 11:38):

I have finally opened https://github.com/leanprover-community/sphere-eversion/pull/91 to fix this. The CI changes are shamelessly copied from the carleson CI workflow. @Pietro Monticone Would you like to double-check this part looks alright?

Pietro Monticone (Jan 17 2025 at 12:08):

Sure, I’ll take a look at later today (probably during LT2025 social time).

Pietro Monticone (Jan 17 2025 at 12:10):

Just a quick comment: it might be better to copy the latest docbuild-based version of the Carleson workflow without symlinks.

Pietro Monticone (Jan 17 2025 at 12:11):

Could you please add the current one? Then I’ll take a look later.

Michael Rothgang (Jan 17 2025 at 12:25):

Done. (By the way: the setup_lake_package_symlinks.sh script in Carleson is unused: is that safe to delete?)

Pietro Monticone (Jan 17 2025 at 12:25):

Yes

Pietro Monticone (Jan 17 2025 at 15:34):

This

uses: actions/checkout@v2

should be upgraded to the latest action version (i.e. v4).

Pietro Monticone (Jan 17 2025 at 15:36):

This one

actions/deploy-pages@v1

should be upgraded to the latest version (i.e. v4).

Pietro Monticone (Jan 17 2025 at 15:47):

The following config files are superfluous and should be removed:

  • docbuild/lean-toolchain
  • docbuild/lake-manifest.json

Everything should be configured and hosted by the workflow runner.

Pietro Monticone (Jan 17 2025 at 15:54):

Ok, now it looks good to me.

Michael Rothgang (Jan 17 2025 at 16:06):

Merged the PR: let's see if it works!

Michael Rothgang (Jan 17 2025 at 20:15):

For those following along: it failed, but Pietro already proposed a fix. Merged that; we'll see if that suffices.

Pietro Monticone (Jan 17 2025 at 22:35):

Yes, it worked. There is a remaining unrelated checkdecls issue

Michael Rothgang (Jan 17 2025 at 22:36):

Pushed a fix for that (I think)

Pietro Monticone (Jan 17 2025 at 23:08):

Fine, it worked.


Last updated: May 02 2025 at 03:31 UTC