Skip to content

Commit 28ff299

Browse files
authored
Merge branch 'main' into gh-121045
2 parents fe9e133 + a64aa47 commit 28ff299

File tree

474 files changed

+23416
-11133
lines changed

Some content is hidden

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

474 files changed

+23416
-11133
lines changed

.azure-pipelines/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
trigger: ['main', '3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
1+
trigger: ['main', '3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
22

33
jobs:
44
- job: Prebuild

.azure-pipelines/posix-deps-apt.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

.azure-pipelines/posix-steps.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.azure-pipelines/pr.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM docker.io/library/fedora:40
22

33
ENV CC=clang
44

5-
ENV WASI_SDK_VERSION=22
5+
ENV WASI_SDK_VERSION=24
66
ENV WASI_SDK_PATH=/opt/wasi-sdk
77

88
ENV WASMTIME_HOME=/opt/wasmtime
@@ -14,7 +14,7 @@ RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,cla
1414
dnf -y clean all
1515

1616
RUN mkdir ${WASI_SDK_PATH} && \
17-
curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-linux.tar.gz | \
17+
curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-x86_64-linux.tar.gz | \
1818
tar --strip-components 1 --directory ${WASI_SDK_PATH} --extract --gunzip
1919

2020
RUN mkdir --parents ${WASMTIME_HOME} && \

.github/workflows/reusable-change-detection.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,18 @@ jobs:
126126
.github/workflows/reusable-docs.yml
127127
format: csv # works for paths with spaces
128128
- name: Check for docs changes
129+
# We only want to run this on PRs when related files are changed,
130+
# or when user triggers manual workflow run.
129131
if: >-
130-
github.event_name == 'pull_request'
131-
&& steps.changed-docs-files.outputs.added_modified_renamed != ''
132+
(
133+
github.event_name == 'pull_request'
134+
&& steps.changed-docs-files.outputs.added_modified_renamed != ''
135+
) || github.event_name == 'workflow_dispatch'
132136
id: docs-changes
133137
run: |
134138
echo "run-docs=true" >> "${GITHUB_OUTPUT}"
135139
- name: Get a list of the MSI installer-related files
140+
if: github.event_name == 'pull_request'
136141
id: changed-win-msi-files
137142
uses: Ana06/[email protected]
138143
with:
@@ -141,10 +146,13 @@ jobs:
141146
.github/workflows/reusable-windows-msi.yml
142147
format: csv # works for paths with spaces
143148
- name: Check for changes in MSI installer-related files
149+
# We only want to run this on PRs when related files are changed,
150+
# or when user triggers manual workflow run.
144151
if: >-
145-
steps.changed-win-msi-files.outputs.added_modified_renamed != ''
152+
(
153+
github.event_name == 'pull_request'
154+
&& steps.changed-win-msi-files.outputs.added_modified_renamed != ''
155+
) || github.event_name == 'workflow_dispatch'
146156
id: win-msi-changes
147157
run: |
148158
echo "run-win-msi=true" >> "${GITHUB_OUTPUT}"
149-
150-
...

.github/workflows/reusable-docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ jobs:
2525
- name: 'Check out latest PR branch commit'
2626
uses: actions/checkout@v4
2727
with:
28-
ref: ${{ github.event.pull_request.head.sha }}
28+
ref: >-
29+
${{
30+
github.event_name == 'pull_request'
31+
&& github.event.pull_request.head.sha
32+
|| ''
33+
}}
2934
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
3035
- name: 'Fetch commits to get branch diff'
36+
if: github.event_name == 'pull_request'
3137
run: |
3238
# Fetch enough history to find a common ancestor commit (aka merge-base):
3339
git fetch origin ${{ env.refspec_pr }} --depth=$(( ${{ github.event.pull_request.commits }} + 1 )) \

.github/workflows/reusable-macos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
--prefix=/opt/python-dev \
4949
--with-openssl="$(brew --prefix [email protected])"
5050
- name: Build CPython
51-
run: make -j8
51+
run: set -o pipefail; make -j8 2>&1 | tee compiler_output.txt
5252
- name: Display build info
5353
run: make pythoninfo
54+
- name: Check compiler warnings
55+
run: python3 Tools/build/check_warnings.py --compiler-output-file-path=compiler_output.txt --warning-ignore-file-path=Tools/build/.warningignore_macos --compiler-output-type=clang
5456
- name: Tests
5557
run: make test

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
working-directory: ${{ env.CPYTHON_BUILDDIR }}
8181
run: make pythoninfo
8282
- name: Check compiler warnings
83-
run: python Tools/build/check_warnings.py --compiler-output-file-path=${{ env.CPYTHON_BUILDDIR }}/compiler_output.txt --warning-ignore-file-path ${GITHUB_WORKSPACE}/Tools/build/.warningignore_ubuntu
83+
run: python Tools/build/check_warnings.py --compiler-output-file-path=${{ env.CPYTHON_BUILDDIR }}/compiler_output.txt --warning-ignore-file-path ${GITHUB_WORKSPACE}/Tools/build/.warningignore_ubuntu --compiler-output-type=json
8484
- name: Remount sources writable for tests
8585
# some tests write to srcdir, lack of pyc files slows down testing
8686
run: sudo mount $CPYTHON_RO_SRCDIR -oremount,rw

.github/workflows/reusable-wasi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
env:
1414
WASMTIME_VERSION: 22.0.0
15-
WASI_SDK_VERSION: 22
15+
WASI_SDK_VERSION: 24
1616
WASI_SDK_PATH: /opt/wasi-sdk
1717
CROSS_BUILD_PYTHON: cross-build/build
1818
CROSS_BUILD_WASI: cross-build/wasm32-wasi
@@ -33,7 +33,7 @@ jobs:
3333
if: steps.cache-wasi-sdk.outputs.cache-hit != 'true'
3434
run: |
3535
mkdir ${{ env.WASI_SDK_PATH }} && \
36-
curl -s -S --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ env.WASI_SDK_VERSION }}/wasi-sdk-${{ env.WASI_SDK_VERSION }}.0-linux.tar.gz | \
36+
curl -s -S --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ env.WASI_SDK_VERSION }}/wasi-sdk-${{ env.WASI_SDK_VERSION }}.0-x86_64-linux.tar.gz | \
3737
tar --strip-components 1 --directory ${{ env.WASI_SDK_PATH }} --extract --gunzip
3838
- name: "Configure ccache action"
3939
uses: hendrikmuhs/[email protected]

0 commit comments

Comments
 (0)