-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This applies all upstream changes from upstream git commit `60403a5409ff2c3f3b07dd2ca91a7a3e096839c7` to `067145177975eadd61a0c907d0d177f7b6a5a3de`, upgrading from python 3.13.0 to 3.13.1 (git tag [v3.13.1](https://github.com/python/cpython/tree/v3.13.1)) Reviewed By: SonicField Differential Revision: D66770395 fbshipit-source-id: d92ff5329b686e58c95f3858e400bcfc81541fb7
- Loading branch information
1 parent
2eb3c5b
commit 62258a5
Showing
515 changed files
with
23,615 additions
and
11,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ jobs: | |
|
||
check_abi: | ||
name: 'Check if the ABI has changed' | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 # 24.04 causes spurious errors | ||
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
steps: | ||
|
@@ -83,11 +83,55 @@ jobs: | |
name: abi-data | ||
path: ./Doc/data/*.abi | ||
|
||
check_autoconf_regen: | ||
name: 'Check if Autoconf files are up to date' | ||
# Don't use ubuntu-latest but a specific version to make the job | ||
# reproducible: to get the same tools versions (autoconf, aclocal, ...) | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: ghcr.io/python/autoconf:2024.10.16.11360930377 | ||
timeout-minutes: 60 | ||
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
steps: | ||
- name: Install Git | ||
run: | | ||
apt update && apt install git -yq | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Runner image version | ||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | ||
- name: Check Autoconf and aclocal versions | ||
run: | | ||
grep "Generated by GNU Autoconf 2.71" configure | ||
grep "aclocal 1.16.5" aclocal.m4 | ||
grep -q "runstatedir" configure | ||
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4 | ||
- name: Regenerate autoconf files | ||
# Same command used by Tools/build/regen-configure.sh ($AUTORECONF) | ||
run: autoreconf -ivf -Werror | ||
- name: Check for changes | ||
run: | | ||
git add -u | ||
changes=$(git status --porcelain) | ||
# Check for changes in regenerated files | ||
if test -n "$changes"; then | ||
echo "Generated files not up to date." | ||
echo "Perhaps you forgot to run make regen-configure ;)" | ||
echo "configure files must be regenerated with a specific version of autoconf." | ||
echo "$changes" | ||
echo "" | ||
git diff --staged || true | ||
exit 1 | ||
fi | ||
check_generated_files: | ||
name: 'Check if generated files are up to date' | ||
# Don't use ubuntu-latest but a specific version to make the job | ||
# reproducible: to get the same tools versions (autoconf, aclocal, ...) | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 60 | ||
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
|
@@ -112,19 +156,10 @@ jobs: | |
uses: hendrikmuhs/[email protected] | ||
with: | ||
save: false | ||
- name: Check Autoconf and aclocal versions | ||
run: | | ||
grep "Generated by GNU Autoconf 2.71" configure | ||
grep "aclocal 1.16.5" aclocal.m4 | ||
grep -q "runstatedir" configure | ||
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4 | ||
- name: Configure CPython | ||
run: | | ||
# Build Python with the libpython dynamic library | ||
./configure --config-cache --with-pydebug --enable-shared | ||
- name: Regenerate autoconf files | ||
# Same command used by Tools/build/regen-configure.sh ($AUTORECONF) | ||
run: autoreconf -ivf -Werror | ||
- name: Build CPython | ||
run: | | ||
make -j4 regen-all | ||
|
@@ -158,16 +193,28 @@ jobs: | |
needs: check_source | ||
if: fromJSON(needs.check_source.outputs.run_tests) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- windows-latest | ||
arch: | ||
- Win32 | ||
- x64 | ||
- arm64 | ||
- x64 | ||
free-threading: | ||
- false | ||
- true | ||
- false | ||
- true | ||
include: | ||
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64 | ||
arch: arm64 | ||
free-threading: false | ||
- os: windows-latest # FIXME(diegorusso): change to os: windows-aarch64 | ||
arch: arm64 | ||
free-threading: true | ||
- os: windows-latest | ||
arch: Win32 | ||
free-threading: false | ||
uses: ./.github/workflows/reusable-windows.yml | ||
with: | ||
os: ${{ matrix.os }} | ||
arch: ${{ matrix.arch }} | ||
free-threading: ${{ matrix.free-threading }} | ||
|
||
|
@@ -245,7 +292,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04] | ||
os: [ubuntu-24.04] | ||
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2] | ||
env: | ||
OPENSSL_VER: ${{ matrix.openssl_ver }} | ||
|
@@ -305,7 +352,7 @@ jobs: | |
|
||
test_hypothesis: | ||
name: "Hypothesis tests on Ubuntu" | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 60 | ||
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_hypothesis == 'true' | ||
|
@@ -418,10 +465,13 @@ jobs: | |
|
||
build_asan: | ||
name: 'Address sanitizer' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
strategy: | ||
matrix: | ||
os: [ubuntu-24.04] | ||
env: | ||
OPENSSL_VER: 3.0.15 | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
|
@@ -543,6 +593,7 @@ jobs: | |
needs: | ||
- check_source # Transitive dependency, needed to access `run_tests` value | ||
- check-docs | ||
- check_autoconf_regen | ||
- check_generated_files | ||
- build_macos | ||
- build_ubuntu | ||
|
@@ -578,6 +629,7 @@ jobs: | |
${{ | ||
needs.check_source.outputs.run_tests != 'true' | ||
&& ' | ||
check_autoconf_regen, | ||
check_generated_files, | ||
build_macos, | ||
build_ubuntu, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Reusable macOS | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
|
@@ -35,7 +37,10 @@ jobs: | |
path: config.cache | ||
key: ${{ github.job }}-${{ inputs.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }} | ||
- name: Install Homebrew dependencies | ||
run: brew install pkg-config [email protected] xz gdbm tcl-tk | ||
run: | | ||
brew install pkg-config [email protected] xz gdbm tcl-tk@8 | ||
# Because alternate versions are not symlinked into place by default: | ||
brew link tcl-tk@8 | ||
- name: Configure CPython | ||
run: | | ||
GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Reusable WASI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
|
@@ -9,13 +11,13 @@ jobs: | |
build_wasi_reusable: | ||
name: 'build and test' | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
env: | ||
WASMTIME_VERSION: 22.0.0 | ||
WASI_SDK_VERSION: 22 | ||
WASI_SDK_VERSION: 24 | ||
WASI_SDK_PATH: /opt/wasi-sdk | ||
CROSS_BUILD_PYTHON: cross-build/build | ||
CROSS_BUILD_WASI: cross-build/wasm32-wasi | ||
CROSS_BUILD_WASI: cross-build/wasm32-wasip1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# No problem resolver registered as one doesn't currently exist for Clang. | ||
|
@@ -29,11 +31,11 @@ jobs: | |
with: | ||
path: ${{ env.WASI_SDK_PATH }} | ||
key: ${{ runner.os }}-wasi-sdk-${{ env.WASI_SDK_VERSION }} | ||
- name: "Install WASI SDK" | ||
- name: "Install WASI SDK" # Hard-coded to x64. | ||
if: steps.cache-wasi-sdk.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir ${{ env.WASI_SDK_PATH }} && \ | ||
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 | \ | ||
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 | \ | ||
tar --strip-components 1 --directory ${{ env.WASI_SDK_PATH }} --extract --gunzip | ||
- name: "Configure ccache action" | ||
uses: hendrikmuhs/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: TestsMSI | ||
name: Reusable Windows MSI | ||
|
||
on: | ||
workflow_call: | ||
|
Oops, something went wrong.