Skip to content

Commit 715df30

Browse files
authored
Merge branch 'main' into modernize-use-starts-ends-with-issue129498
2 parents c8d9108 + 107aa6a commit 715df30

File tree

2,934 files changed

+118656
-57702
lines changed

Some content is hidden

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

2,934 files changed

+118656
-57702
lines changed

.github/workflows/build-metrics-container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ on:
2020
jobs:
2121
build-metrics-container:
2222
if: github.repository_owner == 'llvm'
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
outputs:
2525
container-name: ${{ steps.vars.outputs.container-name }}
2626
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}
2727
container-filename: ${{ steps.vars.outputs.container-filename }}
2828
steps:
2929
- name: Checkout LLVM
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
with:
3232
sparse-checkout: .ci/metrics/
3333
- name: Write Variables
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
5151
- name: Upload Container Image
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5353
with:
5454
name: container
5555
path: ${{ steps.vars.outputs.container-filename }}
@@ -66,7 +66,7 @@ jobs:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767
steps:
6868
- name: Download Container
69-
uses: actions/download-artifact@v4
69+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
7070
with:
7171
name: container
7272
- name: Push Container

.github/workflows/ci-post-commit-analyzer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4545

4646
- name: Setup ccache
47-
uses: hendrikmuhs/ccache-action@v1
47+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4848
with:
4949
# A full build of llvm, clang, lld, and lldb takes about 250MB
5050
# of ccache space. There's not much reason to have more than this,

.github/workflows/commit-access-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-22.04
1616
steps:
1717
- name: Fetch LLVM sources
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN cmake -B ./build -G Ninja ./llvm \
4040
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution
4141

4242
FROM base as ci-container
43-
43+
4444
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4545

4646
# Need to install curl for hendrikmuhs/ccache-action
@@ -49,7 +49,7 @@ COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4949
# Need git for SPIRV-Tools tests.
5050
RUN apt-get update && \
5151
DEBIAN_FRONTEND=noninteractive apt-get install -y \
52-
binutils \
52+
binutils \
5353
cmake \
5454
curl \
5555
git \
@@ -59,7 +59,6 @@ RUN apt-get update && \
5959
perl-modules \
6060
python3-psutil \
6161
sudo \
62-
6362
# These are needed by the premerge pipeline. Pip is used to install
6463
# dependent python packages and ccache is used for build caching. File and
6564
# tzdata are used for tests.

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ on:
5151
jobs:
5252
check-docs-build:
5353
name: "Test documentation build"
54-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-24.04
5555
if: github.repository == 'llvm/llvm-project'
5656
steps:
5757
# Don't fetch before checking for file changes to force the file changes
@@ -60,12 +60,12 @@ jobs:
6060
# a local checkout beforehand.
6161
- name: Fetch LLVM sources (Push)
6262
if: ${{ github.event_name == 'push' }}
63-
uses: actions/checkout@v4
63+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6464
with:
6565
fetch-depth: 1
6666
- name: Get subprojects that have doc changes
6767
id: docs-changed-subprojects
68-
uses: tj-actions/changed-files@v39
68+
uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8 # v45.0.7
6969
with:
7070
files_yaml: |
7171
llvm:
@@ -98,11 +98,11 @@ jobs:
9898
- '.github/workflows/docs.yml'
9999
- name: Fetch LLVM sources (PR)
100100
if: ${{ github.event_name == 'pull_request' }}
101-
uses: actions/checkout@v4
101+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102102
with:
103103
fetch-depth: 1
104104
- name: Setup Python env
105-
uses: actions/setup-python@v5
105+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
106106
with:
107107
python-version: '3.11'
108108
cache: 'pip'
@@ -216,7 +216,7 @@ jobs:
216216
mkdir built-docs/flang
217217
cp -r flang-build/docs/* built-docs/flang/
218218
- name: Upload docs
219-
uses: actions/upload-artifact@v4
219+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
220220
with:
221221
name: docs-output
222222
path: built-docs/

.github/workflows/email-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ permissions:
1010

1111
jobs:
1212
validate_email:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Fetch LLVM sources
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
ref: ${{ github.event.pull_request.head.sha }}
2020

.github/workflows/issue-release-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
jobs:
3333
backport-commits:
3434
name: Backport Commits
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3636
permissions:
3737
issues: write
3838
pull-requests: write
@@ -42,7 +42,7 @@ jobs:
4242
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
4343
steps:
4444
- name: Fetch LLVM sources
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646
with:
4747
repository: llvm/llvm-project
4848
# GitHub stores the token used for checkout and uses it for pushes

.github/workflows/issue-subscriber.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ permissions:
1010

1111
jobs:
1212
auto-subscribe:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Checkout Automation Script
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
sparse-checkout: llvm/utils/git/
2020
ref: main

.github/workflows/issue-write.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
pr-comment:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
permissions:
1919
pull-requests: write
2020
if: >
@@ -25,7 +25,7 @@ jobs:
2525
)
2626
steps:
2727
- name: Fetch Sources
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
with:
3030
sparse-checkout: |
3131
.github/workflows/unprivileged-download-artifact/action.yml
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: 'Comment on PR'
4141
if: steps.download-artifact.outputs.artifact-id != ''
42-
uses: actions/github-script@v3
42+
uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3.2.0
4343
with:
4444
github-token: ${{ secrets.GITHUB_TOKEN }}
4545
script: |

.github/workflows/libc-fullbuild-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# - c_compiler: gcc
3131
# cpp_compiler: g++
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434

3535
# Libc's build is relatively small comparing with other components of LLVM.
3636
# A fresh fullbuild takes about 190MiB of uncompressed disk space, which can
@@ -39,7 +39,7 @@ jobs:
3939
# Do not use direct GHAC access even though it is supported by sccache. GHAC rejects
4040
# frequent small object writes.
4141
- name: Setup ccache
42-
uses: hendrikmuhs/[email protected]
42+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4343
with:
4444
max-size: 1G
4545
key: libc_fullbuild_${{ matrix.c_compiler }}

.github/workflows/libc-overlay-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
cpp_compiler: clang++
4848

4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5151

5252
# Libc's build is relatively small comparing with other components of LLVM.
5353
# A fresh linux overlay takes about 180MiB of uncompressed disk space, which can
@@ -57,7 +57,7 @@ jobs:
5757
# Do not use direct GHAC access even though it is supported by sccache. GHAC rejects
5858
# frequent small object writes.
5959
- name: Setup ccache
60-
uses: hendrikmuhs/ccache-action@v1
60+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
6161
with:
6262
max-size: 1G
6363
key: libc_overlay_build_${{ matrix.os }}_${{ matrix.compiler.c_compiler }}

.github/workflows/libclang-abi-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
jobs:
2828
abi-dump-setup:
2929
if: github.repository_owner == 'llvm'
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
outputs:
3232
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
3333
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -38,7 +38,7 @@ jobs:
3838
LLVM_VERSION_PATCH: ${{ steps.version.outputs.patch }}
3939
steps:
4040
- name: Checkout source
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4242
with:
4343
fetch-depth: 250
4444

@@ -83,7 +83,7 @@ jobs:
8383
abi-dump:
8484
if: github.repository_owner == 'llvm'
8585
needs: abi-dump-setup
86-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-24.04
8787
strategy:
8888
matrix:
8989
name:
@@ -137,7 +137,7 @@ jobs:
137137

138138
abi-compare:
139139
if: github.repository_owner == 'llvm'
140-
runs-on: ubuntu-latest
140+
runs-on: ubuntu-24.04
141141
needs:
142142
- abi-dump-setup
143143
- abi-dump

.github/workflows/libclang-python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: ["3.8", "3.11"]
33+
python-version: ["3.8", "3.13"]
3434
uses: ./.github/workflows/llvm-project-tests.yml
3535
with:
3636
build_target: check-clang-python

.github/workflows/libcxx-build-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
jobs:
2828
build-and-push:
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-24.04
3030
if: github.repository_owner == 'llvm'
3131
permissions:
3232
packages: write

.github/workflows/libcxx-check-generated-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
check_generated_files:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Fetch LLVM sources
1515
uses: actions/checkout@v4

.github/workflows/libcxx-restart-preempted-jobs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
statuses: read
2727
checks: write
2828
actions: write
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-24.04
3030
steps:
3131
- name: "Restart Job"
3232
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
@@ -161,7 +161,7 @@ jobs:
161161
statuses: read
162162
checks: write
163163
actions: write
164-
runs-on: ubuntu-latest
164+
runs-on: ubuntu-24.04
165165
steps:
166166
- name: "Restart Job (test)"
167167
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1

.github/workflows/llvm-bugs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ on:
1111

1212
jobs:
1313
auto-subscribe:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
if: github.repository == 'llvm/llvm-project'
1616
steps:
17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
1818
with:
1919
node-version: 18
2020
check-latest: true
2121
- run: npm install mailgun.js form-data
2222
- name: Send notification
23-
uses: actions/github-script@v6
23+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2424
env:
2525
MAILGUN_API_KEY: ${{ secrets.LLVM_BUGS_KEY }}
2626
with:

.github/workflows/llvm-project-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: false
1515
os_list:
1616
required: false
17-
default: '["ubuntu-latest", "windows-2019", "macOS-13"]'
17+
default: '["ubuntu-24.04", "windows-2019", "macOS-13"]'
1818
python_version:
1919
required: false
2020
type: string
@@ -39,7 +39,7 @@ on:
3939
type: string
4040
# Use windows-2019 due to:
4141
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
42-
# Use ubuntu-22.04 rather than ubuntu-latest to match the ubuntu
42+
# Use ubuntu-22.04 rather than ubuntu-24.04 to match the ubuntu
4343
# version in the CI container. Without this, setup-python tries
4444
# to install a python version linked against a newer version of glibc.
4545
# TODO(boomanaiden154): Bump the Ubuntu version once the version in the
@@ -82,7 +82,7 @@ jobs:
8282
# lldb. Using this setup-python action to make 3.10 the default
8383
# python fixes this.
8484
- name: Setup Python
85-
uses: actions/setup-python@v5
85+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
8686
with:
8787
python-version: ${{ inputs.python_version }}
8888
- name: Install Ninja
@@ -91,11 +91,11 @@ jobs:
9191
# actions/checkout deletes any existing files in the new git directory,
9292
# so this needs to either run before ccache-action or it has to use
9393
# clean: false.
94-
- uses: actions/checkout@v4
94+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9595
with:
9696
fetch-depth: 250
9797
- name: Setup ccache
98-
uses: hendrikmuhs/ccache-action@v1
98+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
9999
with:
100100
# A full build of llvm, clang, lld, and lldb takes about 250MB
101101
# of ccache space. There's not much reason to have more than this,

0 commit comments

Comments
 (0)