|
78 | 78 |
|
79 | 79 | # Checkout the master branch into a subdirectory |
80 | 80 | - name: Checkout master branch |
81 | | - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 81 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
82 | 82 | with: |
83 | 83 | # Recall that on the `leanprover-community/mathlib4-nightly-testing` repository, |
84 | 84 | # we don't maintain a `master` branch at all. |
|
88 | 88 |
|
89 | 89 | # Checkout the PR branch into a subdirectory |
90 | 90 | - name: Checkout PR branch |
91 | | - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 91 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
92 | 92 | with: |
93 | 93 | ref: "${{ PR_BRANCH_REF }}" |
94 | 94 | path: pr-branch |
@@ -365,7 +365,7 @@ jobs: |
365 | 365 |
|
366 | 366 | - name: upload artifact containing contents of pr-branch |
367 | 367 | # temporary measure for debugging no-build failures |
368 | | - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 |
| 368 | + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 |
369 | 369 | with: |
370 | 370 | name: mathlib4_artifact |
371 | 371 | include-hidden-files: true |
@@ -395,7 +395,7 @@ jobs: |
395 | 395 | # do not try to upload files just downloaded |
396 | 396 |
|
397 | 397 | echo "Uploading cache to Azure..." |
398 | | - USE_FRO_CACHE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked |
| 398 | + MATHLIB_CACHE_USE_CLOUDFLARE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked |
399 | 399 | env: |
400 | 400 | MATHLIB_CACHE_SAS_RAW: ${{ secrets.MATHLIB_CACHE_SAS }} |
401 | 401 |
|
@@ -451,8 +451,8 @@ jobs: |
451 | 451 | export MATHLIB_CACHE_SAS="${MATHLIB_CACHE_SAS_RAW%"${MATHLIB_CACHE_SAS_RAW##*[![:space:]]}"}" |
452 | 452 |
|
453 | 453 | echo "Uploading Archive and Counterexamples cache to Azure..." |
454 | | - USE_FRO_CACHE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked Archive.lean |
455 | | - USE_FRO_CACHE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked Counterexamples.lean |
| 454 | + MATHLIB_CACHE_USE_CLOUDFLARE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked Archive.lean |
| 455 | + MATHLIB_CACHE_USE_CLOUDFLARE=0 ../master-branch/.lake/build/bin/cache --repo=${{ github.event.pull_request.head.repo.full_name || github.repository }} put-unpacked Counterexamples.lean |
456 | 456 | env: |
457 | 457 | MATHLIB_CACHE_SAS_RAW: ${{ secrets.MATHLIB_CACHE_SAS }} |
458 | 458 |
|
@@ -501,7 +501,25 @@ jobs: |
501 | 501 | id: lint |
502 | 502 | run: | |
503 | 503 | cd pr-branch |
504 | | - env LEAN_ABORT_ON_PANIC=1 ../master-branch/scripts/lake-build-wrapper.py .lake/build_summary_lint.json lake exe runLinter Mathlib |
| 504 | + # Try running with --trace; if it fails due to argument parsing, the PR needs to merge master |
| 505 | + # We use .lake/ for the output file because landrun restricts /tmp access |
| 506 | + if ! env LEAN_ABORT_ON_PANIC=1 stdbuf -oL lake exe runLinter --trace Mathlib 2>&1 | tee .lake/lint_output.txt; then |
| 507 | + if grep -q "cannot parse arguments" .lake/lint_output.txt; then |
| 508 | + echo "" |
| 509 | + echo "==============================================================================" |
| 510 | + echo "ERROR: Your branch uses an older version of runLinter that doesn't support" |
| 511 | + echo "the --trace flag. Please merge 'master' into your PR branch to get the" |
| 512 | + echo "updated linter, then push again." |
| 513 | + echo "" |
| 514 | + echo "You can do this with:" |
| 515 | + echo " git fetch upstream" |
| 516 | + echo " git merge upstream/master" |
| 517 | + echo " git push" |
| 518 | + echo "==============================================================================" |
| 519 | + echo "" |
| 520 | + fi |
| 521 | + exit 1 |
| 522 | + fi |
505 | 523 |
|
506 | 524 | - name: end gh-problem-match-wrap for shake and lint steps |
507 | 525 | uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23 |
@@ -552,7 +570,7 @@ jobs: |
552 | 570 | runs-on: ubuntu-latest # Note these steps run on disposable GitHub runners, so no landrun sandboxing is needed. |
553 | 571 | steps: |
554 | 572 |
|
555 | | - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 573 | + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
556 | 574 | with: |
557 | 575 | ref: "${{ PR_BRANCH_REF }}" |
558 | 576 |
|
@@ -600,7 +618,7 @@ jobs: |
600 | 618 | lake exe graph |
601 | 619 |
|
602 | 620 | - name: upload the import graph |
603 | | - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 |
| 621 | + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 |
604 | 622 | with: |
605 | 623 | name: import-graph |
606 | 624 | path: import_graph.dot |
@@ -704,7 +722,7 @@ jobs: |
704 | 722 | # unfortunately we cannot query only for 'auto-merge-after-CI' events |
705 | 723 | # so we have to process this with jq in the next step |
706 | 724 | id: get-timeline |
707 | | - uses: octokit/graphql-action@abaeca7ba4f0325d63b8de7ef943c2418d161b93 # v3.0.0 |
| 725 | + uses: octokit/graphql-action@ddde8ebb2493e79f390e6449c725c21663a67505 # v3.0.2 |
708 | 726 | with: |
709 | 727 | query: | |
710 | 728 | query($owner: String!, $name: String!, $number: Int!) { |
|
0 commit comments