Zulip Chat Archive

Stream: general

Topic: IMPORTANT NOTICE: github and mathlib


Simon Hudon (Jan 30 2019 at 22:32):

We are in the process of moving mathlib from leanprover to leanprover-community. We will be inviting all the current contributors of mathlib to this new location but only the current maintainers will have write access to the master branch. All other branches will be available to write to. Please look at you inboxes for an invitation (if you currently have access to leanprover-community/mathlib) and update your leanpkg.toml files to point to leanprover-community/mathlib instead of leanprover/mathlib.

Kenny Lau (Jan 30 2019 at 22:35):

What happened?

Simon Hudon (Jan 30 2019 at 22:41):

github.com/leanprover and specifically github.com/leanprover/mathlib are owned by Leo and we decided to to move it github.com/leanprover-community so that we can manage the access rights without bothering Leo every time

Simon Hudon (Jan 30 2019 at 22:42):

Edit: you only need to update leanpkg.toml for your packages that import mathlib

Kenny Lau (Jan 30 2019 at 22:50):

who are "we"?

Mario Carneiro (Jan 30 2019 at 22:55):

We've been discussing this in the super secret maintainers club

Kenny Lau (Jan 30 2019 at 22:56):

I see

Mario Carneiro (Jan 30 2019 at 22:56):

Leo thinks it would be better to move mathlib away from the leanprover organization, and I think it would be better for him and us

Mario Carneiro (Jan 30 2019 at 22:57):

Note: the moves have not happened yet, so it's probably a bit early to change your toml files

Simon Hudon (Jan 30 2019 at 22:58):

We're in touch with Leo and github trying to make it happen. It should happen any minute now.

Mario Carneiro (Jan 30 2019 at 22:58):

also the important part has to be initiated by leo so it depends on how on the ball he is

Simon Hudon (Jan 30 2019 at 23:01):

Right now we're waiting on the github team actually. Leo responded very quickly.

Bryan Gin-ge Chen (Jan 31 2019 at 00:14):

Might be good to add some instructions to the README on this after it drops.

Mario Carneiro (Jan 31 2019 at 00:26):

Actually, we just discovered that github automatically redirects for moved repositories, so I think we should do nothing re: marking the move

Mario Carneiro (Jan 31 2019 at 00:27):

My guess is all your remotes will continue to work as normal after the move

Simon Hudon (Jan 31 2019 at 00:36):

That's correct.

Simon Hudon (Jan 31 2019 at 00:41):

Leo now completed his side of the operation but we faced more obstacles than expected. Here is the current state of affair:

  • what used to be leanprover/mathlib is now leanprover-community/mathlib-2
  • what used to be leanprover-community/mathlib is now leanprover-fork/mathlib-backup

Their previous URL also work still. In particular, all the branches that used to be at leanprover-community/mathlib are now at leanprover-fork/mathlib-backup. We will keep using them until they are all merged or deleted. All new branches should be created on leanprover-community/mathlib-2 which will now be the source of all truth. Only maintainers will be allowed to push to leanprover-community/mathlib-2/master however.

Simon Hudon (Jan 31 2019 at 00:41):

If you used to have write access to leanprover-community/mathlib, you should have received an invitation to contribute to leanprover-community/mathlib-2.

Simon Hudon (Jan 31 2019 at 00:41):

Any questions?

Bryan Gin-ge Chen (Jan 31 2019 at 00:43):

Is mathlib-2 the "official" name going forward?

Simon Hudon (Jan 31 2019 at 00:45):

I'm hoping that it won't be. I asked Leo to rename it to mathlib-2 because github refused the transfer when it was called mathlib. Now that it's called mathlib-2, Leo doesn't have anything else to do to help us with the transfer. I'm getting in touch with the github team to allow us to replace what used to be leanprover-community/mathlib.

Mario Carneiro (Jan 31 2019 at 00:50):

did the rename to leanprover-community/mathlib-backup not work?

Simon Hudon (Jan 31 2019 at 00:51):

It worked but left behind a redirect which I couldn’t overwrite

Mario Carneiro (Jan 31 2019 at 00:52):

I mean where did the lp-fork user come from?

Simon Hudon (Jan 31 2019 at 00:55):

I created it just for this occasion. I’ll delete it when we’re done with this repo

Simon Hudon (Jan 31 2019 at 00:57):

Update: I just renamed leanprover-community/mathlib-2 to leanprover-community/mathlib. I think the name was only blocked to transfers.

Simon Hudon (Jan 31 2019 at 00:58):

Now, leanprover/mathlib and leanprover-community/mathlib both point to the same repo.

Mario Carneiro (Jan 31 2019 at 00:58):

I see the branch protection for master has CI status checks enabled. I think this is not a good idea, since it takes 45 minutes to run the CI, it's going to really throttle our ability to push stuff

Mario Carneiro (Jan 31 2019 at 00:59):

at least, I think we need to see if this is going to cause a problem

Simon Hudon (Jan 31 2019 at 01:19):

I see. We could have a branch “stable” which we make sure always builds this way. How about that?

Reid Barton (Jan 31 2019 at 01:29):

Or we could call it "lean-3.4.2“

Simon Hudon (Jan 31 2019 at 01:30):

I like it

Simon Hudon (Jan 31 2019 at 01:34):

We could also make lean-3.4.2 into a tag which travis pushes when a build on master succeeds

Bryan Gin-ge Chen (Jan 31 2019 at 01:36):

that will fix the leanpkg issues, right?

Simon Hudon (Jan 31 2019 at 01:38):

which one do you mean?

Bryan Gin-ge Chen (Jan 31 2019 at 01:57):

I seem to recall that leanpkg upgrade wouldn't update mathlib if I had lean_version = "3.4.2" in leanpkg.toml. I can try to check after another commit gets pushed to master. I've been using "nightly" in that option so it gives a warning, but then running leanpkg upgrade does keep mathlib up to date.

I thought there was also an issue with leanpkg new and leanpkg add but I can't seem to reproduce it now.

Simon Hudon (Jan 31 2019 at 02:02):

I think it would fix the first one but I'm not sure about the second one

Mario Carneiro (Jan 31 2019 at 02:49):

so the move is complete now?

Simon Hudon (Jan 31 2019 at 02:53):

Mostly. We can already start working only with leanprover-community/mathlib and the only exception is the existing PRs that refer to leanprover-fork/mathlib-backup. Once we're done with those, I think the transfer will be complete.

Simon Hudon (Jan 31 2019 at 02:54):

People can, at their leisure, move the branches that aren't part of PRs from mathlib-backup to mathlib

Mario Carneiro (Jan 31 2019 at 02:59):

does this help? https://help.github.com/articles/changing-the-base-branch-of-a-pull-request/

Simon Hudon (Jan 31 2019 at 03:02):

No, the base is the branch located in lp-community

Kenny Lau (Jan 31 2019 at 09:01):

why is my build > 15 mins? Is there some issue with the caching?

Kenny Lau (Jan 31 2019 at 09:02):

Also is #658 working?

Kenny Lau (Jan 31 2019 at 09:06):

I think this is very confusing. Can someone loop me in as to the current status of affairs?

Kenny Lau (Jan 31 2019 at 09:08):

before your moves I had a branch leanprover-community/mathlib/submodule-mul

Mario Carneiro (Jan 31 2019 at 09:08):

AFAICT it's building

Kenny Lau (Jan 31 2019 at 09:08):

and after your moves I tried pushing to that branch again from git

Kenny Lau (Jan 31 2019 at 09:08):

and it automatically created a new branch instead of redirecting it to the fork branch

Kenny Lau (Jan 31 2019 at 09:09):

and that is a problem because #658 listens on the fork branch

Mario Carneiro (Jan 31 2019 at 09:09):

the new thing is to push your stuff to a branch on mathlib itself, which has the same name as the old community mathlib

Kenny Lau (Jan 31 2019 at 09:09):

so I need to set up the new upstream manually

Kenny Lau (Jan 31 2019 at 09:09):

but the pull requests listen on the fork branches...

Mario Carneiro (Jan 31 2019 at 09:10):

I guess that's a grandfather thing... push to the fork for your old open PRs, create lc/mathlib branches in the future

Kenny Lau (Jan 31 2019 at 09:11):

AFAICT it's building

yes, but I don't see any evidence of caching

Mario Carneiro (Jan 31 2019 at 09:11):

who knows, I wouldn't worry about it unless it happens every time

Kenny Lau (Jan 31 2019 at 09:12):

I think the caches on the old leanprover-community/mathlib haven't been moved to leanprover-fork/mathlib-backup

Kenny Lau (Jan 31 2019 at 09:12):

that's why there are no caches there

Mario Carneiro (Jan 31 2019 at 09:12):

it looks like it did download a cache, but we don't have a lot of diagnostic info on what cache data travis is using

Kenny Lau (Jan 31 2019 at 09:12):

this is a bad sign as we have 25 open PR's, if each of them needs to be built once then we would lose a lot of time

Mario Carneiro (Jan 31 2019 at 09:13):

only if they push new commits

Kenny Lau (Jan 31 2019 at 09:14):

also I get a strange "view #658" button when I visit leanprover-community/mathlib/submodule-mul

Mario Carneiro (Jan 31 2019 at 09:14):

it's not like we can do anything about it... the caches are very brittle. If they don't work, regenerate them. If those don't work we have a problem

Kenny Lau (Jan 31 2019 at 09:14):

does this suggest that somehow it is connected to the other branch?

Mario Carneiro (Jan 31 2019 at 09:14):

it is the same commit

Mario Carneiro (Jan 31 2019 at 09:16):

oh, https://travis-ci.org/leanprover/mathlib is a 404

Mario Carneiro (Jan 31 2019 at 09:16):

I guess travis can't handle the move as smoothly as github

Mario Carneiro (Jan 31 2019 at 09:17):

could be related to the loss of cache

Kenny Lau (Jan 31 2019 at 09:17):

yep

Kenny Lau (Jan 31 2019 at 09:17):

anyway can you review #658? :P

Johan Commelin (Jan 31 2019 at 18:54):

I just learned that the "maintainers elected in Amsterdam now have commit rights". I'm very sorry for not having been able to attend this discussion in Amsterdam. Out of curiosity, is this list of maintainers documented somewhere?

Patrick Massot (Jan 31 2019 at 18:55):

mathlib readme

Patrick Massot (Jan 31 2019 at 18:56):

I'm also sorry I missed that. I would have volunteered for documentation maintainership

Patrick Massot (Jan 31 2019 at 19:00):

Inspired by this successful change of ownership, we decided to redo properly the move of perfectoid spaces from Kevin's account to leanprover-community. So I pulled back all commits to the old repository and deleted the new one. Now I need someone with correct rights (@Simon Hudon ?) to grant Kevin the right to create a repository in leanprover-community, so that he can transfer properly (with redirections, without loosing watchers and stars etc.)

Johan Commelin (Jan 31 2019 at 19:02):

mathlib readme

Aah, thanks. Hadn't seen that yet. So @Johannes Hölzl isn't mentioned in that list, but he's the person doing almost all merges right now? :grinning:

Simon Hudon (Jan 31 2019 at 19:12):

@Johannes Hölzl is moving to the dark side of computer science: he's leaving academia to go work in a place called real world (never heard of it before). He still has rights but we won't be assigning him any work

Simon Hudon (Jan 31 2019 at 19:15):

@Patrick Massot @Kevin Buzzard : I just extended Kevin an invitation so that he can move his repo

Johannes Hölzl (Jan 31 2019 at 19:36):

@Simon Hudon is right, I don't think I will have time to work on mathlib in the future. I added the list of maintainers and deliberately put not myself on it.


Last updated: Dec 20 2023 at 11:08 UTC