-
Notifications
You must be signed in to change notification settings - Fork 299
feat(ci): upload all branch builds to Azure server #2032
Conversation
See the result of a successful run here (21mb file). |
Can/should we migrate the old |
We can/should. It will take a bit of scripting I guess. This will already push us into the paid tier (we get 5gb free). Maybe only the recent ones and noteworthy ones, like the last 3.4.2 release? |
BTW, I have an unfinished, partially tested PR to mathlib-tools that points the scripts to these archives and falls back to |
I just counted -- we had ~40 push builds in the past 24 hours. So ~800mb a day. We'll hit the free limit in a week once this is merged. It says something about $170 in free credit though. The Azure prices quote $0.018/gb/mo for storage. So if we keep everything, ~$2/mo, accumulating (first month $2, second $4, third $6, ...). Obviously this goes up as mathlib grows. I don't have any guess about the bandwidth usage. It seems reasonable to store all master builds forever and branch builds for, say, a month. Distinguishing master/branch in the filename is inconvenient for fetching. Maybe we need a way to register the status of an archive with the server? This could also be used for branch builds that we want to keep forever, e.g. if an external project points to that commit. |
I think we'll have a script that regularly runs and deletes "unwanted" builds. We can define the the meaning of "unwanted" in that script. I don't think we need to know this at upload time. For example, delete if none of the following is true:
|
Other thoughts:
|
Let's merge this and see how it goes. Rob's concerns will be handled when we'll get the new scripts. |
The artifacts from every build (successful or not) of a leanprover-community/mathlib branch will get uploaded to the cloud. Forthcoming changes to
cache-olean
/update-mathlib
will retrieve these.TO CONTRIBUTORS:
Make sure you have:
If this PR is related to a discussion on Zulip, please include a link in the discussion.
For reviewers: code review check list