Skip to content

Commit 39a887e

Browse files
author
leanprover-community-mathlib4-bot
committed
Update lean-toolchain for leanprover/lean4#14595
2 parents 1bd09a6 + aee6a83 commit 39a887e

4,835 files changed

Lines changed: 67026 additions & 39943 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/get-mathlib-ci/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
# Default pinned commit used by workflows unless they explicitly override.
1111
# Update this ref as needed to pick up changes to mathlib-ci scripts
1212
# This is also updated automatically by .github/workflows/update_dependencies.yml
13-
default: 5668fbbccf0fecefdfcddf539b8406db197dfc59
13+
default: 2ad9371b8b135fc702e135e4e91ddace151e549d
1414
path:
1515
description: Checkout destination path.
1616
required: false

‎.github/workflows/PR_summary.yml‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
ref: ${{ github.event.pull_request.head.sha }}
2323
fetch-depth: 0
@@ -29,7 +29,7 @@ jobs:
2929
allow-unsafe-pr-checkout: true
3030

3131
- name: Checkout local actions
32-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3333
with:
3434
ref: ${{ github.workflow_sha }}
3535
fetch-depth: 1
@@ -67,7 +67,7 @@ jobs:
6767
fi
6868
6969
- name: Set up Python
70-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
70+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
7171
with:
7272
python-version: 3.12
7373

@@ -220,12 +220,23 @@ jobs:
220220
else
221221
declDiff="$(printf '#### Declarations diff (regex)\n\n%s\n' "${declDiff}")"
222222
fi
223-
# Append a placeholder for the post-build, Lean-aware diff. The
224-
# `decls-diff.yml` workflow replaces the region between the markers (see
225-
# mathlib-ci's `updateDeclsDiffSection.py`); the regex block above is left
226-
# as-is. The markers are HTML comments (invisible when rendered), and the
227-
# heading carries the status (`pending` → `(Lean)` / `(Lean -- unavailable)`).
228-
declDiff="$(printf '%s\n\n<!-- DECLS_DIFF_LEAN_BEGIN -->\n#### Declarations diff (Lean -- pending)\n\n_Computed after the build finishes._\n<!-- DECLS_DIFF_LEAN_END -->\n' "${declDiff}")"
223+
# Append the post-build, Lean-aware diff region. The `decls-diff.yml`
224+
# workflow later replaces the content between the markers (see mathlib-ci's
225+
# `updateDeclsDiffSection.py`); the regex block above is left as-is. The
226+
# markers are HTML comments (invisible when rendered), and the heading
227+
# carries the status (`pending` → `(Lean)` / `(Lean -- unavailable)`).
228+
#
229+
# Because this pre-build step rewrites the whole comment, it would otherwise
230+
# blank a previously-shown diff back to `pending` on every push. Instead we
231+
# ask `updateDeclsDiffSection.py` (MODE=emit) to carry the existing real diff
232+
# forward — relabelled stale — so it stays visible until the new build lands;
233+
# on the first run (or with no prior diff) it prints the pending placeholder.
234+
leanRegion="$(MODE=emit \
235+
NEW_HEADING='#### Declarations diff (Lean -- stale, waiting for the new build)' \
236+
REPO="${{ github.repository }}" PR_NUMBER="${PR}" PR_HEAD_SHA="${currentHash}" \
237+
python3 "${CI_SCRIPTS_DIR}/pr_summary/updateDeclsDiffSection.py" \
238+
|| printf '#### Declarations diff (Lean -- pending)\n\n_Computed after the build finishes._')"
239+
declDiff="$(printf '%s\n\n<!-- DECLS_DIFF_LEAN_BEGIN -->\n%s\n<!-- DECLS_DIFF_LEAN_END -->\n' "${declDiff}" "${leanRegion}")"
229240
git checkout "${currentHash}" --
230241
hashURL="https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}/commits/${currentHash}"
231242
printf 'hashURL: %s' "${hashURL}"

‎.github/workflows/actionlint.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
12+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1313

1414
- name: suggester / actionlint
15-
uses: reviewdog/action-actionlint@6fb7acc99f4a1008869fa8a0f09cfca740837d9d # v1.72.0
15+
uses: reviewdog/action-actionlint@50842263c20a7c46bd0065b9e624d3c569db061e # v1.73.0
1616
with:
1717
tool_name: actionlint
1818
fail_level: any
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525

2626
# Using our fork's PR branch until upstream merges the improved error reporting:
2727
# https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/288

‎.github/workflows/add_label_from_diff.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.repository == 'leanprover-community/mathlib4'
1919
steps:
2020
- name: Checkout master branch to build autolabel from
21-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2222
with:
2323
ref: master
2424
path: tools
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
lake build autolabel
3636
- name: Checkout branch to label
37-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
37+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3838
with:
3939
ref: ${{ github.event.pull_request.head.sha || github.sha }}
4040
fetch-depth: 0

‎.github/workflows/build_template.yml‎

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ env:
4848
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
4949
# not necessarily satisfy this property.
5050
LAKE_NO_CACHE: true
51+
MATHLIB_CACHE_BASE_URL: ${{ vars.MATHLIB_CACHE_BASE_URL }}
5152

5253
jobs:
5354
build:
@@ -57,6 +58,7 @@ jobs:
5758
build-outcome: ${{ steps.build.outcome }}
5859
archive-outcome: ${{ steps.archive.outcome }}
5960
counterexamples-outcome: ${{ steps.counterexamples.outcome }}
61+
wanted-outcome: ${{ steps.wanted.outcome }}
6062
cache-staging-has-files: ${{ steps.cache_staging_check.outputs.has_files }}
6163
mk_all-outcome: ${{ steps.mk_all.outcome }}
6264
noisy-outcome: ${{ steps.noisy.outcome }}
@@ -80,7 +82,7 @@ jobs:
8082
# We just populate the env vars for this step to make them viewable in the logs
8183
8284
- name: Checkout local actions
83-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
85+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8486
with:
8587
ref: ${{ github.workflow_sha }}
8688
fetch-depth: 1
@@ -230,12 +232,13 @@ jobs:
230232
# storing and transferring oleans over the network.
231233
# Hopefully a future re-implementation of `cache` will obviate the present need for this hack.
232234

233-
- name: fetch archive and counterexamples cache
235+
- name: fetch archive, counterexamples and wanted cache
234236
shell: bash
235237
run: |
236238
cd pr-branch
237239
../tools-branch/.lake/build/bin/cache get Archive.lean
238240
../tools-branch/.lake/build/bin/cache get Counterexamples.lean
241+
../tools-branch/.lake/build/bin/cache get Wanted.lean
239242
240243
- name: build archive
241244
id: archive
@@ -253,8 +256,16 @@ jobs:
253256
../tools-branch/scripts/lake-build-with-retry.sh Counterexamples
254257
# results of build at pr-branch/.lake/build_summary_Counterexamples.json
255258
259+
- name: build wanted
260+
id: wanted
261+
continue-on-error: true
262+
run: |
263+
cd pr-branch
264+
../tools-branch/scripts/lake-build-with-retry.sh Wanted
265+
# results of build at pr-branch/.lake/build_summary_Wanted.json
266+
256267
# Runs in the build job because it only needs the freshly-built Mathlib/
257-
# Archive/Counterexamples oleans, which are present here; keeping it in
268+
# Archive/Counterexamples/Wanted oleans, which are present here; keeping it in
258269
# `build` also spares `test_lint` from fetching Archive/Counterexamples.
259270
- name: check for noisy stdout lines
260271
id: noisy
@@ -263,7 +274,7 @@ jobs:
263274
buildMsgs="$(
264275
## we exploit `lake`s replay feature: since the cache is present, running
265276
## `lake build` will reproduce all the outputs without having to recompute
266-
lake build -q --iofail Mathlib Archive Counterexamples
277+
lake build -q --iofail Mathlib Archive Counterexamples Wanted
267278
)"
268279
if [ -n "${buildMsgs}" ]
269280
then
@@ -300,6 +311,13 @@ jobs:
300311
cd pr-branch
301312
lake env ../tools-branch/.lake/build/bin/cache --staging-dir="../cache-staging" stage Counterexamples.lean
302313
314+
- name: stage Wanted cache files
315+
if: ${{ steps.wanted.outcome == 'success' }}
316+
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
317+
run: |
318+
cd pr-branch
319+
lake env ../tools-branch/.lake/build/bin/cache --staging-dir="../cache-staging" stage Wanted.lean
320+
303321
- name: check cache staging contents
304322
id: cache_staging_check
305323
if: ${{ always() && (steps.build.outcome == 'success' || steps.build.outcome == 'failure' || steps.build.outcome == 'cancelled') }}
@@ -395,7 +413,7 @@ jobs:
395413
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
396414
steps:
397415
- name: Checkout local actions
398-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
416+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
399417
with:
400418
ref: ${{ github.workflow_sha }}
401419
fetch-depth: 1
@@ -463,19 +481,19 @@ jobs:
463481
# the archive/counterexamples builds all succeeded. The condition reads those
464482
# from the build job's outputs, and the problem-matcher wrap is gated to match.
465483
- name: begin gh-problem-match-wrap for test step
466-
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' }}
484+
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' && needs.build.outputs.wanted-outcome == 'success' }}
467485
uses: leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
468486
with:
469487
action: add # In order to be able to run a multiline script, we need to add/remove the problem matcher before and after.
470488
linters: lean
471489
- name: test mathlib
472-
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' }}
490+
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' && needs.build.outputs.wanted-outcome == 'success' }}
473491
id: test
474492
run: |
475493
cd pr-branch
476494
../tools-branch/scripts/lake-build-wrapper.py .lake/build_summary_MathlibTest.json lake --iofail test
477495
- name: end gh-problem-match-wrap for test step
478-
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' }}
496+
if: ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' && needs.build.outputs.wanted-outcome == 'success' }}
479497
uses: leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
480498
with:
481499
action: remove
@@ -605,7 +623,7 @@ jobs:
605623
# `build_template` via `pull_request_target`, never this one — so
606624
# `pr_branch_ref` is always a trusted ref here. Fork PRs keep `master`.
607625
- name: Checkout tools branch
608-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
626+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
609627
with:
610628
ref: ${{ inputs.tools_branch_ref != '' && inputs.tools_branch_ref || (github.event.pull_request.head.repo.fork && 'master' || inputs.pr_branch_ref) }}
611629
fetch-depth: 1
@@ -675,7 +693,7 @@ jobs:
675693
contents: read
676694
steps:
677695

678-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
696+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
679697
with:
680698
ref: ${{ inputs.pr_branch_ref }}
681699
# Untrusted (potentially fork) checkout: don't persist the GITHUB_TOKEN into its .git/config.
@@ -692,7 +710,7 @@ jobs:
692710
# miss. `github.workflow_sha` is the base ref the workflow runs from,
693711
# master for fork PRs, whose `cache` binary wrote the cache.
694712
- name: Checkout local actions and Cache baseline
695-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
713+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
696714
with:
697715
ref: ${{ github.workflow_sha }}
698716
fetch-depth: 1
@@ -802,7 +820,7 @@ jobs:
802820
lake exe graph
803821
804822
- name: Checkout local actions
805-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
823+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
806824
with:
807825
ref: ${{ github.workflow_sha }}
808826
fetch-depth: 1
@@ -1015,7 +1033,7 @@ jobs:
10151033
contains(steps.actorTeams.outputs.teams, 'bot-users')
10161034
)
10171035
name: If `auto-merge-after-CI` is present, add a `bors merge` comment.
1018-
uses: GrantBirki/comment@3439715f0cf3b8fc29bf47be0e3226679c06c41a # v3.0.0
1036+
uses: GrantBirki/comment@937820f3623fd0e300294bcc64ac7577fc0ad4cc # v3.0.3
10191037
with:
10201038
# This token is masked by the token minting action and will not be logged accidentally.
10211039
token: ${{ steps.auto-merge-app-token.outputs.token }}

‎.github/workflows/cache_test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run:
4242
shell: bash
4343
steps:
44-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
44+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4545

4646
# Install elan and the toolchain cross-platform. Build/test/lint, the
4747
# Mathlib cache, and the GitHub cache are all disabled, so this is a

‎.github/workflows/check_pr_titles.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
22+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2323
with:
2424
ref: master
2525
- name: Configure Lean
@@ -70,7 +70,7 @@ jobs:
7070
fi
7171
7272
- name: Add comment to fix PR title
73-
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
73+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
7474
if: failure() && steps.pr-title-check.outputs.errors
7575
with:
7676
header: 'PR Title Check'
@@ -120,7 +120,7 @@ jobs:
120120
121121
- name: Add comment that PR title is fixed
122122
if: steps.pr-title-check.outcome == 'success'
123-
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
123+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
124124
with:
125125
header: 'PR Title Check'
126126
# should do nothing if a 'PR Title Check' comment does not exist

‎.github/workflows/commit_verification.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
# This is a quick check to avoid unnecessary runs
3434
steps:
3535
- name: Checkout PR head
36-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
36+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3737
with:
3838
# Checkout the actual PR head, not the merge commit GitHub creates
3939
ref: ${{ github.event.pull_request.head.sha }}
4040
# Fetch full history to access all PR commits
4141
fetch-depth: 0
4242
- name: Checkout local actions
43-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
43+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4444
with:
4545
ref: ${{ github.workflow_sha }}
4646
fetch-depth: 1

‎.github/workflows/daily-master-tag.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
if: github.repository == 'leanprover-community/mathlib4'
1616
steps:
17-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1818
with:
1919
ref: master
2020

0 commit comments

Comments
 (0)